diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a5375e7f3fea..645231c373c8 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -430,16 +430,10 @@ extern int __must_check hex2bin(u8 *dst, const char *src, size_t count); | |||
430 | * Most likely, you want to use tracing_on/tracing_off. | 430 | * Most likely, you want to use tracing_on/tracing_off. |
431 | */ | 431 | */ |
432 | #ifdef CONFIG_RING_BUFFER | 432 | #ifdef CONFIG_RING_BUFFER |
433 | void tracing_on(void); | ||
434 | void tracing_off(void); | ||
435 | /* trace_off_permanent stops recording with no way to bring it back */ | 433 | /* trace_off_permanent stops recording with no way to bring it back */ |
436 | void tracing_off_permanent(void); | 434 | void tracing_off_permanent(void); |
437 | int tracing_is_on(void); | ||
438 | #else | 435 | #else |
439 | static inline void tracing_on(void) { } | ||
440 | static inline void tracing_off(void) { } | ||
441 | static inline void tracing_off_permanent(void) { } | 436 | static inline void tracing_off_permanent(void) { } |
442 | static inline int tracing_is_on(void) { return 0; } | ||
443 | #endif | 437 | #endif |
444 | 438 | ||
445 | enum ftrace_dump_mode { | 439 | enum ftrace_dump_mode { |
@@ -449,6 +443,10 @@ enum ftrace_dump_mode { | |||
449 | }; | 443 | }; |
450 | 444 | ||
451 | #ifdef CONFIG_TRACING | 445 | #ifdef CONFIG_TRACING |
446 | void tracing_on(void); | ||
447 | void tracing_off(void); | ||
448 | int tracing_is_on(void); | ||
449 | |||
452 | extern void tracing_start(void); | 450 | extern void tracing_start(void); |
453 | extern void tracing_stop(void); | 451 | extern void tracing_stop(void); |
454 | extern void ftrace_off_permanent(void); | 452 | extern void ftrace_off_permanent(void); |
@@ -533,6 +531,11 @@ static inline void tracing_start(void) { } | |||
533 | static inline void tracing_stop(void) { } | 531 | static inline void tracing_stop(void) { } |
534 | static inline void ftrace_off_permanent(void) { } | 532 | static inline void ftrace_off_permanent(void) { } |
535 | static inline void trace_dump_stack(void) { } | 533 | static inline void trace_dump_stack(void) { } |
534 | |||
535 | static inline void tracing_on(void) { } | ||
536 | static inline void tracing_off(void) { } | ||
537 | static inline int tracing_is_on(void) { return 0; } | ||
538 | |||
536 | static inline int | 539 | static inline int |
537 | trace_printk(const char *fmt, ...) | 540 | trace_printk(const char *fmt, ...) |
538 | { | 541 | { |