aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTom Zanussi <tzanussi@gmail.com>2009-11-25 02:14:58 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-25 03:06:09 -0500
commit0d0bea5ea4a0e91feff22ac5e32e14ff3a682247 (patch)
tree455b0f0a60d1000a3a927787ed76248a436cc6c7 /tools
parent9533ac6291d78cd16c4b11a15bfbb055affd76c3 (diff)
perf tools: Add 'signed' flag setting back into trace-event-parse.c
Commit 13999e59343b042b0807be2df6ae5895d29782a0 (perf tools: Handle the case with and without the "signed" trace field) removed code to set the FIELD_IS_SIGNED flag that was originally added by commit 26a50744b21fff65bd754874072857bee8967f4d (tracing/events: Add 'signed' field to format files). This adds it back. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1259133299-23594-2-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/trace-event-parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c
index eae560503086..7021dc1b0ca6 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -941,7 +941,8 @@ static int event_read_fields(struct event *event, struct format_field **fields)
941 if (read_expect_type(EVENT_ITEM, &token)) 941 if (read_expect_type(EVENT_ITEM, &token))
942 goto fail; 942 goto fail;
943 943
944 /* add signed type */ 944 if (strtoul(token, NULL, 0))
945 field->flags |= FIELD_IS_SIGNED;
945 946
946 free_token(token); 947 free_token(token);
947 if (read_expected(EVENT_OP, ";") < 0) 948 if (read_expected(EVENT_OP, ";") < 0)