aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAndreas Gerstmayr <[email protected]>2020-04-02 12:54:16 +0000
committerArnaldo Carvalho de Melo <[email protected]>2020-04-03 12:39:53 +0000
commit1a4025f06059eeaecb2ef24363350ea3431568df (patch)
treedf1f51595a4fdc24448a551711d5d46d1f89e384 /tools/perf/scripts/python/stackcollapse.py
parentperf script: add -S/--symbols documentation (diff)
downloadkernel-1a4025f06059eeaecb2ef24363350ea3431568df.tar.gz
kernel-1a4025f06059eeaecb2ef24363350ea3431568df.zip
perf script report: Fix SEGFAULT when using DWARF mode
When running perf script report with a Python script and a callgraph in DWARF mode, intr_regs->regs can be 0 and therefore crashing the regs_map function. Added a check for this condition (same check as in builtin-script.c:595). Signed-off-by: Andreas Gerstmayr <[email protected]> Tested-by: Kim Phillips <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt (VMware) <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions