diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 740c97dcf9cb..90dbc0ee2046 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -32,6 +32,24 @@ extern void mcount(void); | |||
32 | # define clear_ftrace_function(ops) do { } while (0) | 32 | # define clear_ftrace_function(ops) do { } while (0) |
33 | #endif /* CONFIG_FTRACE */ | 33 | #endif /* CONFIG_FTRACE */ |
34 | 34 | ||
35 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
36 | # define FTRACE_HASHBITS 10 | ||
37 | # define FTRACE_HASHSIZE (1<<FTRACE_HASHBITS) | ||
38 | |||
39 | struct dyn_ftrace { | ||
40 | struct hlist_node node; | ||
41 | unsigned long ip; | ||
42 | }; | ||
43 | |||
44 | /* defined in arch */ | ||
45 | extern struct dyn_ftrace * | ||
46 | ftrace_alloc_shutdown_node(unsigned long ip); | ||
47 | extern int ftrace_shutdown_arch_init(void); | ||
48 | extern void ftrace_code_disable(struct dyn_ftrace *rec); | ||
49 | extern void ftrace_startup_code(void); | ||
50 | extern void ftrace_shutdown_code(void); | ||
51 | extern void ftrace_shutdown_replenish(void); | ||
52 | #endif | ||
35 | 53 | ||
36 | #ifdef CONFIG_FRAME_POINTER | 54 | #ifdef CONFIG_FRAME_POINTER |
37 | /* TODO: need to fix this for ARM */ | 55 | /* TODO: need to fix this for ARM */ |