1 #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
4 #include <linux/tracepoint.h>
7 #define TRACE_SYSTEM kvm
10 * Tracepoints for vgic
12 TRACE_EVENT(vgic_update_irq_pending
,
13 TP_PROTO(unsigned long vcpu_id
, __u32 irq
, bool level
),
14 TP_ARGS(vcpu_id
, irq
, level
),
17 __field( unsigned long, vcpu_id
)
19 __field( bool, level
)
23 __entry
->vcpu_id
= vcpu_id
;
25 __entry
->level
= level
;
28 TP_printk("VCPU: %ld, IRQ %d, level: %d",
29 __entry
->vcpu_id
, __entry
->irq
, __entry
->level
)
33 * Tracepoints for arch_timer
35 TRACE_EVENT(kvm_timer_update_irq
,
36 TP_PROTO(unsigned long vcpu_id
, __u32 irq
, int level
),
37 TP_ARGS(vcpu_id
, irq
, level
),
40 __field( unsigned long, vcpu_id
)
46 __entry
->vcpu_id
= vcpu_id
;
48 __entry
->level
= level
;
51 TP_printk("VCPU: %ld, IRQ %d, level %d",
52 __entry
->vcpu_id
, __entry
->irq
, __entry
->level
)
55 #endif /* _TRACE_KVM_H */
57 #undef TRACE_INCLUDE_PATH
58 #define TRACE_INCLUDE_PATH ../../../virt/kvm/arm
59 #undef TRACE_INCLUDE_FILE
60 #define TRACE_INCLUDE_FILE trace
62 /* This part must be outside protection */
63 #include <trace/define_trace.h>