1 #if !defined(_TRACE_ARM64_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
2 #define _TRACE_ARM64_KVM_H
4 #include <linux/tracepoint.h>
7 #define TRACE_SYSTEM kvm
9 TRACE_EVENT(kvm_wfx_arm64
,
10 TP_PROTO(unsigned long vcpu_pc
, bool is_wfe
),
11 TP_ARGS(vcpu_pc
, is_wfe
),
14 __field(unsigned long, vcpu_pc
)
19 __entry
->vcpu_pc
= vcpu_pc
;
20 __entry
->is_wfe
= is_wfe
;
23 TP_printk("guest executed wf%c at: 0x%08lx",
24 __entry
->is_wfe
? 'e' : 'i', __entry
->vcpu_pc
)
27 TRACE_EVENT(kvm_hvc_arm64
,
28 TP_PROTO(unsigned long vcpu_pc
, unsigned long r0
, unsigned long imm
),
29 TP_ARGS(vcpu_pc
, r0
, imm
),
32 __field(unsigned long, vcpu_pc
)
33 __field(unsigned long, r0
)
34 __field(unsigned long, imm
)
38 __entry
->vcpu_pc
= vcpu_pc
;
43 TP_printk("HVC at 0x%08lx (r0: 0x%08lx, imm: 0x%lx)",
44 __entry
->vcpu_pc
, __entry
->r0
, __entry
->imm
)
47 #endif /* _TRACE_ARM64_KVM_H */
49 #undef TRACE_INCLUDE_PATH
50 #define TRACE_INCLUDE_PATH .
51 #undef TRACE_INCLUDE_FILE
52 #define TRACE_INCLUDE_FILE trace
54 /* This part must be outside protection */
55 #include <trace/define_trace.h>