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