| 1 | <?xml version="1.0"?> |
| 2 | <facility name="timer"> |
| 3 | <description>The timer facility has events related to timer events in the kernel.</description> |
| 4 | |
| 5 | <type name="itimer_kind"> |
| 6 | <enum> |
| 7 | <label name="ITIMER_REAL" value="0"/> <description>decrements in real time, |
| 8 | and delivers SIGALRM upon expiration.</description> |
| 9 | <label name="ITIMER_VIRTUAL" value="1"/> <description>decrements only when the |
| 10 | process is executing, and delivers SIGVTALRM upon expiration.</description> |
| 11 | <label name="ITIMER_PROF" value="2"/> <description>decrements both when the |
| 12 | process executes and when the system is executing on behalf of the |
| 13 | process. Coupled with ITIMER_VIRTUAL, this timer is usually used to |
| 14 | profile the time spent by the application in user and kernel space. |
| 15 | SIGPROF is delivered upon expiration.</description> |
| 16 | </enum> |
| 17 | </type> |
| 18 | |
| 19 | <event name="expired"> |
| 20 | <description>A timer or itimer has expired.</description> |
| 21 | <field name="pid"> |
| 22 | <description>PID of the process to wake up.</description> |
| 23 | <uint size="4"/> |
| 24 | </field> |
| 25 | </event> |
| 26 | |
| 27 | <event name="softirq"> |
| 28 | <description>The timer softirq is currently runned.</description> |
| 29 | </event> |
| 30 | |
| 31 | <event name="set_itimer"> |
| 32 | <description>An interval timer is set.</description> |
| 33 | <field name="which"> <description>kind of interval timer.</description> |
| 34 | <typeref name="itimer_kind"/> |
| 35 | </field> |
| 36 | <field name="interval_seconds"><uint size="4"/></field> |
| 37 | <field name="interval_microseconds"><uint size="4"/></field> |
| 38 | <field name="value_seconds"><uint size="4"/></field> |
| 39 | <field name="value_microseconds"><uint size="4"/></field> |
| 40 | </event> |
| 41 | |
| 42 | <event name="set_timer"> |
| 43 | <description>A timer is added/modified/migrated.</description> |
| 44 | <field name="expires"><ulong/></field> |
| 45 | <field name="function"><pointer/></field> |
| 46 | <field name="data"><ulong/></field> |
| 47 | </event> |
| 48 | |
| 49 | <event name="update_time"> |
| 50 | <description>The time is updated (timer interrupt).</description> |
| 51 | <field name="jiffies"><uint_fixed size="8"/></field> |
| 52 | <field name="wall_tv_sec"><long/></field> |
| 53 | <field name="wall_tv_nsec"><long/></field> |
| 54 | <field name="wall_to_monotonic_tv_sec"><long/></field> |
| 55 | <field name="wall_to_monotonic_tv_nsec"><long/></field> |
| 56 | </event> |
| 57 | |
| 58 | </facility> |