[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1291051539-16791-1-git-send-email-avi@redhat.com>
Date: Mon, 29 Nov 2010 19:25:39 +0200
From: Avi Kivity <avi@...hat.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-trace-users@...r.kernel.org
Subject: [PATCH trace-cmd] kvm: don't 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@...hat.com>
---
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,
if (pevent_get_field_val(s, event, "exit_reason", record, &val, 1) < 0)
return -1;
- if (pevent_get_field_val(s, event, "isa", record, &isa, 1) < 0)
+ if (pevent_get_field_val(s, event, "isa", record, &isa, 0) < 0)
isa = 1;
trace_seq_printf(s, "reason %s", find_exit_reason(isa, val));
pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1);
- if (pevent_get_field_val(s, event, "info1", record, &info1, 1) >= 0
- && pevent_get_field_val(s, event, "info2", record, &info2, 1) >= 0)
+ if (pevent_get_field_val(s, event, "info1", record, &info1, 0) >= 0
+ && pevent_get_field_val(s, event, "info2", record, &info2, 0) >= 0)
trace_seq_printf(s, " info %llx %llx\n", info1, info2);
return 0;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists