diff options
author | Ian Rogers <[email protected]> | 2024-02-23 17:14:20 -0800 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-02-29 13:40:13 -0800 |
commit | 97b6b4ac1c5dd42a473a4f8e775d97476c5da038 (patch) | |
tree | fecfe26bbfbf23802a216c30738863eff9d626b0 /tools/perf/util/trace-event-scripting.c | |
parent | d4be39cadef0dbba6667a96e8e7857d510ed4e20 (diff) |
perf metrics: Fix segv for metrics with no events
A metric may have no events, for example, the transaction metrics on
x86 are dependent on there being TSX events. Fix a segv where an evsel
of NULL is dereferenced for a metric leader value.
Fixes: a59fb796a36b ("perf metrics: Compute unmerged uncore metrics individually")
Signed-off-by: Ian Rogers <[email protected]>
Reviewed-by: Kan Liang <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions