Skip to content

Commit

Permalink
kvm: move new trace event outside #ifdef CONFIG_KVM_ASYNC_PF
Browse files Browse the repository at this point in the history
Fixes compilation with ppc64_defconfig.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Wanpeng Li authored and Paolo Bonzini committed Sep 8, 2015
1 parent 2cbd782 commit 3dfe6a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/trace/events/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ TRACE_EVENT(
__entry->address)
);

#endif

TRACE_EVENT(kvm_halt_poll_ns,
TP_PROTO(bool grow, unsigned int vcpu_id, int new, int old),
TP_ARGS(grow, vcpu_id, new, old),
Expand Down Expand Up @@ -386,8 +388,6 @@ TRACE_EVENT(kvm_halt_poll_ns,
#define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \
trace_kvm_halt_poll_ns(false, vcpu_id, new, old)

#endif

#endif /* _TRACE_KVM_MAIN_H */

/* This part must be outside protection */
Expand Down

0 comments on commit 3dfe6a5

Please sign in to comment.