diff options
author | Namhyung Kim <namhyung@kernel.org> | 2024-06-28 03:06:03 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-06-28 20:56:03 +0300 |
commit | caa463bb79a82ac5fce05a0dcf7893d94c84fc5e (patch) | |
tree | 109d3a089e0ede3711b0f6183866b06bb5c367fc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7afbf90ea2e238c4d049ff59dbb6c5f1a938e669 (diff) | |
download | linux-caa463bb79a82ac5fce05a0dcf7893d94c84fc5e.tar.xz |
perf stat: Fix a segfault with --per-cluster --metric-only
The new --per-cluster option was added recently but it forgot to update
the aggr_header fields which are used for --metric-only option. And it
resulted in a segfault due to NULL string in fputs().
Fixes: cbc917a1b03b ("perf stat: Support per-cluster aggregation")
Reviewed-by: Yicong Yang <yangyicong@hisilicon.com>
Tested-by: Yicong Yang <yangyicong@hisilicon.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20240628000604.1296808-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions