aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2019-11-14 16:25:38 +0200
committerArnaldo Carvalho de Melo <[email protected]>2019-11-18 13:01:59 -0300
commitaceb98261ea7d9fe38f9c140c5531f0b13623832 (patch)
treea7e567718804d1af916498e7a89f6bd80f552f33 /scripts/gcc-plugins/cyc_complexity_plugin.c
parenta7c2b572e217418ad34441202ad3addd8f94d2ea (diff)
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 <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions