aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util')
-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)