OSDN Git Service

ftrace/kallsyms: Have /proc/kallsyms show saved mod init functions
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 6 Sep 2017 12:40:41 +0000 (08:40 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Oct 2017 03:10:42 +0000 (23:10 -0400)
commit6171a0310a06a7a0cb83713fa7068bdd4192de19
tree06998a71d256fe4519c51e089d92dd9e3d40aca3
parent6aa69784b43eb5f69120339938c50a97a433049f
ftrace/kallsyms: Have /proc/kallsyms show saved mod init functions

If a module is loaded while tracing is enabled, then there's a possibility
that the module init functions were traced. These functions have their name
and address stored by ftrace such that it can translate the function address
that is written into the buffer into a human readable function name.

As userspace tools may be doing the same, they need a way to map function
names to their address as well. This is done through reading /proc/kallsyms.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/kallsyms.c
kernel/trace/ftrace.c