diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2019-11-14 15:25:38 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-18 17:01:59 +0100 |
commit | aceb98261ea7d9fe38f9c140c5531f0b13623832 (patch) | |
tree | a7e567718804d1af916498e7a89f6bd80f552f33 /tools/lib/traceevent | |
parent | perf map_groups: Auto sort maps by name, if needed (diff) | |
download | linux-aceb98261ea7d9fe38f9c140c5531f0b13623832.tar.xz linux-aceb98261ea7d9fe38f9c140c5531f0b13623832.zip |
perf callchain: Fix segfault in thread__resolve_callchain_sample()
Do not dereference 'chain' when it is NULL.
$ perf record -e intel_pt//u -e branch-misses:u uname
$ perf report --itrace=l --branch-history
perf: Segmentation fault
Fixes: e9024d519d89 ("perf callchain: Honour the ordering of PERF_CONTEXT_{USER,KERNEL,etc}")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20191114142538.4097-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent')
0 files changed, 0 insertions, 0 deletions