diff options
author | Avi Kivity <avi@redhat.com> | 2010-11-23 05:58:28 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-11-23 12:04:08 -0500 |
commit | a94131b4ba0d2a438488a84e60a19f0dcf3972f8 (patch) | |
tree | f934f737c6a5135069d32588892580a4928a0c12 | |
parent | 097a2b3b31deb7bb1ce3df6827017787372c17cb (diff) |
kvm: Display the new kvm_exit info1 and info2 fields, if available
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | plugin_kvm.c | 5 |
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 | ||