aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-03-22 04:17:57 -0400
committerIngo Molnar <mingo@kernel.org>2012-03-22 04:17:57 -0400
commit6605f9ac69593d480324ba5fa05f64cfebf4db2f (patch)
tree4c64d89d04ad24911d0eca7f3feb0012e4014dae /include/linux/kernel.h
parentad2a8e6078a16d3b61b530f1447110841c36ae56 (diff)
parent93d68e52295fb8b65ded6db49e32e63b6a203e0b (diff)
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index d801acb5e680..5582c7985567 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -427,16 +427,10 @@ extern int __must_check hex2bin(u8 *dst, const char *src, size_t count);
427 * Most likely, you want to use tracing_on/tracing_off. 427 * Most likely, you want to use tracing_on/tracing_off.
428 */ 428 */
429#ifdef CONFIG_RING_BUFFER 429#ifdef CONFIG_RING_BUFFER
430void tracing_on(void);
431void tracing_off(void);
432/* trace_off_permanent stops recording with no way to bring it back */ 430/* trace_off_permanent stops recording with no way to bring it back */
433void tracing_off_permanent(void); 431void tracing_off_permanent(void);
434int tracing_is_on(void);
435#else 432#else
436static inline void tracing_on(void) { }
437static inline void tracing_off(void) { }
438static inline void tracing_off_permanent(void) { } 433static inline void tracing_off_permanent(void) { }
439static inline int tracing_is_on(void) { return 0; }
440#endif 434#endif
441 435
442enum ftrace_dump_mode { 436enum ftrace_dump_mode {
@@ -446,6 +440,10 @@ enum ftrace_dump_mode {
446}; 440};
447 441
448#ifdef CONFIG_TRACING 442#ifdef CONFIG_TRACING
443void tracing_on(void);
444void tracing_off(void);
445int tracing_is_on(void);
446
449extern void tracing_start(void); 447extern void tracing_start(void);
450extern void tracing_stop(void); 448extern void tracing_stop(void);
451extern void ftrace_off_permanent(void); 449extern void ftrace_off_permanent(void);
@@ -530,6 +528,11 @@ static inline void tracing_start(void) { }
530static inline void tracing_stop(void) { } 528static inline void tracing_stop(void) { }
531static inline void ftrace_off_permanent(void) { } 529static inline void ftrace_off_permanent(void) { }
532static inline void trace_dump_stack(void) { } 530static inline void trace_dump_stack(void) { }
531
532static inline void tracing_on(void) { }
533static inline void tracing_off(void) { }
534static inline int tracing_is_on(void) { return 0; }
535
533static inline int 536static inline int
534trace_printk(const char *fmt, ...) 537trace_printk(const char *fmt, ...)
535{ 538{