diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-08-01 16:45:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:35:22 -0400 |
commit | 2f2c99dba2398ef7d9c21f7c793180a50e68b1f0 (patch) | |
tree | 4948b0cd7b9828aa19f6862b10173cbc9f59ea68 /include | |
parent | dd0e545f061f90099a3dcc13aa77e29c6295cf23 (diff) |
ftrace: ftrace_printk doc moved
Based on Randy Dunlap's suggestion, the ftrace_printk kernel-doc belongs
with the ftrace_printk macro that should be used. Not with the
__ftrace_printk internal function.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index f53b975e32fa..018af16bce5c 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -157,7 +157,24 @@ 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) | 160 | |
161 | /** | ||
162 | * ftrace_printk - printf formatting in the ftrace buffer | ||
163 | * @fmt: the printf format for printing | ||
164 | * | ||
165 | * Note: __ftrace_printk is an internal function for ftrace_printk and | ||
166 | * the @ip is passed in via the ftrace_printk macro. | ||
167 | * | ||
168 | * This function allows a kernel developer to debug fast path sections | ||
169 | * that printk is not appropriate for. By scattering in various | ||
170 | * printk like tracing in the code, a developer can quickly see | ||
171 | * where problems are occurring. | ||
172 | * | ||
173 | * This is intended as a debugging tool for the developer only. | ||
174 | * Please refrain from leaving ftrace_printks scattered around in | ||
175 | * your code. | ||
176 | */ | ||
177 | # define ftrace_printk(fmt...) __ftrace_printk(_THIS_IP_, fmt) | ||
161 | extern int | 178 | extern int |
162 | __ftrace_printk(unsigned long ip, const char *fmt, ...) | 179 | __ftrace_printk(unsigned long ip, const char *fmt, ...) |
163 | __attribute__ ((format (printf, 2, 3))); | 180 | __attribute__ ((format (printf, 2, 3))); |