ftrace: move sysctl_ftrace_enabled to ftrace.c
authorWei Xiao <xiaowei66@huawei.com>
Wed, 23 Feb 2022 11:11:53 +0000 (19:11 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 6 Apr 2022 20:43:44 +0000 (13:43 -0700)
commit8e4e83b2278bdfb55cb2b13de07cf0a721ce8af7
tree14ffd496063629402bf71273243700b39d1f8196
parentd772cc2c321900f3f463a124eebeb7218e66dda6
ftrace: move sysctl_ftrace_enabled to ftrace.c

This moves ftrace_enabled to trace/ftrace.c.

We move sysctls to places where features actually belong to improve
the readability of the code and reduce the risk of code merge conflicts.
At the same time, the proc-sysctl maintainers do not want to know what
sysctl knobs you wish to add for your owner piece of code, we just care
about the core logic.

Signed-off-by: Wei Xiao <xiaowei66@huawei.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/ftrace.h
kernel/sysctl.c
kernel/trace/ftrace.c