31cbc5d3 |
1 | <facility name=timer> |
2 | <description>The timer facility has events related to timer events in the kernel.</description> |
3 | |
4 | <event name=expired> |
5 | <description>A timer or itimer has expired.</description> |
6 | <struct> |
7 | <field name="pid"> <description>PID of the process to wake up.</description> <uint size=4/> </field> |
8 | </struct> |
9 | </event> |
10 | |
11 | <event name=softirq> |
12 | <description>The timer softirq is currently runned.</description> |
13 | </event> |
14 | |
15 | <event name=set_itimer> |
16 | <description>An interval timer is set.</description> |
17 | <struct> |
18 | <field name="which"> <description>kind of interval timer.</description> |
bae0bb20 |
19 | <typeref name=itimer_kind/></field> |
20 | <field name="interval_seconds"><uint size=4/></field> |
21 | <field name="interval_microseconds"><uint size=4/></field> |
22 | <field name="value_seconds"><uint size=4/></field> |
23 | <field name="value_microseconds"><uint size=4/></field> |
31cbc5d3 |
24 | </struct> |
25 | </event> |
26 | |
27 | <type name=itimer_kind> |
28 | <enum size=4> |
29 | <label name=ITIMER_REAL value=0/> <description>decrements in real time, |
30 | and delivers SIGALRM upon expiration.</description> |
31 | <label name=ITIMER_VIRTUAL value=1/> <description>decrements only when the |
32 | process is executing, and delivers SIGVTALRM upon expiration.</description> |
33 | <label name=ITIMER_PROF value=2/> <description>decrements both when the |
34 | process executes and when the system is executing on behalf of the |
35 | process. Coupled with ITIMER_VIRTUAL, this timer is usually used to |
36 | profile the time spent by the application in user and kernel space. |
37 | SIGPROF is delivered upon expiration.</description> |
38 | </enum> |
39 | </type> |
40 | |
31cbc5d3 |
41 | </facility> |