Commit d26b8655 authored by Alexander Yarygin's avatar Alexander Yarygin Committed by Christian Borntraeger

KVM: s390: Use intercept_insn decoder in trace event

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: default avatarAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Acked-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent 05db1f6e
...@@ -154,7 +154,6 @@ TRACE_EVENT(kvm_s390_intercept_instruction, ...@@ -154,7 +154,6 @@ TRACE_EVENT(kvm_s390_intercept_instruction,
TP_STRUCT__entry( TP_STRUCT__entry(
VCPU_FIELD_COMMON VCPU_FIELD_COMMON
__field(__u64, instruction) __field(__u64, instruction)
__field(char, insn[8])
), ),
TP_fast_assign( TP_fast_assign(
...@@ -165,10 +164,8 @@ TRACE_EVENT(kvm_s390_intercept_instruction, ...@@ -165,10 +164,8 @@ TRACE_EVENT(kvm_s390_intercept_instruction,
VCPU_TP_PRINTK("intercepted instruction %016llx (%s)", VCPU_TP_PRINTK("intercepted instruction %016llx (%s)",
__entry->instruction, __entry->instruction,
insn_to_mnemonic((unsigned char *) __print_symbolic(icpt_insn_decoder(__entry->instruction),
&__entry->instruction, icpt_insn_codes))
__entry->insn, sizeof(__entry->insn)) ?
"unknown" : __entry->insn)
); );
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment