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