| .. | .. |
|---|
| 45 | 45 | |
|---|
| 46 | 46 | #define CONSOLE_EXT_LOG_MAX 8192 |
|---|
| 47 | 47 | |
|---|
| 48 | | -/* |
|---|
| 49 | | - * The maximum size of a record formatted for console printing |
|---|
| 50 | | - * (i.e. with the prefix prepended to every line). |
|---|
| 51 | | - */ |
|---|
| 52 | | -#define CONSOLE_LOG_MAX 4096 |
|---|
| 53 | | - |
|---|
| 54 | 48 | /* printk's without a loglevel use this.. */ |
|---|
| 55 | 49 | #define MESSAGE_LOGLEVEL_DEFAULT CONFIG_MESSAGE_LOGLEVEL_DEFAULT |
|---|
| 56 | 50 | |
|---|
| .. | .. |
|---|
| 154 | 148 | void early_printk(const char *s, ...) { } |
|---|
| 155 | 149 | #endif |
|---|
| 156 | 150 | |
|---|
| 151 | +#ifdef CONFIG_PRINTK_NMI |
|---|
| 152 | +extern void printk_nmi_enter(void); |
|---|
| 153 | +extern void printk_nmi_exit(void); |
|---|
| 154 | +extern void printk_nmi_direct_enter(void); |
|---|
| 155 | +extern void printk_nmi_direct_exit(void); |
|---|
| 156 | +#else |
|---|
| 157 | +static inline void printk_nmi_enter(void) { } |
|---|
| 158 | +static inline void printk_nmi_exit(void) { } |
|---|
| 159 | +static inline void printk_nmi_direct_enter(void) { } |
|---|
| 160 | +static inline void printk_nmi_direct_exit(void) { } |
|---|
| 161 | +#endif /* PRINTK_NMI */ |
|---|
| 162 | + |
|---|
| 157 | 163 | struct dev_printk_info; |
|---|
| 158 | 164 | |
|---|
| 159 | 165 | #ifdef CONFIG_PRINTK |
|---|
| .. | .. |
|---|
| 201 | 207 | void show_regs_print_info(const char *log_lvl); |
|---|
| 202 | 208 | extern asmlinkage void dump_stack_lvl(const char *log_lvl) __cold; |
|---|
| 203 | 209 | extern asmlinkage void dump_stack(void) __cold; |
|---|
| 210 | +extern void printk_safe_flush(void); |
|---|
| 211 | +extern void printk_safe_flush_on_panic(void); |
|---|
| 204 | 212 | #else |
|---|
| 205 | 213 | static inline __printf(1, 0) |
|---|
| 206 | 214 | int vprintk(const char *s, va_list args) |
|---|
| .. | .. |
|---|
| 266 | 274 | } |
|---|
| 267 | 275 | |
|---|
| 268 | 276 | static inline void dump_stack(void) |
|---|
| 277 | +{ |
|---|
| 278 | +} |
|---|
| 279 | + |
|---|
| 280 | +static inline void printk_safe_flush(void) |
|---|
| 281 | +{ |
|---|
| 282 | +} |
|---|
| 283 | + |
|---|
| 284 | +static inline void printk_safe_flush_on_panic(void) |
|---|
| 269 | 285 | { |
|---|
| 270 | 286 | } |
|---|
| 271 | 287 | #endif |
|---|
| .. | .. |
|---|
| 484 | 500 | #define pr_debug_once(fmt, ...) \ |
|---|
| 485 | 501 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
|---|
| 486 | 502 | #endif |
|---|
| 487 | | - |
|---|
| 488 | | -bool pr_flush(int timeout_ms, bool reset_on_progress); |
|---|
| 489 | 503 | |
|---|
| 490 | 504 | /* |
|---|
| 491 | 505 | * ratelimited messages with local ratelimit_state, |
|---|