1 #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
4 #include <linux/tracepoint.h>
7 #define TRACE_SYSTEM kvm
8 #define TRACE_INCLUDE_PATH .
9 #define TRACE_INCLUDE_FILE trace
12 * Tracepoint for guest mode entry.
14 TRACE_EVENT(kvm_ppc_instr
,
15 TP_PROTO(unsigned int inst
, unsigned long pc
, unsigned int emulate
),
16 TP_ARGS(inst
, pc
, emulate
),
19 __field( unsigned int, inst
)
20 __field( unsigned long, pc
)
21 __field( unsigned int, emulate
)
27 __entry
->emulate
= emulate
;
30 TP_printk("inst %u pc 0x%lx emulate %u\n",
31 __entry
->inst
, __entry
->pc
, __entry
->emulate
)
34 TRACE_EVENT(kvm_stlb_inval
,
35 TP_PROTO(unsigned int stlb_index
),
39 __field( unsigned int, stlb_index
)
43 __entry
->stlb_index
= stlb_index
;
46 TP_printk("stlb_index %u", __entry
->stlb_index
)
49 TRACE_EVENT(kvm_stlb_write
,
50 TP_PROTO(unsigned int victim
, unsigned int tid
, unsigned int word0
,
51 unsigned int word1
, unsigned int word2
),
52 TP_ARGS(victim
, tid
, word0
, word1
, word2
),
55 __field( unsigned int, victim
)
56 __field( unsigned int, tid
)
57 __field( unsigned int, word0
)
58 __field( unsigned int, word1
)
59 __field( unsigned int, word2
)
63 __entry
->victim
= victim
;
65 __entry
->word0
= word0
;
66 __entry
->word1
= word1
;
67 __entry
->word2
= word2
;
70 TP_printk("victim %u tid %u w0 %u w1 %u w2 %u",
71 __entry
->victim
, __entry
->tid
, __entry
->word0
,
72 __entry
->word1
, __entry
->word2
)
75 TRACE_EVENT(kvm_gtlb_write
,
76 TP_PROTO(unsigned int gtlb_index
, unsigned int tid
, unsigned int word0
,
77 unsigned int word1
, unsigned int word2
),
78 TP_ARGS(gtlb_index
, tid
, word0
, word1
, word2
),
81 __field( unsigned int, gtlb_index
)
82 __field( unsigned int, tid
)
83 __field( unsigned int, word0
)
84 __field( unsigned int, word1
)
85 __field( unsigned int, word2
)
89 __entry
->gtlb_index
= gtlb_index
;
91 __entry
->word0
= word0
;
92 __entry
->word1
= word1
;
93 __entry
->word2
= word2
;
96 TP_printk("gtlb_index %u tid %u w0 %u w1 %u w2 %u",
97 __entry
->gtlb_index
, __entry
->tid
, __entry
->word0
,
98 __entry
->word1
, __entry
->word2
)
101 #endif /* _TRACE_KVM_H */
103 /* This part must be outside protection */
104 #include <trace/define_trace.h>