summaryrefslogtreecommitdiff
path: root/Documentation/speculation.txt
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2020-05-28 11:00:58 +0300
committerPeter Zijlstra <peterz@infradead.org>2020-06-15 15:09:48 +0300
commitd002b8bc6dbc20e9043e279196cff8795dba05fe (patch)
tree3bfe6187485152698298ba4dd0293e3c1d982fea /Documentation/speculation.txt
parentd769811ca93303deb1d8729d20cceaca7051a6f1 (diff)
downloadlinux-d002b8bc6dbc20e9043e279196cff8795dba05fe.tar.xz
kprobes: Add symbols for kprobe insn pages
Symbols are needed for tools to describe instruction addresses. Pages allocated for kprobe's purposes need symbols to be created for them. Add such symbols to be visible via /proc/kallsyms. Note: kprobe insn pages are not used if ftrace is configured. To see the effect of this patch, the kernel must be configured with: # CONFIG_FUNCTION_TRACER is not set CONFIG_KPROBES=y and for optimised kprobes: CONFIG_OPTPROBES=y Example on x86: # perf probe __schedule Added new event: probe:__schedule (on __schedule) # cat /proc/kallsyms | grep '\[__builtin__kprobes\]' ffffffffc00d4000 t kprobe_insn_page [__builtin__kprobes] ffffffffc00d6000 t kprobe_optinsn_page [__builtin__kprobes] Note: This patch adds "__builtin__kprobes" as a module name in /proc/kallsyms for symbols for pages allocated for kprobes' purposes, even though "__builtin__kprobes" is not a module. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Link: https://lkml.kernel.org/r/20200528080058.20230-1-adrian.hunter@intel.com
Diffstat (limited to 'Documentation/speculation.txt')
0 files changed, 0 insertions, 0 deletions