d1795f42 |
1 | <?xml version="1.0"?> |
2 | <facility name="kernel"> |
31cbc5d3 |
3 | <description>The kernel facility has events related to kernel execution status.</description> |
4 | |
d1795f42 |
5 | <type name="tasklet_priority"> |
e56575d5 |
6 | <enum> |
c3e2873f |
7 | <label name="LOW" value="0"/> <description>Low priority tasklet</description> |
8 | <label name="HIGH" value="1"/> <description>High priority tasklet</description> |
e56575d5 |
9 | </enum> |
10 | </type> |
11 | |
d1795f42 |
12 | <type name="irq_mode"> |
e56575d5 |
13 | <enum> |
c3e2873f |
14 | <label name="user" value="0"/> <description>User context</description> |
15 | <label name="kernel" value="1"/> <description>Kernel context</description> |
e56575d5 |
16 | </enum> |
17 | </type> |
18 | |
dab5c531 |
19 | <type name="signal_name"> |
20 | <enum> |
21 | <label name="SIGHUP" value="1"/> <description>Hangup (POSIX).</description> |
22 | <label name="SIGINT" value="2"/> <description>Interrupt (ANSI).</description> |
23 | <label name="SIGQUIT" value="3"/> <description>Quit (POSIX).</description> |
24 | <label name="SIGILL" value="4"/> <description>Illegal instruction (ANSI).</description> |
25 | <label name="SIGTRAP" value="5"/> <description>Trace trap (POSIX).</description> |
26 | <label name="SIGABRT" value="6"/> <description>Abort (ANSI).</description> |
27 | <label name="SIGBUS" value="7"/> <description>BUS error (4.2 BSD).</description> |
28 | <label name="SIGFPE" value="8"/> <description>Floating-point exception (ANSI).</description> |
29 | <label name="SIGKILL" value="9"/> <description>Kill, unblockable (POSIX).</description> |
30 | <label name="SIGUSR1" value="10"/> <description>User-defined signal 1 (POSIX).</description> |
31 | <label name="SIGSEGV" value="11"/> <description>Segmentation violation (ANSI).</description> |
32 | <label name="SIGUSR2" value="12"/> <description>User-defined signal 2 (POSIX).</description> |
33 | <label name="SIGPIPE" value="13"/> <description>Broken pipe (POSIX).</description> |
34 | <label name="SIGALRM" value="14"/> <description>Alarm clock (POSIX).</description> |
35 | <label name="SIGTERM" value="15"/> <description>Termination (ANSI).</description> |
36 | <label name="SIGSTKFLT" value="16"/> <description>Stack fault.</description> |
37 | |
38 | <label name="SIGCHLD" value="17"/> <description>Child status has changed (POSIX).</description> |
39 | <label name="SIGCONT" value="18"/> <description>Continue (POSIX).</description> |
40 | <label name="SIGSTOP" value="19"/> <description>Stop, unblockable (POSIX).</description> |
41 | <label name="SIGTSTP" value="20"/> <description>Keyboard stop (POSIX).</description> |
42 | <label name="SIGTTIN" value="21"/> <description>Background read from tty (POSIX).</description> |
43 | <label name="SIGTTOU" value="22"/> <description>Background write to tty (POSIX).</description> |
44 | <label name="SIGURG" value="23"/> <description>Urgent condition on socket (4.2 BSD).</description> |
45 | <label name="SIGXCPU" value="24"/> <description>CPU limit exceeded (4.2 BSD).</description> |
46 | <label name="SIGXFSZ" value="25"/> <description>File size limit exceeded (4.2 BSD).</description> |
47 | <label name="SIGVTALRM" value="26"/> <description>Virtual alarm clock (4.2 BSD).</description> |
48 | <label name="SIGPROF" value="27"/> <description>Profiling alarm clock (4.2 BSD).</description> |
49 | <label name="SIGWINCH" value="28"/> <description>Window size change (4.3 BSD, Sun).</description> |
50 | <label name="SIGIO" value="29"/> <description>I/O now possible (4.2 BSD). (aka SIGPOLL)</description> |
51 | <label name="SIGPWR" value="30"/> <description>Power failure restart (System V).</description> |
52 | <label name="SIGSYS" value="31"/> <description>Bad system call.</description> |
53 | </enum> |
54 | </type> |
55 | |
56 | <type name="itimer_kind"> |
57 | <enum> |
58 | <label name="ITIMER_REAL" value="0"/> <description>decrements in real time, |
59 | and delivers SIGALRM upon expiration.</description> |
60 | <label name="ITIMER_VIRTUAL" value="1"/> <description>decrements only when the |
61 | process is executing, and delivers SIGVTALRM upon expiration.</description> |
62 | <label name="ITIMER_PROF" value="2"/> <description>decrements both when the |
63 | process executes and when the system is executing on behalf of the |
64 | process. Coupled with ITIMER_VIRTUAL, this timer is usually used to |
65 | profile the time spent by the application in user and kernel space. |
66 | SIGPROF is delivered upon expiration.</description> |
67 | </enum> |
68 | </type> |
69 | |
70 | <event name="process_fork"> |
71 | <description>Process fork</description> |
72 | <field name="parent_pid"> <description>PID of the parent process</description> <int/> </field> |
73 | <field name="child_pid"> <description>PID of the child process</description> <int/> </field> |
74 | <field name="child_tgid"> <description>Thread group ID of the child process (POSIX PID)</description> <int/> </field> |
31cbc5d3 |
75 | </event> |
76 | |
dab5c531 |
77 | <event name="process_exit"> |
78 | <description>Process exit</description> |
79 | <field name="pid"> <description>PID of the process</description> <int/> </field> |
31cbc5d3 |
80 | </event> |
81 | |
dab5c531 |
82 | <event name="process_free"> |
83 | <description>Process exit</description> |
84 | <field name="pid"> <description>PID of the process</description> <int/> </field> |
31cbc5d3 |
85 | </event> |
86 | |
dab5c531 |
87 | <event name="process_wait"> |
88 | <description>Process exit</description> |
89 | <field name="pid"> <description>PID of the process we are waiting for</description> <int/> </field> |
31cbc5d3 |
90 | </event> |
91 | |
dab5c531 |
92 | <event name="process_signal"> |
93 | <description>Process exit</description> |
94 | <field name="pid"> <description>PID of the process we are signaling</description> <int/> </field> |
95 | <field name="signal"> <description></description> <typeref name="signal_name"/> </field> |
31cbc5d3 |
96 | </event> |
97 | |
dab5c531 |
98 | <event name="kernel_sched_wait_task"> |
99 | <description>Process exit</description> |
100 | <field name="pid"> <description>PID of the process we are waiting for</description> <int/> </field> |
101 | <field name="state"> <description>State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped</description> <long/> </field> |
102 | </event> |
103 | |
104 | <event name="kernel_sched_try_wakeup"> |
105 | <description>Process exit</description> |
106 | <field name="pid"> <description>PID of the process we are waiting for</description> <int/> </field> |
107 | <field name="state"> <description>State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped</description> <long/> </field> |
108 | </event> |
109 | |
110 | <event name="kernel_sched_wakeup_new_task"> |
111 | <description>Process exit</description> |
112 | <field name="pid"> <description>PID of the process we are waiting for</description> <int/> </field> |
113 | <field name="state"> <description>State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped</description> <long/> </field> |
114 | </event> |
115 | |
116 | <event name="kernel_sched_migrate_task"> |
117 | <description>Process exit</description> |
118 | <field name="pid"> <description>PID of the process we are waiting for</description> <int/> </field> |
119 | <field name="state"> <description>State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped</description> <long/> </field> |
120 | <field name="dest_cpu"> <description>Destination CPU</description> <int/> </field> |
121 | </event> |
122 | |
123 | <event name="kernel_sched_schedule"> |
124 | <description>Process exit</description> |
125 | <field name="prev_pid"> <description>Previously scheduled PID</description> <int/> </field> |
126 | <field name="next_pid"> <description>Next PID to be scheduled</description> <int/> </field> |
127 | <field name="state"> <description>State of the process we are waiting for : -1 unrunnable, 0 runnable, >0 stopped</description> <long/> </field> |
31cbc5d3 |
128 | </event> |
129 | |
51889f6d |
130 | <event name="printk"> |
131 | <description>Kernel printk</description> |
bdacca11 |
132 | <field name="ip"> <description>Instruction</description> |
133 | <pointer/> |
134 | </field> |
135 | </event> |
136 | |
137 | <event name="vprintk"> |
138 | <description>Kernel vprintk</description> |
51889f6d |
139 | <field name="loglevel"> <description>loglevel</description> |
140 | <uint size="1"/> |
141 | </field> |
142 | <field name="text"> <description>printk string</description> |
143 | <sequence> |
144 | <uint/> |
145 | <uchar/> |
146 | </sequence> |
147 | </field> |
bdacca11 |
148 | <field name="ip"> <description>Instruction</description> |
b522d025 |
149 | <pointer/> |
150 | </field> |
151 | </event> |
152 | |
dab5c531 |
153 | <event name="timer_itimer_expired"> |
154 | <description>An itimer has expired.</description> |
155 | <field name="pid"> |
156 | <description>PID of the process to wake up.</description> |
157 | <int/> |
158 | </field> |
159 | </event> |
160 | |
161 | <event name="timer_itimer_set"> |
162 | <description>An interval timer is set.</description> |
163 | <field name="which"> <description>kind of interval timer.</description> |
164 | <typeref name="itimer_kind"/> |
165 | </field> |
166 | <field name="interval_seconds"><long/></field> |
167 | <field name="interval_microseconds"><long/></field> |
168 | <field name="value_seconds"><long/></field> |
169 | <field name="value_microseconds"><long/></field> |
170 | </event> |
171 | |
172 | <event name="timer_set"> |
173 | <description>A timer is added/modified/migrated.</description> |
174 | <field name="expires"><ulong/></field> |
175 | <field name="function"><pointer/></field> |
176 | <field name="data"><ulong/></field> |
177 | </event> |
178 | |
179 | <event name="update_time"> |
180 | <description>The time is updated (timer interrupt).</description> |
181 | <field name="jiffies"><uint_fixed size="8"/></field> |
182 | <field name="wall_tv_sec"><long/></field> |
183 | <field name="wall_tv_nsec"><long/></field> |
184 | <field name="wall_to_monotonic_tv_sec"><long/></field> |
185 | <field name="wall_to_monotonic_tv_nsec"><long/></field> |
186 | </event> |
187 | |
188 | <event name="softirq"> |
189 | <description>The timer softirq is currently runned.</description> |
190 | </event> |
191 | |
192 | <event name="timer_timeout"> |
193 | <description>A timer has expired.</description> |
194 | <field name="pid"> |
195 | <description>PID of the process to wake up.</description> |
196 | <int/> |
d9afd206 |
197 | </field> |
198 | </event> |
199 | |
dab5c531 |
200 | <event name="soft_irq_entry"> |
201 | <description>Soft IRQ entry</description> |
202 | <field name="softirq_id"> <description>Soft IRQ number</description> <ulong/> </field> |
203 | </event> |
204 | |
205 | <event name="soft_irq_exit"> |
206 | <description>Soft IRQ exit</description> |
207 | <field name="softirq_id"> <description>Soft IRQ number</description> <ulong/> </field> |
208 | </event> |
209 | |
210 | <event name="tasklet_low_entry"> |
211 | <description>Low priority tasklet entry</description> |
212 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
213 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
214 | </event> |
215 | |
216 | <event name="tasklet_low_exit"> |
217 | <description>Low priority tasklet exit</description> |
218 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
219 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
220 | </event> |
221 | |
222 | <event name="tasklet_high_entry"> |
223 | <description>High priority tasklet entry</description> |
224 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
225 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
226 | </event> |
227 | |
228 | <event name="tasklet_high_exit"> |
229 | <description>High priority tasklet exit</description> |
230 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
231 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
232 | </event> |
233 | |
234 | <event name="kernel_kthread_stop"> |
235 | <description>Process exit</description> |
236 | <field name="pid"> <description>PID of the kthread we stop</description> <int/> </field> |
237 | </event> |
238 | |
239 | <event name="kernel_kthread_stop_ret"> |
240 | <description>Process exit</description> |
241 | <field name="retval"> <description>Return value of the kthread_stop call</description> <int/> </field> |
242 | </event> |
243 | |
d9afd206 |
244 | <event name="module_load"> |
245 | <description>Load module</description> |
246 | <field name="name"> <description>Module name</description> |
247 | <string/> |
248 | </field> |
249 | </event> |
250 | |
dab5c531 |
251 | <event name="module_free"> |
252 | <description>Unload module</description> |
253 | <field name="name"> <description>Module name</description> |
254 | <string/> |
255 | </field> |
256 | </event> |
257 | |
258 | |
259 | <event name="irq_entry"> |
260 | <description>Entry in an irq</description> |
261 | <field name="irq_id"> <description>IRQ number</description> <uint size="4"/> </field> |
262 | <field name="mode"> <description>Are we executing kernel code</description><typeref name="irq_mode"/> </field> |
263 | </event> |
264 | |
265 | <event name="irq_exit"> |
266 | <description>Exit from an IRQ</description> |
267 | </event> |
268 | |
31cbc5d3 |
269 | </facility> |