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

NAME


Psetsysentry, Psetsysexit - set system call tracing flags

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

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

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

DESCRIPTION


The Psetsysentry() and Psetsysexit() 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
sysset_t, see proc(4).

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.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


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

illumos May 11, 2016 illumos