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

Psetsysentry, Psetsysexit
set system call tracing flags

Process Control Library (libproc, -lproc)

#include <libproc.h>
void
Psetsysentry(struct ps_prochandle *P, const sysset_t *set);
void
Psetsysexit(struct ps_prochandle *P, const sysset_t *set);

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.

Uncommitted

See LOCKING in libproc(3LIB).

Intro(2), libproc(3LIB), proc(4)
May 11, 2016 illumos