diff options
author | Namhyung Kim <[email protected]> | 2024-04-24 16:00:15 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-04-26 22:07:21 -0300 |
commit | 47557db99a5decba2192303ed34ec1add5177b51 (patch) | |
tree | de606a974f8476b70a73f3100ddf5f14ce154907 /tools/perf/scripts/python/gecko.py | |
parent | 281bf8f63f20b73aafae16e0f1d02b141701b0ed (diff) |
perf annotate-data: Check if 'struct annotation_source' was allocated on 'perf report' TUI
As it removed the sample accounting for code when no symbol sort key is
given for 'perf report' TUI, it might not have allocated the
'struct annotated_source' yet. Let's check if it's NULL first.
Fixes: 6cdd977ec24e1538 ("perf report: Do not collect sample histogram unnecessarily")
Reviewed-by: Ian Rogers <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[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/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions