diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 35cca055da0f..ffc314b7e92b 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -819,13 +819,36 @@ static inline int ftrace_trace_task(struct task_struct *task) | |||
819 | return test_tsk_trace_trace(task); | 819 | return test_tsk_trace_trace(task); |
820 | } | 820 | } |
821 | extern int ftrace_is_dead(void); | 821 | extern int ftrace_is_dead(void); |
822 | int ftrace_create_function_files(struct trace_array *tr, | ||
823 | struct dentry *parent); | ||
824 | void ftrace_destroy_function_files(struct trace_array *tr); | ||
822 | #else | 825 | #else |
823 | static inline int ftrace_trace_task(struct task_struct *task) | 826 | static inline int ftrace_trace_task(struct task_struct *task) |
824 | { | 827 | { |
825 | return 1; | 828 | return 1; |
826 | } | 829 | } |
827 | static inline int ftrace_is_dead(void) { return 0; } | 830 | static inline int ftrace_is_dead(void) { return 0; } |
828 | #endif | 831 | static inline int |
832 | ftrace_create_function_files(struct trace_array *tr, | ||
833 | struct dentry *parent) | ||
834 | { | ||
835 | return 0; | ||
836 | } | ||
837 | static inline void ftrace_destroy_function_files(struct trace_array *tr) { } | ||
838 | #endif /* CONFIG_FUNCTION_TRACER */ | ||
839 | |||
840 | #if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_DYNAMIC_FTRACE) | ||
841 | void ftrace_create_filter_files(struct ftrace_ops *ops, | ||
842 | struct dentry *parent); | ||
843 | void ftrace_destroy_filter_files(struct ftrace_ops *ops); | ||
844 | #else | ||
845 | /* | ||
846 | * The ops parameter passed in is usually undefined. | ||
847 | * This must be a macro. | ||
848 | */ | ||
849 | #define ftrace_create_filter_files(ops, parent) do { } while (0) | ||
850 | #define ftrace_destroy_filter_files(ops) do { } while (0) | ||
851 | #endif /* CONFIG_FUNCTION_TRACER && CONFIG_DYNAMIC_FTRACE */ | ||
829 | 852 | ||
830 | int ftrace_event_is_function(struct ftrace_event_call *call); | 853 | int ftrace_event_is_function(struct ftrace_event_call *call); |
831 | 854 | ||