31cbc5d3 |
1 | <facility name=process> |
2 | <description>The process facility has events related to process handling in |
3 | the kernel.</description> |
4 | |
e56575d5 |
5 | <type name=signal_name> |
6 | <enum> |
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> |
23 | |
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> |
39 | </enum> |
40 | </type> |
41 | |
31cbc5d3 |
42 | <event name=fork> |
43 | <description>Process fork</description> |
743e50fd |
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> |
31cbc5d3 |
46 | </event> |
47 | |
48 | <event name=kernel_thread> |
49 | <description>Just created a new kernel thread</description> |
743e50fd |
50 | <field name="pid"> <description>PID of the kernel thread</description> <uint/> </field> |
42bddb4f |
51 | <field name="function"> <description>Function called</description> <pointer/> </field> |
31cbc5d3 |
52 | </event> |
53 | |
54 | |
55 | <event name=exit> |
56 | <description>Process exit</description> |
743e50fd |
57 | <field name="pid"> <description>PID of the process</description> <uint/> </field> |
31cbc5d3 |
58 | </event> |
59 | |
60 | <event name=wait> |
61 | <description>Process wait</description> |
743e50fd |
62 | <field name="parent_pid"> <description>PID of the waiting process</description> <uint/> </field> |
63 | <field name="child_pid"> <description>PID of the process waited for</description> <uint/> </field> |
31cbc5d3 |
64 | </event> |
65 | |
66 | <event name=free> |
67 | <description>Process kernel data structure free (end of life of a zombie)</description> |
743e50fd |
68 | <field name="pid"> <description>PID of the freed process</description> <uint/> </field> |
31cbc5d3 |
69 | </event> |
70 | |
71 | <event name=kill> |
72 | <description>Process kill system call</description> |
743e50fd |
73 | <field name="pid"> <description>PID of the process</description> <uint/> </field> |
74 | <field name="target_pid"> <description>PID of the process to kill</description> <uint/> </field> |
42bddb4f |
75 | <field name="signal"> <description>Signal number</description> <typeref name=signal_name/> </field> |
31cbc5d3 |
76 | </event> |
77 | |
78 | <event name=signal> |
79 | <description>Process signal reception</description> |
743e50fd |
80 | <field name="pid"> <description>PID of the receiving process</description> <uint/> </field> |
42bddb4f |
81 | <field name="signal"> <description>Signal number</description> <typeref name=signal_name/> </field> |
31cbc5d3 |
82 | </event> |
83 | |
84 | <event name=wakeup> |
85 | <description>Process wakeup</description> |
743e50fd |
86 | <field name="pid"> <description>PID of the receiving process</description> <uint/> </field> |
87 | <field name="state"> <description>State of the awakened process. -1 unrunnable, 0 runnable, >0 stopped.</description> <int/> </field> |
31cbc5d3 |
88 | </event> |
89 | |
90 | <event name=schedchange> |
91 | <description>Scheduling change</description> |
743e50fd |
92 | <field name="out"> <description>Outgoing process</description> <uint/> </field> |
93 | <field name="in"> <description>Incoming process</description> <uint/> </field> |
94 | <field name="out_state"> <description>Outgoing process' state. -1 unrunnable, 0 runnable, >0 stopped.</description> <int/> </field> |
31cbc5d3 |
95 | </event> |
96 | |
31cbc5d3 |
97 | </facility> |