Skip to contentSkip to conversation

KVM: trace: fix trace_kvm_pml_full build error on i386

PATCH New Kai Huang 1 participant 1 message Jan 30, 2015

Subsystems (3)
lore
Share & tools
lore

Kai Huang

author
#0 lore raw

PATCH 1/1 KVM: trace: fix trace_kvm_pml_full build error on i386

Fix trace_kvm_pml_full build error on i386, introduced by below commit:

commit 19cf3eb32410 ("KVM: VMX: Add PML support in VMX")

In above commit trace_kvm_pml_full was only defined in CONFIG_X86_64, which breaks build on i386. Fix it by moving trace_kvm_pml_full definition out of CONFIG_X86_64.

Tested with Fengguang's .config, and also did sanity test on x86_64.

---
 arch/x86/kvm/trace.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kvm/trace.h +2 -2
index a139977..7c7bc8b 100644
@@ -846,6 +846,8 @@ TRACE_EVENT(kvm_track_tsc,
 		  __print_symbolic(__entry->host_clock, host_clocks))
 );
 
+#endif /* CONFIG_X86_64 */
+
 /*
  * Tracepoint for PML full VMEXIT.
  */
@@ -864,8 +866,6 @@ TRACE_EVENT(kvm_pml_full,
 	TP_printk("vcpu %d: PML full", __entry->vcpu_id)
 );
 
-#endif /* CONFIG_X86_64 */
-
 TRACE_EVENT(kvm_ple_window,
 	TP_PROTO(bool grow, unsigned int vcpu_id, int new, int old),
 	TP_ARGS(grow, vcpu_id, new, old),
Signature · 1 line
2.1.0