kernel_optimize_test/tools
Andreas Gerstmayr 1a4025f060 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>
2020-04-03 09:39:53 -03:00
..
accounting
arch x86/insn: Add Control-flow Enforcement (CET) instructions to the opcode map 2020-03-27 10:38:46 -03:00
bootconfig
bpf
build perf tools: Add file-handle feature test 2020-04-03 09:37:55 -03:00
cgroup
debugging
firewire
firmware
gpio
hv
iio
include tools headers UAPI: Update tools's copy of linux/perf_event.h 2020-04-02 12:51:49 -03:00
io_uring
kvm/kvm_stat
laptop
leds
lib perf tools: Basic support for CGROUP event 2020-04-03 09:37:55 -03:00
memory-model
nfsd
objtool
pci
pcmcia
perf perf script report: Fix SEGFAULT when using DWARF mode 2020-04-03 09:39:53 -03:00
power
scripts
spi
testing
thermal/tmon
time
usb
virtio
vm
wmi
Makefile