Re: [PATCH v2] printk/kdb: Redirect printk messages into kdb in any context

2020-05-20 Thread Daniel Thompson
On Wed, May 20, 2020 at 12:22:33PM +0200, Petr Mladek wrote: > kdb has to get messages on consoles even when the system is stopped. > It uses kdb_printf() internally and calls console drivers on its own. > > It uses a hack to reuse an existing code. It sets "kdb_trap_printk" > global variable to r

Re: [PATCH v2] printk/kdb: Redirect printk messages into kdb in any context

2020-05-20 Thread Sergey Senozhatsky
On (20/05/20 12:22), Petr Mladek wrote: > kdb has to get messages on consoles even when the system is stopped. > It uses kdb_printf() internally and calls console drivers on its own. > > It uses a hack to reuse an existing code. It sets "kdb_trap_printk" > global variable to redirect even the norm

[PATCH v2] printk/kdb: Redirect printk messages into kdb in any context

2020-05-20 Thread Petr Mladek
kdb has to get messages on consoles even when the system is stopped. It uses kdb_printf() internally and calls console drivers on its own. It uses a hack to reuse an existing code. It sets "kdb_trap_printk" global variable to redirect even the normal printk() into the kdb_printf() variant. The va