diff options
| -rw-r--r-- | include/linux/ftrace.h | 2 | ||||
| -rw-r--r-- | kernel/trace/ftrace.c | 13 |
2 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 8154f4920fcb..ebb77674be90 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
| @@ -223,7 +223,6 @@ extern enum ftrace_tracing_type_t ftrace_tracing_type; | |||
| 223 | */ | 223 | */ |
| 224 | int register_ftrace_function(struct ftrace_ops *ops); | 224 | int register_ftrace_function(struct ftrace_ops *ops); |
| 225 | int unregister_ftrace_function(struct ftrace_ops *ops); | 225 | int unregister_ftrace_function(struct ftrace_ops *ops); |
| 226 | void clear_ftrace_function(void); | ||
| 227 | 226 | ||
| 228 | extern void ftrace_stub(unsigned long a0, unsigned long a1, | 227 | extern void ftrace_stub(unsigned long a0, unsigned long a1, |
| 229 | struct ftrace_ops *op, struct pt_regs *regs); | 228 | struct ftrace_ops *op, struct pt_regs *regs); |
| @@ -239,7 +238,6 @@ static inline int ftrace_nr_registered_ops(void) | |||
| 239 | { | 238 | { |
| 240 | return 0; | 239 | return 0; |
| 241 | } | 240 | } |
| 242 | static inline void clear_ftrace_function(void) { } | ||
| 243 | static inline void ftrace_kill(void) { } | 241 | static inline void ftrace_kill(void) { } |
| 244 | static inline void ftrace_free_init_mem(void) { } | 242 | static inline void ftrace_free_init_mem(void) { } |
| 245 | static inline void ftrace_free_mem(struct module *mod, void *start, void *end) { } | 243 | static inline void ftrace_free_mem(struct module *mod, void *start, void *end) { } |
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index efed9c1cfb7e..caf9cbf35816 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
| @@ -192,17 +192,6 @@ static void ftrace_pid_func(unsigned long ip, unsigned long parent_ip, | |||
| 192 | op->saved_func(ip, parent_ip, op, regs); | 192 | op->saved_func(ip, parent_ip, op, regs); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | /** | ||
| 196 | * clear_ftrace_function - reset the ftrace function | ||
| 197 | * | ||
| 198 | * This NULLs the ftrace function and in essence stops | ||
| 199 | * tracing. There may be lag | ||
| 200 | */ | ||
| 201 | void clear_ftrace_function(void) | ||
| 202 | { | ||
| 203 | ftrace_trace_function = ftrace_stub; | ||
| 204 | } | ||
| 205 | |||
| 206 | static void ftrace_sync(struct work_struct *work) | 195 | static void ftrace_sync(struct work_struct *work) |
| 207 | { | 196 | { |
| 208 | /* | 197 | /* |
| @@ -6689,7 +6678,7 @@ void ftrace_kill(void) | |||
| 6689 | { | 6678 | { |
| 6690 | ftrace_disabled = 1; | 6679 | ftrace_disabled = 1; |
| 6691 | ftrace_enabled = 0; | 6680 | ftrace_enabled = 0; |
| 6692 | clear_ftrace_function(); | 6681 | ftrace_trace_function = ftrace_stub; |
| 6693 | } | 6682 | } |
| 6694 | 6683 | ||
| 6695 | /** | 6684 | /** |
