diff options
author | Alexander Yarygin <yarygin@linux.vnet.ibm.com> | 2014-01-30 13:11:14 -0500 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-05-16 08:57:24 -0400 |
commit | 6de1bf88dfbfa97857e125f0b359c3c291f7a5f8 (patch) | |
tree | 1bd5bc7d63278181b8f5aa5c46df70b0045e95ed /arch/s390/kvm/trace.h | |
parent | ceae283bb2e0176c53038d0fd717e64b9a9b97a8 (diff) |
KVM: s390: Use trace tables from sie.h.
Use the symbolic translation tables from sie.h for decoding diag, sigp
and sie exit codes.
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/trace.h')
-rw-r--r-- | arch/s390/kvm/trace.h | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/arch/s390/kvm/trace.h b/arch/s390/kvm/trace.h index abf6ba52769e..00f57a507ea2 100644 --- a/arch/s390/kvm/trace.h +++ b/arch/s390/kvm/trace.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _TRACE_KVM_H | 2 | #define _TRACE_KVM_H |
3 | 3 | ||
4 | #include <linux/tracepoint.h> | 4 | #include <linux/tracepoint.h> |
5 | #include <asm/sigp.h> | 5 | #include <asm/sie.h> |
6 | #include <asm/debug.h> | 6 | #include <asm/debug.h> |
7 | #include <asm/dis.h> | 7 | #include <asm/dis.h> |
8 | 8 | ||
@@ -125,17 +125,6 @@ TRACE_EVENT(kvm_s390_sie_fault, | |||
125 | VCPU_TP_PRINTK("%s", "fault in sie instruction") | 125 | VCPU_TP_PRINTK("%s", "fault in sie instruction") |
126 | ); | 126 | ); |
127 | 127 | ||
128 | #define sie_intercept_code \ | ||
129 | {0x04, "Instruction"}, \ | ||
130 | {0x08, "Program interruption"}, \ | ||
131 | {0x0C, "Instruction and program interruption"}, \ | ||
132 | {0x10, "External request"}, \ | ||
133 | {0x14, "External interruption"}, \ | ||
134 | {0x18, "I/O request"}, \ | ||
135 | {0x1C, "Wait state"}, \ | ||
136 | {0x20, "Validity"}, \ | ||
137 | {0x28, "Stop request"} | ||
138 | |||
139 | TRACE_EVENT(kvm_s390_sie_exit, | 128 | TRACE_EVENT(kvm_s390_sie_exit, |
140 | TP_PROTO(VCPU_PROTO_COMMON, u8 icptcode), | 129 | TP_PROTO(VCPU_PROTO_COMMON, u8 icptcode), |
141 | TP_ARGS(VCPU_ARGS_COMMON, icptcode), | 130 | TP_ARGS(VCPU_ARGS_COMMON, icptcode), |
@@ -227,18 +216,6 @@ TRACE_EVENT(kvm_s390_intercept_validity, | |||
227 | * Trace points for instructions that are of special interest. | 216 | * Trace points for instructions that are of special interest. |
228 | */ | 217 | */ |
229 | 218 | ||
230 | #define sigp_order_codes \ | ||
231 | {SIGP_SENSE, "sense"}, \ | ||
232 | {SIGP_EXTERNAL_CALL, "external call"}, \ | ||
233 | {SIGP_EMERGENCY_SIGNAL, "emergency signal"}, \ | ||
234 | {SIGP_STOP, "stop"}, \ | ||
235 | {SIGP_STOP_AND_STORE_STATUS, "stop and store status"}, \ | ||
236 | {SIGP_SET_ARCHITECTURE, "set architecture"}, \ | ||
237 | {SIGP_SET_PREFIX, "set prefix"}, \ | ||
238 | {SIGP_STORE_STATUS_AT_ADDRESS, "store status at addr"}, \ | ||
239 | {SIGP_SENSE_RUNNING, "sense running"}, \ | ||
240 | {SIGP_RESTART, "restart"} | ||
241 | |||
242 | TRACE_EVENT(kvm_s390_handle_sigp, | 219 | TRACE_EVENT(kvm_s390_handle_sigp, |
243 | TP_PROTO(VCPU_PROTO_COMMON, __u8 order_code, __u16 cpu_addr, \ | 220 | TP_PROTO(VCPU_PROTO_COMMON, __u8 order_code, __u16 cpu_addr, \ |
244 | __u32 parameter), | 221 | __u32 parameter), |
@@ -265,13 +242,6 @@ TRACE_EVENT(kvm_s390_handle_sigp, | |||
265 | __entry->cpu_addr, __entry->parameter) | 242 | __entry->cpu_addr, __entry->parameter) |
266 | ); | 243 | ); |
267 | 244 | ||
268 | #define diagnose_codes \ | ||
269 | {0x10, "release pages"}, \ | ||
270 | {0x44, "time slice end"}, \ | ||
271 | {0x308, "ipl functions"}, \ | ||
272 | {0x500, "kvm hypercall"}, \ | ||
273 | {0x501, "kvm breakpoint"} | ||
274 | |||
275 | TRACE_EVENT(kvm_s390_handle_diag, | 245 | TRACE_EVENT(kvm_s390_handle_diag, |
276 | TP_PROTO(VCPU_PROTO_COMMON, __u16 code), | 246 | TP_PROTO(VCPU_PROTO_COMMON, __u16 code), |
277 | TP_ARGS(VCPU_ARGS_COMMON, code), | 247 | TP_ARGS(VCPU_ARGS_COMMON, code), |