diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a38d6bd6fde..fc33af91185 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -492,6 +492,13 @@ static inline void tracing_off(void) { } | |||
| 492 | static inline void tracing_off_permanent(void) { } | 492 | static inline void tracing_off_permanent(void) { } |
| 493 | static inline int tracing_is_on(void) { return 0; } | 493 | static inline int tracing_is_on(void) { return 0; } |
| 494 | #endif | 494 | #endif |
| 495 | |||
| 496 | enum ftrace_dump_mode { | ||
| 497 | DUMP_NONE, | ||
| 498 | DUMP_ALL, | ||
| 499 | DUMP_ORIG, | ||
| 500 | }; | ||
| 501 | |||
| 495 | #ifdef CONFIG_TRACING | 502 | #ifdef CONFIG_TRACING |
| 496 | extern void tracing_start(void); | 503 | extern void tracing_start(void); |
| 497 | extern void tracing_stop(void); | 504 | extern void tracing_stop(void); |
| @@ -573,7 +580,7 @@ __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap); | |||
| 573 | extern int | 580 | extern int |
| 574 | __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap); | 581 | __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap); |
| 575 | 582 | ||
| 576 | extern void ftrace_dump(void); | 583 | extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); |
| 577 | #else | 584 | #else |
| 578 | static inline void | 585 | static inline void |
| 579 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } | 586 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } |
| @@ -594,7 +601,7 @@ ftrace_vprintk(const char *fmt, va_list ap) | |||
| 594 | { | 601 | { |
| 595 | return 0; | 602 | return 0; |
| 596 | } | 603 | } |
| 597 | static inline void ftrace_dump(void) { } | 604 | static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } |
| 598 | #endif /* CONFIG_TRACING */ | 605 | #endif /* CONFIG_TRACING */ |
| 599 | 606 | ||
| 600 | /* | 607 | /* |
