nmi.h 741 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM nmi
  3. #if !defined(_TRACE_NMI_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _TRACE_NMI_H
  5. #include <linux/ktime.h>
  6. #include <linux/tracepoint.h>
  7. TRACE_EVENT(nmi_handler,
  8. TP_PROTO(void *handler, s64 delta_ns, int handled),
  9. TP_ARGS(handler, delta_ns, handled),
  10. TP_STRUCT__entry(
  11. __field( void *, handler )
  12. __field( s64, delta_ns)
  13. __field( int, handled )
  14. ),
  15. TP_fast_assign(
  16. __entry->handler = handler;
  17. __entry->delta_ns = delta_ns;
  18. __entry->handled = handled;
  19. ),
  20. TP_printk("%ps() delta_ns: %lld handled: %d",
  21. __entry->handler,
  22. __entry->delta_ns,
  23. __entry->handled)
  24. );
  25. #endif /* _TRACE_NMI_H */
  26. /* This part ust be outside protection */
  27. #include <trace/define_trace.h>