diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index c3e4575e7829..900b409543db 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/hardirq.h> | 22 | #include <linux/hardirq.h> |
23 | #include <linux/kthread.h> | 23 | #include <linux/kthread.h> |
24 | #include <linux/uaccess.h> | 24 | #include <linux/uaccess.h> |
25 | #include <linux/module.h> | ||
25 | #include <linux/ftrace.h> | 26 | #include <linux/ftrace.h> |
26 | #include <linux/sysctl.h> | 27 | #include <linux/sysctl.h> |
27 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
@@ -3863,6 +3864,14 @@ void ftrace_kill(void) | |||
3863 | } | 3864 | } |
3864 | 3865 | ||
3865 | /** | 3866 | /** |
3867 | * Test if ftrace is dead or not. | ||
3868 | */ | ||
3869 | int ftrace_is_dead(void) | ||
3870 | { | ||
3871 | return ftrace_disabled; | ||
3872 | } | ||
3873 | |||
3874 | /** | ||
3866 | * register_ftrace_function - register a function for profiling | 3875 | * register_ftrace_function - register a function for profiling |
3867 | * @ops - ops structure that holds the function for profiling. | 3876 | * @ops - ops structure that holds the function for profiling. |
3868 | * | 3877 | * |