]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: ppc: trace powerpc instruction emulation
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Mon, 14 Jul 2008 12:00:04 +0000 (14:00 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:15 +0000 (10:15 +0200)
This patch adds a trace point for the instruction emulation on embedded powerpc
utilizing the KVM_TRACE interface.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/powerpc/kvm/emulate.c
include/linux/kvm.h

index 4a3e274bac12b8fd8b37337eddf3bb916f8a4af5..c3ed63b2221035aa98f69f488acd94cc82d8f780 100644 (file)
@@ -769,6 +769,8 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
                break;
        }
 
+       KVMTRACE_3D(PPC_INSTR, vcpu, inst, vcpu->arch.pc, emulated, entryexit);
+
        if (advance)
                vcpu->arch.pc += 4; /* Advance past emulated instruction. */
 
index e21a5050d4d66016c7442eead80d1dda015ddcbf..d29b64881447afcf3d02fdae6950d5fafbcf1c40 100644 (file)
@@ -474,5 +474,6 @@ struct kvm_trace_rec {
 #define KVM_TRC_GTLB_WRITE       (KVM_TRC_HANDLER + 0x16)
 #define KVM_TRC_STLB_WRITE       (KVM_TRC_HANDLER + 0x17)
 #define KVM_TRC_STLB_INVAL       (KVM_TRC_HANDLER + 0x18)
+#define KVM_TRC_PPC_INSTR        (KVM_TRC_HANDLER + 0x19)
 
 #endif