diff options
-rw-r--r-- | arch/x86/kvm/trace.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index cd8c90db41a5..6c2c87fa6e4f 100644 --- a/arch/x86/kvm/trace.h +++ b/arch/x86/kvm/trace.h | |||
@@ -111,6 +111,15 @@ TRACE_EVENT(kvm_cpuid, | |||
111 | __entry->rbx, __entry->rcx, __entry->rdx) | 111 | __entry->rbx, __entry->rcx, __entry->rdx) |
112 | ); | 112 | ); |
113 | 113 | ||
114 | #define AREG(x) { APIC_##x, "APIC_" #x } | ||
115 | |||
116 | #define kvm_trace_symbol_apic \ | ||
117 | AREG(ID), AREG(LVR), AREG(TASKPRI), AREG(ARBPRI), AREG(PROCPRI), \ | ||
118 | AREG(EOI), AREG(RRR), AREG(LDR), AREG(DFR), AREG(SPIV), AREG(ISR), \ | ||
119 | AREG(TMR), AREG(IRR), AREG(ESR), AREG(ICR), AREG(ICR2), AREG(LVTT), \ | ||
120 | AREG(LVTTHMR), AREG(LVTPC), AREG(LVT0), AREG(LVT1), AREG(LVTERR), \ | ||
121 | AREG(TMICT), AREG(TMCCT), AREG(TDCR), AREG(SELF_IPI), AREG(EFEAT), \ | ||
122 | AREG(ECTRL) | ||
114 | /* | 123 | /* |
115 | * Tracepoint for apic access. | 124 | * Tracepoint for apic access. |
116 | */ | 125 | */ |
@@ -130,9 +139,10 @@ TRACE_EVENT(kvm_apic, | |||
130 | __entry->val = val; | 139 | __entry->val = val; |
131 | ), | 140 | ), |
132 | 141 | ||
133 | TP_printk("apic_%s 0x%x = 0x%x", | 142 | TP_printk("apic_%s %s = 0x%x", |
134 | __entry->rw ? "write" : "read", | 143 | __entry->rw ? "write" : "read", |
135 | __entry->reg, __entry->val) | 144 | __print_symbolic(__entry->reg, kvm_trace_symbol_apic), |
145 | __entry->val) | ||
136 | ); | 146 | ); |
137 | 147 | ||
138 | #define trace_kvm_apic_read(reg, val) trace_kvm_apic(0, reg, val) | 148 | #define trace_kvm_apic_read(reg, val) trace_kvm_apic(0, reg, val) |