Skip to content

Commit

Permalink
KVM: s390: Use intercept_insn decoder in trace event
Browse files Browse the repository at this point in the history
The current trace definition doesn't work very well with the perf tool.
Perf shows a "insn_to_mnemonic not found" message. Let's handle the
decoding completely in a parseable format.

Signed-off-by: Alexander Yarygin <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
  • Loading branch information
zpp0 authored and borntraeger committed May 16, 2014
1 parent 05db1f6 commit d26b865
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/s390/kvm/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ TRACE_EVENT(kvm_s390_intercept_instruction,
TP_STRUCT__entry(
VCPU_FIELD_COMMON
__field(__u64, instruction)
__field(char, insn[8])
),

TP_fast_assign(
Expand All @@ -165,10 +164,8 @@ TRACE_EVENT(kvm_s390_intercept_instruction,

VCPU_TP_PRINTK("intercepted instruction %016llx (%s)",
__entry->instruction,
insn_to_mnemonic((unsigned char *)
&__entry->instruction,
__entry->insn, sizeof(__entry->insn)) ?
"unknown" : __entry->insn)
__print_symbolic(icpt_insn_decoder(__entry->instruction),
icpt_insn_codes))
);

/*
Expand Down

0 comments on commit d26b865

Please sign in to comment.