diff options
author | Wei Xiao <xiaowei66@huawei.com> | 2022-02-23 19:11:53 +0800 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-04-06 13:43:44 -0700 |
commit | 8e4e83b2278bdfb55cb2b13de07cf0a721ce8af7 (patch) | |
tree | 14ffd496063629402bf71273243700b39d1f8196 /include/linux/ftrace.h | |
parent | d772cc2c321900f3f463a124eebeb7218e66dda6 (diff) | |
download | lwn-8e4e83b2278bdfb55cb2b13de07cf0a721ce8af7.tar.gz lwn-8e4e83b2278bdfb55cb2b13de07cf0a721ce8af7.zip |
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>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 4816b7e11047..088b915853dd 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -101,9 +101,6 @@ static inline int ftrace_mod_get_kallsym(unsigned int symnum, unsigned long *val #ifdef CONFIG_FUNCTION_TRACER extern int ftrace_enabled; -extern int -ftrace_enable_sysctl(struct ctl_table *table, int write, - void *buffer, size_t *lenp, loff_t *ppos); #ifndef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS |