aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2009-04-30 13:29:47 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-01 08:03:36 -0400
commit9ee1983c9aa18f12388ef660d0c76a23dc112959 (patch)
treed6ecce58d2a0ae99dd519f559f9c66383f9e6f90 /include/trace
parenta76f8c6da1e48fd4ef025f42c736389532ff30ba (diff)
tracing: add irq tracepoint documentation
Document irqs for the newly created docbook. [ Impact: add documentation ] Signed-off-by: Jason Baron <jbaron@redhat.com> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: akpm@linux-foundation.org Cc: rostedt@goodmis.org Cc: fweisbec@gmail.com Cc: mathieu.desnoyers@polymtl.ca Cc: wcohen@redhat.com LKML-Reference: <73ff42be3420157667ec548e9b0e409c3cfad05f.1241107197.git.jbaron@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/irq.h46
1 files changed, 42 insertions, 4 deletions
diff --git a/include/trace/events/irq.h b/include/trace/events/irq.h
index 768686467518..32a9f7ef432b 100644
--- a/include/trace/events/irq.h
+++ b/include/trace/events/irq.h
@@ -7,8 +7,16 @@
7#undef TRACE_SYSTEM 7#undef TRACE_SYSTEM
8#define TRACE_SYSTEM irq 8#define TRACE_SYSTEM irq
9 9
10/* 10/**
11 * Tracepoint for entry of interrupt handler: 11 * irq_handler_entry - called immediately before the irq action handler
12 * @irq: irq number
13 * @action: pointer to struct irqaction
14 *
15 * The struct irqaction pointed to by @action contains various
16 * information about the handler, including the device name,
17 * @action->name, and the device id, @action->dev_id. When used in
18 * conjunction with the irq_handler_exit tracepoint, we can figure
19 * out irq handler latencies.
12 */ 20 */
13TRACE_EVENT(irq_handler_entry, 21TRACE_EVENT(irq_handler_entry,
14 22
@@ -29,8 +37,16 @@ TRACE_EVENT(irq_handler_entry,
29 TP_printk("irq=%d handler=%s", __entry->irq, __get_str(name)) 37 TP_printk("irq=%d handler=%s", __entry->irq, __get_str(name))
30); 38);
31 39
32/* 40/**
33 * Tracepoint for return of an interrupt handler: 41 * irq_handler_exit - called immediately after the irq action handler returns
42 * @irq: irq number
43 * @action: pointer to struct irqaction
44 * @ret: return value
45 *
46 * If the @ret value is set to IRQ_HANDLED, then we know that the corresponding
47 * @action->handler scuccessully handled this irq. Otherwise, the irq might be
48 * a shared irq line, or the irq was not handled successfully. Can be used in
49 * conjunction with the irq_handler_entry to understand irq handler latencies.
34 */ 50 */
35TRACE_EVENT(irq_handler_exit, 51TRACE_EVENT(irq_handler_exit,
36 52
@@ -52,6 +68,17 @@ TRACE_EVENT(irq_handler_exit,
52 __entry->irq, __entry->ret ? "handled" : "unhandled") 68 __entry->irq, __entry->ret ? "handled" : "unhandled")
53); 69);
54 70
71/**
72 * softirq_entry - called immediately before the softirq handler
73 * @h: pointer to struct softirq_action
74 * @vec: pointer to first struct softirq_action in softirq_vec array
75 *
76 * The @h parameter, contains a pointer to the struct softirq_action
77 * which has a pointer to the action handler that is called. By subtracting
78 * the @vec pointer from the @h pointer, we can determine the softirq
79 * number. Also, when used in combination with the softirq_exit tracepoint
80 * we can determine the softirq latency.
81 */
55TRACE_EVENT(softirq_entry, 82TRACE_EVENT(softirq_entry,
56 83
57 TP_PROTO(struct softirq_action *h, struct softirq_action *vec), 84 TP_PROTO(struct softirq_action *h, struct softirq_action *vec),
@@ -71,6 +98,17 @@ TRACE_EVENT(softirq_entry,
71 TP_printk("softirq=%d action=%s", __entry->vec, __get_str(name)) 98 TP_printk("softirq=%d action=%s", __entry->vec, __get_str(name))
72); 99);
73 100
101/**
102 * softirq_exit - called immediately after the softirq handler returns
103 * @h: pointer to struct softirq_action
104 * @vec: pointer to first struct softirq_action in softirq_vec array
105 *
106 * The @h parameter contains a pointer to the struct softirq_action
107 * that has handled the softirq. By subtracting the @vec pointer from
108 * the @h pointer, we can determine the softirq number. Also, when used in
109 * combination with the softirq_entry tracepoint we can determine the softirq
110 * latency.
111 */
74TRACE_EVENT(softirq_exit, 112TRACE_EVENT(softirq_exit,
75 113
76 TP_PROTO(struct softirq_action *h, struct softirq_action *vec), 114 TP_PROTO(struct softirq_action *h, struct softirq_action *vec),