| 1 | <?xml version="1.0"?> |
| 2 | <facility name="kernel"> |
| 3 | <description>The kernel facility has events related to kernel execution status.</description> |
| 4 | |
| 5 | <type name="tasklet_priority"> |
| 6 | <enum> |
| 7 | <label name="LOW" value="0"/> <description>Low priority tasklet</description> |
| 8 | <label name="HIGH" value="1"/> <description>High priority tasklet</description> |
| 9 | </enum> |
| 10 | </type> |
| 11 | |
| 12 | <type name="irq_mode"> |
| 13 | <enum> |
| 14 | <label name="user" value="0"/> <description>User context</description> |
| 15 | <label name="kernel" value="1"/> <description>Kernel context</description> |
| 16 | </enum> |
| 17 | </type> |
| 18 | |
| 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> |
| 75 | </event> |
| 76 | |
| 77 | <event name="process_exit"> |
| 78 | <description>Process exit</description> |
| 79 | <field name="pid"> <description>PID of the process</description> <int/> </field> |
| 80 | </event> |
| 81 | |
| 82 | <event name="process_free"> |
| 83 | <description>Process exit</description> |
| 84 | <field name="pid"> <description>PID of the process</description> <int/> </field> |
| 85 | </event> |
| 86 | |
| 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> |
| 90 | </event> |
| 91 | |
| 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> |
| 96 | </event> |
| 97 | |
| 98 | <event name="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="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="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="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="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="prev_state"> <description>State of the process we are scheduling out : -1 unrunnable, 0 runnable, >0 stopped</description> <long/> </field> |
| 128 | </event> |
| 129 | |
| 130 | <event name="printk"> |
| 131 | <description>Kernel printk</description> |
| 132 | <field name="ip"> <description>Instruction</description> |
| 133 | <pointer/> |
| 134 | </field> |
| 135 | </event> |
| 136 | |
| 137 | <event name="vprintk"> |
| 138 | <description>Kernel vprintk</description> |
| 139 | <field name="loglevel"> <description>loglevel</description> |
| 140 | <uint_fixed size="1"/> |
| 141 | </field> |
| 142 | <field name="text"> <description>printk string</description> |
| 143 | <sequence> |
| 144 | <uint/> |
| 145 | <uchar/> |
| 146 | </sequence> |
| 147 | </field> |
| 148 | <field name="ip"> <description>Instruction</description> |
| 149 | <pointer/> |
| 150 | </field> |
| 151 | </event> |
| 152 | |
| 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="timer_timeout"> |
| 189 | <description>A timer has expired.</description> |
| 190 | <field name="pid"> |
| 191 | <description>PID of the process to wake up.</description> |
| 192 | <int/> |
| 193 | </field> |
| 194 | </event> |
| 195 | |
| 196 | <event name="soft_irq_entry"> |
| 197 | <description>Soft IRQ entry</description> |
| 198 | <field name="softirq_id"> <description>Soft IRQ number</description> <ulong/> </field> |
| 199 | </event> |
| 200 | |
| 201 | <event name="soft_irq_exit"> |
| 202 | <description>Soft IRQ exit</description> |
| 203 | <field name="softirq_id"> <description>Soft IRQ number</description> <ulong/> </field> |
| 204 | </event> |
| 205 | |
| 206 | <event name="tasklet_low_entry"> |
| 207 | <description>Low priority tasklet entry</description> |
| 208 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
| 209 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
| 210 | </event> |
| 211 | |
| 212 | <event name="tasklet_low_exit"> |
| 213 | <description>Low priority tasklet exit</description> |
| 214 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
| 215 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
| 216 | </event> |
| 217 | |
| 218 | <event name="tasklet_high_entry"> |
| 219 | <description>High priority tasklet entry</description> |
| 220 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
| 221 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
| 222 | </event> |
| 223 | |
| 224 | <event name="tasklet_high_exit"> |
| 225 | <description>High priority tasklet exit</description> |
| 226 | <field name="address"> <description>Tasklet function address</description> <pointer/> </field> |
| 227 | <field name="data"> <description>Tasklet data address</description> <ulong/> </field> |
| 228 | </event> |
| 229 | |
| 230 | <event name="kthread_stop"> |
| 231 | <description>Process exit</description> |
| 232 | <field name="pid"> <description>PID of the kthread we stop</description> <int/> </field> |
| 233 | </event> |
| 234 | |
| 235 | <event name="kthread_stop_ret"> |
| 236 | <description>Process exit</description> |
| 237 | <field name="retval"> <description>Return value of the kthread_stop call</description> <int/> </field> |
| 238 | </event> |
| 239 | |
| 240 | <event name="module_load"> |
| 241 | <description>Load module</description> |
| 242 | <field name="name"> <description>Module name</description> |
| 243 | <string/> |
| 244 | </field> |
| 245 | </event> |
| 246 | |
| 247 | <event name="module_free"> |
| 248 | <description>Unload module</description> |
| 249 | <field name="name"> <description>Module name</description> |
| 250 | <string/> |
| 251 | </field> |
| 252 | </event> |
| 253 | |
| 254 | <event name="irq_entry"> |
| 255 | <description>Entry in an irq</description> |
| 256 | <field name="irq_id"> <description>IRQ number</description> <uint/> </field> |
| 257 | <field name="mode"> <description>Are we executing kernel code</description><typeref name="irq_mode"/> </field> |
| 258 | </event> |
| 259 | |
| 260 | <event name="irq_exit"> |
| 261 | <description>Exit from an IRQ</description> |
| 262 | </event> |
| 263 | |
| 264 | </facility> |