diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 6658a51390fe..ab1c46e70bb6 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -37,6 +37,7 @@ struct ftrace_ops { | |||
37 | #ifdef CONFIG_DYNAMIC_FTRACE | 37 | #ifdef CONFIG_DYNAMIC_FTRACE |
38 | struct ftrace_hash *notrace_hash; | 38 | struct ftrace_hash *notrace_hash; |
39 | struct ftrace_hash *filter_hash; | 39 | struct ftrace_hash *filter_hash; |
40 | unsigned long flags; | ||
40 | #endif | 41 | #endif |
41 | }; | 42 | }; |
42 | 43 | ||
@@ -152,10 +153,13 @@ extern void unregister_ftrace_function_probe_all(char *glob); | |||
152 | extern int ftrace_text_reserved(void *start, void *end); | 153 | extern int ftrace_text_reserved(void *start, void *end); |
153 | 154 | ||
154 | enum { | 155 | enum { |
155 | FTRACE_FL_FREE = (1 << 0), | 156 | FTRACE_FL_ENABLED = (1 << 30), |
156 | FTRACE_FL_ENABLED = (1 << 1), | 157 | FTRACE_FL_FREE = (1 << 31), |
157 | }; | 158 | }; |
158 | 159 | ||
160 | #define FTRACE_FL_MASK (0x3UL << 30) | ||
161 | #define FTRACE_REF_MAX ((1 << 30) - 1) | ||
162 | |||
159 | struct dyn_ftrace { | 163 | struct dyn_ftrace { |
160 | union { | 164 | union { |
161 | unsigned long ip; /* address of mcount call-site */ | 165 | unsigned long ip; /* address of mcount call-site */ |