summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm/trace_hv.h
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@linux.ibm.com>2022-03-29 00:58:31 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-18 17:44:50 +0300
commitad55bae7dc364417434b69dd6c30104f20d0f84d (patch)
tree7c63011a4d0451737e15b3471f057cf88291260f /arch/powerpc/kvm/trace_hv.h
parentb22af9041927075b82bcaf4b6c7a354688198d47 (diff)
downloadlinux-ad55bae7dc364417434b69dd6c30104f20d0f84d.tar.xz
KVM: PPC: Book3S HV: Fix vcore_blocked tracepoint
We removed most of the vcore logic from the P9 path but there's still a tracepoint that tried to dereference vc->runner. Fixes: ecb6a7207f92 ("KVM: PPC: Book3S HV P9: Remove most of the vcore logic") Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220328215831.320409-1-farosas@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kvm/trace_hv.h')
-rw-r--r--arch/powerpc/kvm/trace_hv.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/trace_hv.h b/arch/powerpc/kvm/trace_hv.h
index 38cd0ed0a617..32e2cb5811cc 100644
--- a/arch/powerpc/kvm/trace_hv.h
+++ b/arch/powerpc/kvm/trace_hv.h
@@ -409,9 +409,9 @@ TRACE_EVENT(kvmppc_run_core,
);
TRACE_EVENT(kvmppc_vcore_blocked,
- TP_PROTO(struct kvmppc_vcore *vc, int where),
+ TP_PROTO(struct kvm_vcpu *vcpu, int where),
- TP_ARGS(vc, where),
+ TP_ARGS(vcpu, where),
TP_STRUCT__entry(
__field(int, n_runnable)
@@ -421,8 +421,8 @@ TRACE_EVENT(kvmppc_vcore_blocked,
),
TP_fast_assign(
- __entry->runner_vcpu = vc->runner->vcpu_id;
- __entry->n_runnable = vc->n_runnable;
+ __entry->runner_vcpu = vcpu->vcpu_id;
+ __entry->n_runnable = vcpu->arch.vcore->n_runnable;
__entry->where = where;
__entry->tgid = current->tgid;
),