]> asedeno.scripts.mit.edu Git - linux.git/commit
tracing/kprobes: Allow kprobe-events to record module symbol
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 28 Aug 2018 16:18:43 +0000 (01:18 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 11 Oct 2018 02:19:12 +0000 (22:19 -0400)
commita6682814f37124ec1e708cca8f44968445fa9dd7
tree15e0eb29bad333cb4f69eaec38172680a4393ed7
parent59158ec4aef7d44be51a6f3e7e17fc64c32604eb
tracing/kprobes: Allow kprobe-events to record module symbol

Allow kprobe-events to record module symbols.

Since data symbols in a non-loaded module doesn't exist, it fails to
define such symbol as an argument of kprobe-event. But if the kprobe
event is defined on that module, we can defer to resolve the symbol
address.

Note that if given symbol is not found, the event is kept unavailable.
User can enable it but the event is not recorded.

Link: http://lkml.kernel.org/r/153547312336.26502.11432902826345374463.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h