aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorJin Yao <[email protected]>2017-12-26 10:42:43 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-01-08 14:11:57 +0000
commit40c39e3046411f84bab82f66783ff3593e2bcd9b (patch)
treec213848f04527a4a0cd38b0a93ba80820eef901a /tools/perf/scripts/python/intel-pt-events.py
parentperf report: Fix a wrong offset issue when using /proc/kcore (diff)
downloadkernel-40c39e3046411f84bab82f66783ff3593e2bcd9b.tar.gz
kernel-40c39e3046411f84bab82f66783ff3593e2bcd9b.zip
perf report: Fix a no annotate browser displayed issue
When enabling '-b' option in perf record, for example, perf record -b ... perf report and then browsing the annotate browser from perf report (press 'A'), it would fail (annotate browser can't be displayed). It's because the '.add_entry_cb' op of struct report is overwritten by hist_iter__branch_callback() in builtin-report.c. But this function doesn't do something like mapping symbols and sources. So next, do_annotate() will return directly. notes = symbol__annotation(act->ms.sym); if (!notes->src) return 0; This patch adds the lost code to hist_iter__branch_callback (refer to hist_iter__report_callback). v2: Fix a crash bug when perform 'perf report --stdio'. The reason is that we init the symbol annotation only in browser mode, it doesn't allocate/init resources for stdio mode. So now in hist_iter__branch_callback(), it will return directly if it's not in browser mode. Signed-off-by: Jin Yao <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions