diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/builtin-trace.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 66aa2a00414b..9d23edc06698 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
| @@ -1606,7 +1606,12 @@ static size_t syscall__scnprintf_args(struct syscall *sc, char *bf, size_t size, | |||
| 1606 | "%ld", val); | 1606 | "%ld", val); |
| 1607 | } | 1607 | } |
| 1608 | } | 1608 | } |
| 1609 | } else { | 1609 | } else if (IS_ERR(sc->tp_format)) { |
| 1610 | /* | ||
| 1611 | * If we managed to read the tracepoint /format file, then we | ||
| 1612 | * may end up not having any args, like with gettid(), so only | ||
| 1613 | * print the raw args when we didn't manage to read it. | ||
| 1614 | */ | ||
| 1610 | int i = 0; | 1615 | int i = 0; |
| 1611 | 1616 | ||
| 1612 | while (i < 6) { | 1617 | while (i < 6) { |
