lkml.org 
[lkml]   [2009]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] perf tools: Add 'signed' flag setting back into trace-event-parse.c
Date
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>
---
tools/perf/util/trace-event-parse.c | 3 ++-
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 180368b..0302405 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -946,7 +946,8 @@ static int event_read_fields(struct event *event, struct format_field **fields)
if (read_expect_type(EVENT_ITEM, &token))
goto fail;

- /* add signed type */
+ if (strtoul(token, NULL, 0))
+ field->flags |= FIELD_IS_SIGNED;

free_token(token);
if (read_expected(EVENT_OP, ";") < 0)
--
1.6.4.GIT


\
 
 \ /
  Last update: 2009-11-25 08:17    [W:0.038 / U:0.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site