diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 6b232a2460c0..f53b975e32fa 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -157,9 +157,18 @@ static inline void __ftrace_enabled_restore(int enabled) | |||
157 | #ifdef CONFIG_TRACING | 157 | #ifdef CONFIG_TRACING |
158 | extern void | 158 | extern void |
159 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); | 159 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); |
160 | # define ftrace_printk(x...) __ftrace_printk(_THIS_IP_, x) | ||
161 | extern int | ||
162 | __ftrace_printk(unsigned long ip, const char *fmt, ...) | ||
163 | __attribute__ ((format (printf, 2, 3))); | ||
160 | #else | 164 | #else |
161 | static inline void | 165 | static inline void |
162 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } | 166 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } |
167 | static inline int | ||
168 | ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))) | ||
169 | { | ||
170 | return 0; | ||
171 | } | ||
163 | #endif | 172 | #endif |
164 | 173 | ||
165 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 174 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
@@ -173,4 +182,5 @@ ftrace_init_module(unsigned long *start, unsigned long *end) { } | |||
173 | static inline void ftrace_release(void *start, unsigned long size) { } | 182 | static inline void ftrace_release(void *start, unsigned long size) { } |
174 | #endif | 183 | #endif |
175 | 184 | ||
185 | |||
176 | #endif /* _LINUX_FTRACE_H */ | 186 | #endif /* _LINUX_FTRACE_H */ |