aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-05 04:24:48 -0500
committerIngo Molnar <mingo@elte.hu>2009-03-05 04:24:48 -0500
commit5e1607a00bd082972629d3d68c95c8bcf902b55a (patch)
tree2751baf5ee286cdec8f4b1afcb7332f4c1f5f454 /include/linux/ftrace.h
parent53664738c122bfe8b0e489fddaf2ab265c9133c8 (diff)
tracing: rename ftrace_printk() => trace_printk()
Impact: cleanup Use a more generic name - this also allows the prototype to move to kernel.h and be generally available to kernel developers who want to do some quick tracing. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 1f69ac7c1587..fbb9c364e166 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -329,11 +329,11 @@ extern void
329ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); 329ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3);
330 330
331/** 331/**
332 * ftrace_printk - printf formatting in the ftrace buffer 332 * trace_printk - printf formatting in the ftrace buffer
333 * @fmt: the printf format for printing 333 * @fmt: the printf format for printing
334 * 334 *
335 * Note: __ftrace_printk is an internal function for ftrace_printk and 335 * Note: __trace_printk is an internal function for trace_printk and
336 * the @ip is passed in via the ftrace_printk macro. 336 * the @ip is passed in via the trace_printk macro.
337 * 337 *
338 * This function allows a kernel developer to debug fast path sections 338 * This function allows a kernel developer to debug fast path sections
339 * that printk is not appropriate for. By scattering in various 339 * that printk is not appropriate for. By scattering in various
@@ -341,14 +341,14 @@ ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3);
341 * where problems are occurring. 341 * where problems are occurring.
342 * 342 *
343 * This is intended as a debugging tool for the developer only. 343 * This is intended as a debugging tool for the developer only.
344 * Please refrain from leaving ftrace_printks scattered around in 344 * Please refrain from leaving trace_printks scattered around in
345 * your code. 345 * your code.
346 */ 346 */
347# define ftrace_printk(fmt...) __ftrace_printk(_THIS_IP_, fmt) 347# define trace_printk(fmt...) __trace_printk(_THIS_IP_, fmt)
348extern int 348extern int
349__ftrace_printk(unsigned long ip, const char *fmt, ...) 349__trace_printk(unsigned long ip, const char *fmt, ...)
350 __attribute__ ((format (printf, 2, 3))); 350 __attribute__ ((format (printf, 2, 3)));
351# define ftrace_vprintk(fmt, ap) __ftrace_printk(_THIS_IP_, fmt, ap) 351# define ftrace_vprintk(fmt, ap) __trace_printk(_THIS_IP_, fmt, ap)
352extern int 352extern int
353__ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap); 353__ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap);
354extern void ftrace_dump(void); 354extern void ftrace_dump(void);
@@ -356,13 +356,13 @@ extern void ftrace_dump(void);
356static inline void 356static inline void
357ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } 357ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { }
358static inline int 358static inline int
359ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); 359trace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
360 360
361static inline void tracing_start(void) { } 361static inline void tracing_start(void) { }
362static inline void tracing_stop(void) { } 362static inline void tracing_stop(void) { }
363static inline void ftrace_off_permanent(void) { } 363static inline void ftrace_off_permanent(void) { }
364static inline int 364static inline int
365ftrace_printk(const char *fmt, ...) 365trace_printk(const char *fmt, ...)
366{ 366{
367 return 0; 367 return 0;
368} 368}