PSETSYSENTRY(3PROC) Process Control Library Functions PSETSYSENTRY(3PROC)

Psetsysentry, Psetsysexitset system call tracing flags

Process Control Library (libproc, -lproc)

#include <libproc.h>

Psetsysentry(struct ps_prochandle *P, const sysset_t *set);

Psetsysexit(struct ps_prochandle *P, const sysset_t *set);

The () and () set the system call entry and exit tracing flags respectively in the process handle P to set. The call to Psetsysentry() or Psetsysexit() replaces the corresponding set of system call tracing flags entirely with the new set. The system call entry tracing flags cause a thread to stop on entry to the system call and the exit tracing flags cause a thread to stop on return from the system call, before control returns back to the user land process. For more information on the state of the thread and for information on manipulating the , see proc(5).

Note that only active processes may have their system call tracing flags updated. Process handles that refer to core files, zombie processes, and files do not have fault tracing flags and this function is a no-op on them.

See in libproc(3LIB).

Intro(2), libproc(3LIB), proc(5)

May 11, 2016 OmniOS