]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ftrace: Add :mod: caching infrastructure to trace_array
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 23 Jun 2017 19:26:26 +0000 (15:26 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 26 Jun 2017 15:53:02 +0000 (11:53 -0400)
commit673feb9d76ab3eddde7acfd94b206e321cfc90b9
tree7c023725f0175b6a519d4349a836155ea72d3f8b
parentfeaf1283d11794b9d518fcfd54b6bf8bee1f0b4b
ftrace: Add :mod: caching infrastructure to trace_array

This is the start of the infrastructure work to allow for tracing module
functions before it is loaded.

Currently the following command:

  # echo :mod:some-mod > set_ftrace_filter

will enable tracing of all functions within the module "some-mod" if it is
loaded. What we want, is if the module is not loaded, that line will be
saved. When the module is loaded, then the "some-mod" will have that line
executed on it, so that the functions within it starts being traced.

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