]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Have cached module filters be an active filter
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 26 Jun 2017 15:47:31 +0000 (11:47 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 26 Jun 2017 15:53:04 +0000 (11:53 -0400)
commit3ee854b94a4f63ccee6da35b3df25debb1ea6607
treed4d025db4b5ec05a0e2d553c028ea23694f7e777
parentc61ea8faa211dd0b1dd289af07f81f6547358dc4
ftrace: Have cached module filters be an active filter

When a module filter is added to set_ftrace_filter, if the module is not
loaded, it is cached. This should be considered an active filter, and
function tracing should be filtered by this. That is, if a cached module
filter is the only filter set, then no function tracing should be happening,
as all the functions available will be filtered out.

This makes sense, as the reason to add a cached module filter, is to trace
the module when you load it. There shouldn't be any other tracing happening
until then.

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