diff options
| author | James Clark <[email protected]> | 2022-11-30 11:15:21 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-12-14 14:16:12 +0000 |
| commit | 3f81f72d30b46efb614d93f430684c0deb8439b7 (patch) | |
| tree | b169322dff18eb65912cd8c2801a9e1b38d5b9a0 /tools/perf/util/trace-event-scripting.c | |
| parent | perf stat: Fix multi-line metric output in JSON (diff) | |
| download | kernel-3f81f72d30b46efb614d93f430684c0deb8439b7.tar.gz kernel-3f81f72d30b46efb614d93f430684c0deb8439b7.zip | |
perf stat: Fix invalid output handle
In this context, 'os' is already a pointer so the extra dereference
isn't required. This fixes the following test failure on aarch64:
$ ./perf test "json output" -vvv
92: perf stat JSON output linter :
--- start ---
Checking json output: no args Test failed for input:
...
Fatal error: glibc detected an invalid stdio handle
---- end ----
perf stat JSON output linter: FAILED!
Fixes: e7f4da312259e618 ("perf stat: Pass struct outstate to printout()")
Signed-off-by: James Clark <[email protected]>
Tested-by: Athira Jajeev <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
