]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/trace/ftrace.c
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)
commit8c08f0d5c6fb10ff93ffb1cbf416f4f1c3a52a80
treed4d025db4b5ec05a0e2d553c028ea23694f7e777
parentd7fbf8df7ca0a5c7e85db79f7005f99cb461c525
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