diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-31 19:21:41 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-20 22:06:33 -0400 |
commit | 92a68fa047ca5b8e1991af2d50b23ad9452613cd (patch) | |
tree | 2528b86a5b31c1beb708f9a837f9e08556f4b807 /include/linux/ftrace.h | |
parent | ec19b85913486993d7d6f747beed1a711afd47d8 (diff) |
ftrace: Move the function commands into the tracing directory
As nothing outside the tracing directory uses the function command mechanism,
I'm moving the prototypes out of the include/linux/ftrace.h and into the
local kernel/trace/trace.h header. I plan on making them hook to the
trace_array structure which is local to kernel/trace, and I do not want to
expose it to the rest of the kernel. This requires that the command functions
must also be local to tracing. But luckily nothing else uses them.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 3e790ff1c501..774e7a95c201 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -326,14 +326,6 @@ static inline void stack_tracer_disable(void) { } | |||
326 | static inline void stack_tracer_enable(void) { } | 326 | static inline void stack_tracer_enable(void) { } |
327 | #endif | 327 | #endif |
328 | 328 | ||
329 | struct ftrace_func_command { | ||
330 | struct list_head list; | ||
331 | char *name; | ||
332 | int (*func)(struct ftrace_hash *hash, | ||
333 | char *func, char *cmd, | ||
334 | char *params, int enable); | ||
335 | }; | ||
336 | |||
337 | #ifdef CONFIG_DYNAMIC_FTRACE | 329 | #ifdef CONFIG_DYNAMIC_FTRACE |
338 | 330 | ||
339 | int ftrace_arch_code_modify_prepare(void); | 331 | int ftrace_arch_code_modify_prepare(void); |
@@ -421,9 +413,6 @@ void ftrace_set_global_notrace(unsigned char *buf, int len, int reset); | |||
421 | void ftrace_free_filter(struct ftrace_ops *ops); | 413 | void ftrace_free_filter(struct ftrace_ops *ops); |
422 | void ftrace_ops_set_global_filter(struct ftrace_ops *ops); | 414 | void ftrace_ops_set_global_filter(struct ftrace_ops *ops); |
423 | 415 | ||
424 | int register_ftrace_command(struct ftrace_func_command *cmd); | ||
425 | int unregister_ftrace_command(struct ftrace_func_command *cmd); | ||
426 | |||
427 | enum { | 416 | enum { |
428 | FTRACE_UPDATE_CALLS = (1 << 0), | 417 | FTRACE_UPDATE_CALLS = (1 << 0), |
429 | FTRACE_DISABLE_CALLS = (1 << 1), | 418 | FTRACE_DISABLE_CALLS = (1 << 1), |
@@ -639,14 +628,6 @@ static inline void ftrace_enable_daemon(void) { } | |||
639 | static inline void ftrace_module_init(struct module *mod) { } | 628 | static inline void ftrace_module_init(struct module *mod) { } |
640 | static inline void ftrace_module_enable(struct module *mod) { } | 629 | static inline void ftrace_module_enable(struct module *mod) { } |
641 | static inline void ftrace_release_mod(struct module *mod) { } | 630 | static inline void ftrace_release_mod(struct module *mod) { } |
642 | static inline __init int register_ftrace_command(struct ftrace_func_command *cmd) | ||
643 | { | ||
644 | return -EINVAL; | ||
645 | } | ||
646 | static inline __init int unregister_ftrace_command(char *cmd_name) | ||
647 | { | ||
648 | return -EINVAL; | ||
649 | } | ||
650 | static inline int ftrace_text_reserved(const void *start, const void *end) | 631 | static inline int ftrace_text_reserved(const void *start, const void *end) |
651 | { | 632 | { |
652 | return 0; | 633 | return 0; |