aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-02-09 12:49:46 -0800
committerNamhyung Kim <[email protected]>2024-02-13 13:48:09 -0800
commit2543947c77e0e224bda86b4e7220c2f6714da463 (patch)
tree55d5336fe0a051fe5b0b8b6c2b87bea76a36d9c4 /tools/perf/scripts/python/libxed.py
parent6dd76680b925228312756c13b9b983661b552a64 (diff)
perf stat: Avoid metric-only segv
Cycles is recognized as part of a hard coded metric in stat-shadow.c, it may call print_metric_only with a NULL fmt string leading to a segfault. Handle the NULL fmt explicitly. Fixes: 088519f318be ("perf stat: Move the display functions to stat-display.c") Signed-off-by: Ian Rogers <[email protected]> Reviewed-by: Kan Liang <[email protected]> Cc: K Prateek Nayak <[email protected]> Cc: James Clark <[email protected]> Cc: Kaige Ye <[email protected]> Cc: John Garry <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions