2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
19 .Nd enable and disable the tracing of faults
25 .Fa "struct ps_prochandle *P"
32 function controls what the process
36 A fault is a hardware event that occurs in the context of a running
38 A hardware fault may occur because an illegal instruction was executed,
39 a breakpoint or watchpoint was encountered, or an arithmetic exception occurred,
41 The full list of faults is available in both
46 For each hardware fault, a process may be configured to stop the thread
47 that encountered it when it occurs.
50 parameter controls whether or not the listed fault in
52 will cause the thread to trap.
53 A value of 1 indicates the thread should stop; a value of 0 indicates it should
58 indicates which hardware fault the change applies to.
59 However, if the value of
61 is zero, then it applies to all faults.
65 function only applies to actively running processes.
66 It does not function on handles that refer to core files, zombie processes, or
69 Upon successful completion, the
71 function returns the old disposition of the fault --
73 if it was not set to stop and
76 and the fault state is updated.
81 is updated with the error that occurred, and the fault state is not
86 function will fail if:
91 is invalid, e.g. it is less than zero or greater than the largest defined
96 refers to a process that is a zombie, a core file, or a file.
98 .Sh INTERFACE STABILITY