summaryrefslogtreecommitdiffstats
path: root/lib/logic_pio.c
diff options
context:
space:
mode:
authorAndreas Gerstmayr <agerstmayr@redhat.com>2020-04-02 14:54:16 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-04-03 09:39:53 -0300
commit1a4025f06059eeaecb2ef24363350ea3431568df (patch)
treedf1f51595a4fdc24448a551711d5d46d1f89e384 /lib/logic_pio.c
parent628d736d913a490d587941e8f68392f2de17e37a (diff)
downloadlinux-stable-1a4025f06059eeaecb2ef24363350ea3431568df.tar.gz
linux-stable-1a4025f06059eeaecb2ef24363350ea3431568df.tar.bz2
linux-stable-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 <agerstmayr@redhat.com> Tested-by: Kim Phillips <kim.phillips@amd.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt (VMware) <rostedt@goodmis.org> Link: http://lore.kernel.org/lkml/20200402125417.422232-1-agerstmayr@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'lib/logic_pio.c')
0 files changed, 0 insertions, 0 deletions