aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h10
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
158extern void 158extern void
159ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); 159ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3);
160# define ftrace_printk(x...) __ftrace_printk(_THIS_IP_, x)
161extern int
162__ftrace_printk(unsigned long ip, const char *fmt, ...)
163 __attribute__ ((format (printf, 2, 3)));
160#else 164#else
161static inline void 165static inline void
162ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } 166ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { }
167static inline int
168ftrace_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) { }
173static inline void ftrace_release(void *start, unsigned long size) { } 182static 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 */