diff options
author | Alex Van Brunt <avanbrunt@nvidia.com> | 2014-05-07 09:28:41 -0700 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-14 15:28:33 -0700 |
commit | 9e016f02bc067441963da6d0cc48e92fdb874072 (patch) | |
tree | 2ba612c5ad6e87e961eaea876c171ec280161da4 /include/trace | |
parent | c8db10bb4d3b36d5b230e02bf05ce5605cbd689a (diff) |
drivers: irqchip: gic: add IPI trace events
Add enter and exit trace events for IPI. This makes it possible to
account for hte time in IPI handlers using trace logs.
Change-Id: Ied5d840beca6dfe9ad65ed21ebf77333fbd17e00
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/407688
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/irq.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/trace/events/irq.h b/include/trace/events/irq.h index 1c09820df585..89e2ca99cb26 100644 --- a/include/trace/events/irq.h +++ b/include/trace/events/irq.h @@ -144,6 +144,40 @@ DEFINE_EVENT(softirq, softirq_raise, TP_ARGS(vec_nr) ); +TRACE_EVENT(ipi_enter, + + TP_PROTO(u32 irq), + + TP_ARGS(irq), + + TP_STRUCT__entry( + __field( u32, irq) + ), + + TP_fast_assign( + __entry->irq = irq; + ), + + TP_printk("ipinr=%d", __entry->irq) +); + +TRACE_EVENT(ipi_exit, + + TP_PROTO(u32 irq), + + TP_ARGS(irq), + + TP_STRUCT__entry( + __field( u32, irq) + ), + + TP_fast_assign( + __entry->irq = irq; + ), + + TP_printk("ipinr=%d", __entry->irq) +); + #endif /* _TRACE_IRQ_H */ /* This part must be outside protection */ |