@@ -23,6 +23,17 @@ struct softirq_action;
softirq_name(HRTIMER), \
softirq_name(RCU))
+
+#define show_chip_name(irq) \
+ (irq_get_irq_data(irq) \
+ ? irq_get_irq_data(irq)->chip->name \
+ : "NULL")
+
+#define show_hwirq(irq) \
+ (irq_get_irq_data(irq) \
+ ? irq_get_irq_data(irq)->hwirq \
+ : -ENODEV)
+
/**
* irq_handler_entry - called immediately before the irq action handler
* @irq: irq number
@@ -41,16 +52,21 @@ TRACE_EVENT(irq_handler_entry,
TP_ARGS(irq, action),
TP_STRUCT__entry(
- __field( int, irq )
- __string( name, action->name )
+ __field( int, irq )
+ __field( unsigned long, hwirq )
+ __string( name, action->name )
+ __string( chip, show_chip_name(irq) )
),
TP_fast_assign(
__entry->irq = irq;
+ __entry->hwirq = show_hwirq(irq);
__assign_str(name, action->name);
+ __assign_str(chip, show_chip_name(irq));
),
- TP_printk("irq=%d name=%s", __entry->irq, __get_str(name))
+ TP_printk("irq=%d name=%s chip=%s hwirq=%ld", __entry->irq,
+ __get_str(name), __get_str(chip), __entry->hwirq)
);
/**