diff options
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
| -rw-r--r-- | tools/perf/util/trace-event-parse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 93a82fead958..c174765d4056 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
| @@ -1819,7 +1819,7 @@ static int event_read_print(struct event *event) | |||
| 1819 | if (ret < 0) | 1819 | if (ret < 0) |
| 1820 | return -1; | 1820 | return -1; |
| 1821 | 1821 | ||
| 1822 | return 0; | 1822 | return ret; |
| 1823 | 1823 | ||
| 1824 | fail: | 1824 | fail: |
| 1825 | free_token(token); | 1825 | free_token(token); |
| @@ -3088,6 +3088,9 @@ int parse_ftrace_file(char *buf, unsigned long size) | |||
| 3088 | if (ret < 0) | 3088 | if (ret < 0) |
| 3089 | die("failed to read ftrace event print fmt"); | 3089 | die("failed to read ftrace event print fmt"); |
| 3090 | 3090 | ||
| 3091 | /* New ftrace handles args */ | ||
| 3092 | if (ret > 0) | ||
| 3093 | return 0; | ||
| 3091 | /* | 3094 | /* |
| 3092 | * The arguments for ftrace files are parsed by the fields. | 3095 | * The arguments for ftrace files are parsed by the fields. |
| 3093 | * Set up the fields as their arguments. | 3096 | * Set up the fields as their arguments. |
