summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-03-12 15:31:31 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-03-13 14:13:02 -0700
commitc969a9d7bbf46f983c4a48566b3b2f7340b02296 (patch)
tree320dc4b947a7ea2c11e5a3f0d8d2e93408876804 /tools/perf/scripts/python/stackcollapse.py
parentad2f6258dd1d484f328d5cdcc1bc760419636cb2 (diff)
perf branch: Avoid incrementing NULL
If the entry is NULL the value is meaningless so early return NULL to avoid an increment of NULL. This was happening in calls from has_stitched_lbr when running the "perf record LBR tests". The return value isn't used in that case, so returning NULL as no effect. Fixes: 42bbabed09ce ("perf tools: Add hw_idx in struct branch_stack") Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions