Skip to contentSkip to conversation

tracing: Adds handler name to irq_handler_entry

PATCH New Badhri Jagan Sridharan 1 participant 1 message May 7, 2015 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 tracing: Adds handler name to irq_handler_entry

This patch includes the ISR function name to
irq_handler_entry trace point.

---
Changelog since v2:
- fixed formatting errors

Changelog since v1:
- fixed indentation

 include/trace/events/irq.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/trace/events/irq.h +4 -1
index ff8f6c0..a6f6fc3 100644
@@ -58,14 +58,17 @@ TRACE_EVENT(irq_handler_entry,
 	TP_STRUCT__entry(
 		__field(	int,	irq		)
 		__string(	name,	action->name	)
+		__field(	void *,	handler		)
 	),
 
 	TP_fast_assign(
 		__entry->irq = irq;
 		__assign_str(name, action->name);
+		__entry->handler = action->handler;
 	),
 
-	TP_printk("irq=%d name=%s", __entry->irq, __get_str(name))
+	TP_printk("irq=%d name=%s handler=%pf",
+		  __entry->irq, __get_str(name), __entry->handler)
 );
 
 /**
Signature · 1 line
2.2.0.rc0.207.ga3a616c