aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm
diff options
context:
space:
mode:
authorAlexander Yarygin <yarygin@linux.vnet.ibm.com>2014-01-30 13:13:40 -0500
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-05-16 08:57:27 -0400
commitd26b8655f088ac6e972fd8f016b8dfa7cc1b9e5a (patch)
tree74f80cc36320df3ff92a94148a51a261475948a9 /arch/s390/kvm
parent05db1f6e037e43c1509ffb1912848269c0826c62 (diff)
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: Alexander Yarygin <yarygin@linux.vnet.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r--arch/s390/kvm/trace.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/s390/kvm/trace.h b/arch/s390/kvm/trace.h
index 00f57a507ea2..579b42afab40 100644
--- a/arch/s390/kvm/trace.h
+++ b/arch/s390/kvm/trace.h
@@ -154,7 +154,6 @@ TRACE_EVENT(kvm_s390_intercept_instruction,
154 TP_STRUCT__entry( 154 TP_STRUCT__entry(
155 VCPU_FIELD_COMMON 155 VCPU_FIELD_COMMON
156 __field(__u64, instruction) 156 __field(__u64, instruction)
157 __field(char, insn[8])
158 ), 157 ),
159 158
160 TP_fast_assign( 159 TP_fast_assign(
@@ -165,10 +164,8 @@ TRACE_EVENT(kvm_s390_intercept_instruction,
165 164
166 VCPU_TP_PRINTK("intercepted instruction %016llx (%s)", 165 VCPU_TP_PRINTK("intercepted instruction %016llx (%s)",
167 __entry->instruction, 166 __entry->instruction,
168 insn_to_mnemonic((unsigned char *) 167 __print_symbolic(icpt_insn_decoder(__entry->instruction),
169 &__entry->instruction, 168 icpt_insn_codes))
170 __entry->insn, sizeof(__entry->insn)) ?
171 "unknown" : __entry->insn)
172 ); 169 );
173 170
174/* 171/*