diff options
author | Avi Kivity <avi@redhat.com> | 2010-11-29 12:25:39 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-11-29 18:32:21 -0500 |
commit | 5fe98c8ffae2ccb1606ec05f281327259d1efc48 (patch) | |
tree | 8af3fc8f3e348247e4e44dac2b1a0871898d240b | |
parent | a94131b4ba0d2a438488a84e60a19f0dcf3972f8 (diff) |
kvm: Do not warn on new fields
The kvm plugin understands a few new fields; don't warn if they are missing,
as expected on older kernels.
Signed-off-by: Avi Kivity <avi@redhat.com>
LKML-Reference: <1291051539-16791-1-git-send-email-avi@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | plugin_kvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin_kvm.c b/plugin_kvm.c index c1cb2e4..8115235 100644 --- a/plugin_kvm.c +++ b/plugin_kvm.c | |||
@@ -249,15 +249,15 @@ static int kvm_exit_handler(struct trace_seq *s, struct record *record, | |||
249 | 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) |
250 | return -1; | 250 | return -1; |
251 | 251 | ||
252 | if (pevent_get_field_val(s, event, "isa", record, &isa, 1) < 0) | 252 | if (pevent_get_field_val(s, event, "isa", record, &isa, 0) < 0) |
253 | isa = 1; | 253 | isa = 1; |
254 | 254 | ||
255 | trace_seq_printf(s, "reason %s", find_exit_reason(isa, val)); | 255 | trace_seq_printf(s, "reason %s", find_exit_reason(isa, val)); |
256 | 256 | ||
257 | 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); |
258 | 258 | ||
259 | if (pevent_get_field_val(s, event, "info1", record, &info1, 1) >= 0 | 259 | if (pevent_get_field_val(s, event, "info1", record, &info1, 0) >= 0 |
260 | && pevent_get_field_val(s, event, "info2", record, &info2, 1) >= 0) | 260 | && pevent_get_field_val(s, event, "info2", record, &info2, 0) >= 0) |
261 | trace_seq_printf(s, " info %llx %llx\n", info1, info2); | 261 | trace_seq_printf(s, " info %llx %llx\n", info1, info2); |
262 | 262 | ||
263 | return 0; | 263 | return 0; |