]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ftrace: Fix breakage of set_ftrace_pid
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 24 Jul 2015 14:38:12 +0000 (10:38 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 24 Jul 2015 17:58:14 +0000 (13:58 -0400)
commite3eea1404f5ff7a2ceb7b5e7ba412a6fd94f2935
tree2c2cd04a98518380122739dae0eccf86ea979760
parentd6726c8145290bef950ae2538ea6ae1d96a1944b
ftrace: Fix breakage of set_ftrace_pid

Commit 4104d326b670 ("ftrace: Remove global function list and call function
directly") simplified the ftrace code by removing the global_ops list with a
new design. But this cleanup also broke the filtering of PIDs that are added
to the set_ftrace_pid file.

Add back the proper hooks to have pid filtering working once again.

Cc: stable@vger.kernel.org # 3.16+
Reported-by: Matt Fleming <matt@console-pimps.org>
Reported-by: Richard Weinberger <richard.weinberger@gmail.com>
Tested-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c