143051d27SRobert Mustacchi.\"
243051d27SRobert Mustacchi.\" This file and its contents are supplied under the terms of the
343051d27SRobert Mustacchi.\" Common Development and Distribution License ("CDDL"), version 1.0.
443051d27SRobert Mustacchi.\" You may only use this file in accordance with the terms of version
543051d27SRobert Mustacchi.\" 1.0 of the CDDL.
643051d27SRobert Mustacchi.\"
743051d27SRobert Mustacchi.\" A full copy of the text of the CDDL should have accompanied this
843051d27SRobert Mustacchi.\" source.  A copy of the CDDL is also available via the Internet at
943051d27SRobert Mustacchi.\" http://www.illumos.org/license/CDDL.
1043051d27SRobert Mustacchi.\"
1143051d27SRobert Mustacchi.\"
1243051d27SRobert Mustacchi.\" Copyright 2015 Joyent, Inc.
1343051d27SRobert Mustacchi.\"
1443051d27SRobert Mustacchi.Dd May 11, 2016
1543051d27SRobert Mustacchi.Dt PSETSYSENTRY 3PROC
1643051d27SRobert Mustacchi.Os
1743051d27SRobert Mustacchi.Sh NAME
1843051d27SRobert Mustacchi.Nm Psetsysentry ,
1943051d27SRobert Mustacchi.Nm Psetsysexit
2043051d27SRobert Mustacchi.Nd set system call tracing flags
21ab618543SJohn Levon.Sh LIBRARY
2243051d27SRobert Mustacchi.Lb libproc
23ab618543SJohn Levon.Sh SYNOPSIS
2443051d27SRobert Mustacchi.In libproc.h
2543051d27SRobert Mustacchi.Ft void
2643051d27SRobert Mustacchi.Fo Psetsysentry
2743051d27SRobert Mustacchi.Fa "struct ps_prochandle *P"
2843051d27SRobert Mustacchi.Fa "const sysset_t *set"
2943051d27SRobert Mustacchi.Fc
3043051d27SRobert Mustacchi.Ft void
3143051d27SRobert Mustacchi.Fo Psetsysexit
3243051d27SRobert Mustacchi.Fa "struct ps_prochandle *P"
3343051d27SRobert Mustacchi.Fa "const sysset_t *set"
3443051d27SRobert Mustacchi.Fc
3543051d27SRobert Mustacchi.Sh DESCRIPTION
3643051d27SRobert MustacchiThe
3743051d27SRobert Mustacchi.Fn Psetsysentry
3843051d27SRobert Mustacchiand
3943051d27SRobert Mustacchi.Fn Psetsysexit
4043051d27SRobert Mustacchiset the system call entry and exit tracing flags respectively in the
4143051d27SRobert Mustacchiprocess handle
4243051d27SRobert Mustacchi.Fa P
4343051d27SRobert Mustacchito
4443051d27SRobert Mustacchi.Fa set .
4543051d27SRobert MustacchiThe call to
4643051d27SRobert Mustacchi.Fn Psetsysentry
4743051d27SRobert Mustacchior
4843051d27SRobert Mustacchi.Fn Psetsysexit
4943051d27SRobert Mustacchireplaces the corresponding set of system call tracing flags entirely
5072d3dbb9SYuri Pankovwith the new set.
5172d3dbb9SYuri PankovThe system call entry tracing flags cause a thread to stop on entry to the
5272d3dbb9SYuri Pankovsystem call and the exit tracing flags cause a thread to stop on return from the
5372d3dbb9SYuri Pankovsystem call, before control returns back to the user land process.
5472d3dbb9SYuri PankovFor more information on the state of the thread and for information on
5572d3dbb9SYuri Pankovmanipulating the
5643051d27SRobert Mustacchi.Sy sysset_t ,
5743051d27SRobert Mustacchisee
58*bbf21555SRichard Lowe.Xr proc 5 .
5943051d27SRobert Mustacchi.Pp
6043051d27SRobert MustacchiNote that only active processes may have their system call tracing flags
6172d3dbb9SYuri Pankovupdated.
6272d3dbb9SYuri PankovProcess handles that refer to core files, zombie processes, and files do not
6372d3dbb9SYuri Pankovhave fault tracing flags and this function is a no-op on them.
6443051d27SRobert Mustacchi.Sh INTERFACE STABILITY
6543051d27SRobert Mustacchi.Sy Uncommitted
6643051d27SRobert Mustacchi.Sh MT-LEVEL
6743051d27SRobert MustacchiSee
6843051d27SRobert Mustacchi.Sy LOCKING
6943051d27SRobert Mustacchiin
7043051d27SRobert Mustacchi.Xr libproc 3LIB .
7143051d27SRobert Mustacchi.Sh SEE ALSO
7243051d27SRobert Mustacchi.Xr Intro 2 ,
7343051d27SRobert Mustacchi.Xr libproc 3LIB ,
74*bbf21555SRichard Lowe.Xr proc 5
75