aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util/Context.c
diff options
context:
space:
mode:
authorRavi Bangoria <[email protected]>2021-05-25 04:37:44 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-05-27 16:55:28 +0000
commit41ca1d1e88d485cb835a21032538e55102982a7a (patch)
tree93348bad2cf61e120773622194ce97a6403325ca /tools/perf/scripts/python/Perf-Trace-Util/Context.c
parentperf parse-events: Add bison --file-prefix-map option (diff)
downloadkernel-41ca1d1e88d485cb835a21032538e55102982a7a.tar.gz
kernel-41ca1d1e88d485cb835a21032538e55102982a7a.zip
perf probe: Provide more detail with relocation warning
When run as normal user with default sysctl kernel.kptr_restrict=0 and kernel.perf_event_paranoid=2, perf probe fails with: $ ./perf probe move_page_tables Relocated base symbol is not found! The warning message is not much informative. The reason perf fails is because /proc/kallsyms is restricted by perf_event_paranoid=2 for normal user and thus perf fails to read relocated address of the base symbol. Tweaking kptr_restrict and perf_event_paranoid can change the behavior of perf probe. Also, running as root or privileged user works too. Add these details in the warning message. Plus, kmap->ref_reloc_sym might not be always set even if host_machine is initialized. Above is the example of the same. Remove that comment. Reported-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Ravi Bangoria <[email protected]> Acked-by: Masami Hiramatsu <[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 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions