vsyscall_trace.h 559 B

1234567891011121314151617181920212223242526272829
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM vsyscall
  3. #if !defined(__VSYSCALL_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define __VSYSCALL_TRACE_H
  5. #include <linux/tracepoint.h>
  6. TRACE_EVENT(emulate_vsyscall,
  7. TP_PROTO(int nr),
  8. TP_ARGS(nr),
  9. TP_STRUCT__entry(__field(int, nr)),
  10. TP_fast_assign(
  11. __entry->nr = nr;
  12. ),
  13. TP_printk("nr = %d", __entry->nr)
  14. );
  15. #endif
  16. #undef TRACE_INCLUDE_PATH
  17. #define TRACE_INCLUDE_PATH ../../arch/x86/entry/vsyscall/
  18. #define TRACE_INCLUDE_FILE vsyscall_trace
  19. #include <trace/define_trace.h>