projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9533ac6
)
perf tools: Add 'signed' flag setting back into trace-event-parse.c
author
Tom Zanussi
<
[email protected]
>
Wed, 25 Nov 2009 07:14:58 +0000
(
01:14
-0600)
committer
Ingo Molnar
<
[email protected]
>
Wed, 25 Nov 2009 08:06:09 +0000
(09:06 +0100)
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 <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
LKML-Reference: <
1259133299
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/util/trace-event-parse.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/trace-event-parse.c
b/tools/perf/util/trace-event-parse.c
index eae56050308677fcba7209811be99fdd0157c963..7021dc1b0ca648981b89c716d87377d0e9a1cfbd 100644
(file)
--- 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)
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)