blob: da3ee96b8d035971c2acfbb99ea8c01fce262f9b [file] [log] [blame]
Dave Hansen0c4df022013-06-21 08:51:38 -07001#undef TRACE_SYSTEM
2#define TRACE_SYSTEM nmi
3
4#if !defined(_TRACE_NMI_H) || defined(TRACE_HEADER_MULTI_READ)
5#define _TRACE_NMI_H
6
7#include <linux/ktime.h>
8#include <linux/tracepoint.h>
9
10TRACE_EVENT(nmi_handler,
11
12 TP_PROTO(void *handler, s64 delta_ns, int handled),
13
14 TP_ARGS(handler, delta_ns, handled),
15
16 TP_STRUCT__entry(
17 __field( void *, handler )
18 __field( s64, delta_ns)
19 __field( int, handled )
20 ),
21
22 TP_fast_assign(
23 __entry->handler = handler;
24 __entry->delta_ns = delta_ns;
25 __entry->handled = handled;
26 ),
27
28 TP_printk("%ps() delta_ns: %lld handled: %d",
29 __entry->handler,
30 __entry->delta_ns,
31 __entry->handled)
32);
33
34#endif /* _TRACE_NMI_H */
35
36/* This part ust be outside protection */
37#include <trace/define_trace.h>