diff options
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 665dac20cd1e..37b10c2cd3c9 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -90,7 +90,7 @@ void parse_cmdlines(char *file, int size __unused) | |||
90 | while (line) { | 90 | while (line) { |
91 | item = malloc_or_die(sizeof(*item)); | 91 | item = malloc_or_die(sizeof(*item)); |
92 | sscanf(line, "%d %as", &item->pid, | 92 | sscanf(line, "%d %as", &item->pid, |
93 | (float *)&item->comm); /* workaround gcc warning */ | 93 | (float *)(void *)&item->comm); /* workaround gcc warning */ |
94 | item->next = list; | 94 | item->next = list; |
95 | list = item; | 95 | list = item; |
96 | line = strtok_r(NULL, "\n", &next); | 96 | line = strtok_r(NULL, "\n", &next); |
@@ -152,10 +152,10 @@ void parse_proc_kallsyms(char *file, unsigned int size __unused) | |||
152 | item = malloc_or_die(sizeof(*item)); | 152 | item = malloc_or_die(sizeof(*item)); |
153 | item->mod = NULL; | 153 | item->mod = NULL; |
154 | ret = sscanf(line, "%as %c %as\t[%as", | 154 | ret = sscanf(line, "%as %c %as\t[%as", |
155 | (float *)&addr_str, /* workaround gcc warning */ | 155 | (float *)(void *)&addr_str, /* workaround gcc warning */ |
156 | &ch, | 156 | &ch, |
157 | (float *)&item->func, | 157 | (float *)(void *)&item->func, |
158 | (float *)&item->mod); | 158 | (float *)(void *)&item->mod); |
159 | item->addr = strtoull(addr_str, NULL, 16); | 159 | item->addr = strtoull(addr_str, NULL, 16); |
160 | free(addr_str); | 160 | free(addr_str); |
161 | 161 | ||
@@ -291,8 +291,8 @@ void parse_ftrace_printk(char *file, unsigned int size __unused) | |||
291 | while (line) { | 291 | while (line) { |
292 | item = malloc_or_die(sizeof(*item)); | 292 | item = malloc_or_die(sizeof(*item)); |
293 | ret = sscanf(line, "%as : %as", | 293 | ret = sscanf(line, "%as : %as", |
294 | (float *)&addr_str, /* workaround gcc warning */ | 294 | (float *)(void *)&addr_str, /* workaround gcc warning */ |
295 | (float *)&item->printk); | 295 | (float *)(void *)&item->printk); |
296 | item->addr = strtoull(addr_str, NULL, 16); | 296 | item->addr = strtoull(addr_str, NULL, 16); |
297 | free(addr_str); | 297 | free(addr_str); |
298 | 298 | ||