diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-06 15:55:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-06 16:20:46 -0500 |
commit | 6a60dd121c5b6c2d827e99b38c1326f2600c3891 (patch) | |
tree | d1be280b4a0dba24ca3ec800d6d1ef74c4df85be /include/linux | |
parent | 7e5e26a3d8ac4bcadb380073dc9604c07a9a6198 (diff) |
ftrace: split out hardirq ftrace code into own header
Impact: moving of function prototypes into own header file
ftrace.h is too big of a file for hardirq.h, and some archs will fail
to build because of the include dependencies not being met.
This patch pulls out the required prototypes for hardirq.h into a smaller
and safer ftrace_irq.h file.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ftrace.h | 5 | ||||
-rw-r--r-- | include/linux/ftrace_irq.h | 13 | ||||
-rw-r--r-- | include/linux/hardirq.h | 2 |
3 files changed, 14 insertions, 6 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 0ad1b48aea69..1b340e3fa249 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -104,9 +104,6 @@ extern void ftrace_release(void *start, unsigned long size); | |||
104 | 104 | ||
105 | extern void ftrace_disable_daemon(void); | 105 | extern void ftrace_disable_daemon(void); |
106 | extern void ftrace_enable_daemon(void); | 106 | extern void ftrace_enable_daemon(void); |
107 | extern void ftrace_nmi_enter(void); | ||
108 | extern void ftrace_nmi_exit(void); | ||
109 | |||
110 | #else | 107 | #else |
111 | # define skip_trace(ip) ({ 0; }) | 108 | # define skip_trace(ip) ({ 0; }) |
112 | # define ftrace_force_update() ({ 0; }) | 109 | # define ftrace_force_update() ({ 0; }) |
@@ -114,8 +111,6 @@ extern void ftrace_nmi_exit(void); | |||
114 | # define ftrace_disable_daemon() do { } while (0) | 111 | # define ftrace_disable_daemon() do { } while (0) |
115 | # define ftrace_enable_daemon() do { } while (0) | 112 | # define ftrace_enable_daemon() do { } while (0) |
116 | static inline void ftrace_release(void *start, unsigned long size) { } | 113 | static inline void ftrace_release(void *start, unsigned long size) { } |
117 | static inline void ftrace_nmi_enter(void) { } | ||
118 | static inline void ftrace_nmi_exit(void) { } | ||
119 | #endif /* CONFIG_DYNAMIC_FTRACE */ | 114 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
120 | 115 | ||
121 | /* totally disable ftrace - can not re-enable after this */ | 116 | /* totally disable ftrace - can not re-enable after this */ |
diff --git a/include/linux/ftrace_irq.h b/include/linux/ftrace_irq.h new file mode 100644 index 000000000000..b1299d6729f2 --- /dev/null +++ b/include/linux/ftrace_irq.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #ifndef _LINUX_FTRACE_IRQ_H | ||
2 | #define _LINUX_FTRACE_IRQ_H | ||
3 | |||
4 | |||
5 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
6 | extern void ftrace_nmi_enter(void); | ||
7 | extern void ftrace_nmi_exit(void); | ||
8 | #else | ||
9 | static inline void ftrace_nmi_enter(void) { } | ||
10 | static inline void ftrace_nmi_exit(void) { } | ||
11 | #endif | ||
12 | |||
13 | #endif /* _LINUX_FTRACE_IRQ_H */ | ||
diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h index ffc16ab5a878..89a56d79e4c6 100644 --- a/include/linux/hardirq.h +++ b/include/linux/hardirq.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include <linux/preempt.h> | 4 | #include <linux/preempt.h> |
5 | #include <linux/smp_lock.h> | 5 | #include <linux/smp_lock.h> |
6 | #include <linux/lockdep.h> | 6 | #include <linux/lockdep.h> |
7 | #include <linux/ftrace.h> | 7 | #include <linux/ftrace_irq.h> |
8 | #include <asm/hardirq.h> | 8 | #include <asm/hardirq.h> |
9 | #include <asm/system.h> | 9 | #include <asm/system.h> |
10 | 10 | ||