trace-events-emulation.h 742 B

123456789101112131415161718192021222324252627282930313233343536
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM emulation
  3. #if !defined(_TRACE_EMULATION_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _TRACE_EMULATION_H
  5. #include <linux/tracepoint.h>
  6. TRACE_EVENT(instruction_emulation,
  7. TP_PROTO(const char *instr, u64 addr),
  8. TP_ARGS(instr, addr),
  9. TP_STRUCT__entry(
  10. __string(instr, instr)
  11. __field(u64, addr)
  12. ),
  13. TP_fast_assign(
  14. __assign_str(instr, instr);
  15. __entry->addr = addr;
  16. ),
  17. TP_printk("instr=\"%s\" addr=0x%llx", __get_str(instr), __entry->addr)
  18. );
  19. #endif /* _TRACE_EMULATION_H */
  20. /* This part must be outside protection */
  21. #undef TRACE_INCLUDE_PATH
  22. #undef TRACE_INCLUDE_FILE
  23. #define TRACE_INCLUDE_PATH .
  24. #define TRACE_INCLUDE_FILE trace-events-emulation
  25. #include <trace/define_trace.h>