d1795f42 |
1 | <?xml version="1.0"?> |
2 | <facility name="process"> |
3 | <description>The process facility has events related to process handling in the kernel.</description> |
31cbc5d3 |
4 | |
d1795f42 |
5 | <type name="signal_name"> |
e56575d5 |
6 | <enum> |
d1795f42 |
7 | <label name="SIGHUP" value="1"> <description>Hangup (POSIX).</description> |
8 | <label name="SIGINT" value="2"> <description>Interrupt (ANSI).</description> |
9 | <label name="SIGQUIT" value="3"> <description>Quit (POSIX).</description> |
10 | <label name="SIGILL" value="4"> <description>Illegal instruction (ANSI).</description> |
11 | <label name="SIGTRAP" value="5"> <description>Trace trap (POSIX).</description> |
12 | <label name="SIGABRT" value="6"> <description>Abort (ANSI).</description> |
13 | <label name="SIGBUS" value="7"> <description>BUS error (4.2 BSD).</description> |
14 | <label name="SIGFPE" value="8"> <description>Floating-point exception (ANSI).</description> |
15 | <label name="SIGKILL" value="9"> <description>Kill, unblockable (POSIX).</description> |
16 | <label name="SIGUSR1" value="10"> <description>User-defined signal 1 (POSIX).</description> |
17 | <label name="SIGSEGV" value="11"> <description>Segmentation violation (ANSI).</description> |
18 | <label name="SIGUSR2" value="12"> <description>User-defined signal 2 (POSIX).</description> |
19 | <label name="SIGPIPE" value="13"> <description>Broken pipe (POSIX).</description> |
20 | <label name="SIGALRM" value="14"> <description>Alarm clock (POSIX).</description> |
21 | <label name="SIGTERM" value="15"> <description>Termination (ANSI).</description> |
22 | <label name="SIGSTKFLT" value="16"> <description>Stack fault.</description> |
e56575d5 |
23 | |
d1795f42 |
24 | <label name="SIGCHLD" value="17"> <description>Child status has changed (POSIX).</description> |
25 | <label name="SIGCONT" value="18"> <description>Continue (POSIX).</description> |
26 | <label name="SIGSTOP" value="19"> <description>Stop, unblockable (POSIX).</description> |
27 | <label name="SIGTSTP" value="20"> <description>Keyboard stop (POSIX).</description> |
28 | <label name="SIGTTIN" value="21"> <description>Background read from tty (POSIX).</description> |
29 | <label name="SIGTTOU" value="22"> <description>Background write to tty (POSIX).</description> |
30 | <label name="SIGURG" value="23"> <description>Urgent condition on socket (4.2 BSD).</description> |
31 | <label name="SIGXCPU" value="24"> <description>CPU limit exceeded (4.2 BSD).</description> |
32 | <label name="SIGXFSZ" value="25"> <description>File size limit exceeded (4.2 BSD).</description> |
33 | <label name="SIGVTALRM" value="26"> <description>Virtual alarm clock (4.2 BSD).</description> |
34 | <label name="SIGPROF" value="27"> <description>Profiling alarm clock (4.2 BSD).</description> |
35 | <label name="SIGWINCH" value="28"> <description>Window size change (4.3 BSD, Sun).</description> |
36 | <label name="SIGIO" value="29"> <description>I/O now possible (4.2 BSD). (aka SIGPOLL)</description> |
37 | <label name="SIGPWR" value="30"> <description>Power failure restart (System V).</description> |
38 | <label name="SIGSYS" value="31"> <description>Bad system call.</description> |
e56575d5 |
39 | </enum> |
40 | </type> |
41 | |
d1795f42 |
42 | <event name="fork"> |
31cbc5d3 |
43 | <description>Process fork</description> |
d1795f42 |
44 | <field name="parent_pid"> <description>PID of the parent process</description> <uint> </field> |
45 | <field name="child_pid"> <description>PID of the child process</description> <uint> </field> |
8eddb750 |
46 | <field name="child_tgid"> <description>Thread group ID of the child process (POSIX PID)</description> <uint> </field> |
31cbc5d3 |
47 | </event> |
48 | |
d1795f42 |
49 | <event name="kernel_thread"> |
31cbc5d3 |
50 | <description>Just created a new kernel thread</description> |
d1795f42 |
51 | <field name="pid"> <description>PID of the kernel thread</description> <uint> </field> |
52 | <field name="function"> <description>Function called</description> <pointer> </field> |
31cbc5d3 |
53 | </event> |
54 | |
55 | |
d1795f42 |
56 | <event name="exit"> |
31cbc5d3 |
57 | <description>Process exit</description> |
d1795f42 |
58 | <field name="pid"> <description>PID of the process</description> <uint> </field> |
31cbc5d3 |
59 | </event> |
60 | |
d1795f42 |
61 | <event name="wait"> |
31cbc5d3 |
62 | <description>Process wait</description> |
d1795f42 |
63 | <field name="parent_pid"> <description>PID of the waiting process</description> <uint> </field> |
64 | <field name="child_pid"> <description>PID of the process waited for</description> <uint> </field> |
31cbc5d3 |
65 | </event> |
66 | |
d1795f42 |
67 | <event name="free"> |
31cbc5d3 |
68 | <description>Process kernel data structure free (end of life of a zombie)</description> |
d1795f42 |
69 | <field name="pid"> <description>PID of the freed process</description> <uint> </field> |
31cbc5d3 |
70 | </event> |
71 | |
d1795f42 |
72 | <event name="kill"> |
31cbc5d3 |
73 | <description>Process kill system call</description> |
d1795f42 |
74 | <field name="pid"> <description>PID of the process</description> <uint> </field> |
75 | <field name="target_pid"> <description>PID of the process to kill</description> <uint> </field> |
76 | <field name="signal"> <description>Signal number</description> <typeref name="signal_name"> </field> |
31cbc5d3 |
77 | </event> |
78 | |
d1795f42 |
79 | <event name="signal"> |
31cbc5d3 |
80 | <description>Process signal reception</description> |
d1795f42 |
81 | <field name="pid"> <description>PID of the receiving process</description> <uint> </field> |
82 | <field name="signal"> <description>Signal number</description> <typeref name="signal_name"> </field> |
31cbc5d3 |
83 | </event> |
84 | |
d1795f42 |
85 | <event name="wakeup"> |
31cbc5d3 |
86 | <description>Process wakeup</description> |
d1795f42 |
87 | <field name="pid"> <description>PID of the receiving process</description> <uint> </field> |
88 | <field name="state"> <description>State of the awakened process. -1 unrunnable, 0 runnable, >0 stopped.</description> <int> </field> |
31cbc5d3 |
89 | </event> |
90 | |
d1795f42 |
91 | <event name="schedchange"> |
31cbc5d3 |
92 | <description>Scheduling change</description> |
d1795f42 |
93 | <field name="out"> <description>Outgoing process</description> <uint> </field> |
94 | <field name="in"> <description>Incoming process</description> <uint> </field> |
95 | <field name="out_state"> <description>Outgoing process' state. -1 unrunnable, 0 runnable, >0 stopped.</description> <int> </field> |
31cbc5d3 |
96 | </event> |
97 | |
31cbc5d3 |
98 | </facility> |