aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin_kvm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin_kvm.c b/plugin_kvm.c
index 659b27f..c1cb2e4 100644
--- a/plugin_kvm.c
+++ b/plugin_kvm.c
@@ -244,6 +244,7 @@ static int kvm_exit_handler(struct trace_seq *s, struct record *record,
244{ 244{
245 unsigned long long isa; 245 unsigned long long isa;
246 unsigned long long val; 246 unsigned long long val;
247 unsigned long long info1 = 0, info2 = 0;
247 248
248 if (pevent_get_field_val(s, event, "exit_reason", record, &val, 1) < 0) 249 if (pevent_get_field_val(s, event, "exit_reason", record, &val, 1) < 0)
249 return -1; 250 return -1;
@@ -255,6 +256,10 @@ static int kvm_exit_handler(struct trace_seq *s, struct record *record,
255 256
256 pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1); 257 pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1);
257 258
259 if (pevent_get_field_val(s, event, "info1", record, &info1, 1) >= 0
260 && pevent_get_field_val(s, event, "info2", record, &info2, 1) >= 0)
261 trace_seq_printf(s, " info %llx %llx\n", info1, info2);
262
258 return 0; 263 return 0;
259} 264}
260 265