Re: [PATCH 2/2] panic: Enable to print out all printk msg in buffer

2019-04-10 Thread Feng Tang
Hi Petr, On Tue, Apr 09, 2019 at 04:14:30PM +0200, Petr Mladek wrote: > On Mon 2019-04-01 18:48:04, Feng Tang wrote: > > Currently on panic, kernel will lower the loglevel and print out > > new printk msg only. With this patch, user can configure the > > "panic_print" to see all dmesg in buffer,

Re: [PATCH 2/2] panic: Enable to print out all printk msg in buffer

2019-04-10 Thread Sergey Senozhatsky
On (04/10/19 10:02), Petr Mladek wrote: > On Wed 2019-04-10 10:59:26, Sergey Senozhatsky wrote: > > On (04/09/19 16:14), Petr Mladek wrote: > > > We should: > > > > > >+ Flush the latest messages before we replay the log. > > > > Do you mean the pending messages? When we replay the log we

Re: [PATCH 2/2] panic: Enable to print out all printk msg in buffer

2019-04-10 Thread Petr Mladek
On Wed 2019-04-10 10:59:26, Sergey Senozhatsky wrote: > On (04/09/19 16:14), Petr Mladek wrote: > > We should: > > > >+ Flush the latest messages before we replay the log. > > Do you mean the pending messages? When we replay the log we also should > print "header line" and panic-cpu

Re: [PATCH 2/2] panic: Enable to print out all printk msg in buffer

2019-04-09 Thread Sergey Senozhatsky
On (04/09/19 16:14), Petr Mladek wrote: > We should: > >+ Flush the latest messages before we replay the log. Do you mean the pending messages? When we replay the log we also should print "header line" and panic-cpu backtrace. So we will print panic-cpu oops twice // from panic-cpu

Re: [PATCH 2/2] panic: Enable to print out all printk msg in buffer

2019-04-09 Thread Petr Mladek
On Mon 2019-04-01 18:48:04, Feng Tang wrote: > Currently on panic, kernel will lower the loglevel and print out > new printk msg only. With this patch, user can configure the > "panic_print" to see all dmesg in buffer, some of which they may > have never seen due to the loglevel setting. > >

[PATCH 2/2] panic: Enable to print out all printk msg in buffer

2019-04-01 Thread Feng Tang
Currently on panic, kernel will lower the loglevel and print out new printk msg only. With this patch, user can configure the "panic_print" to see all dmesg in buffer, some of which they may have never seen due to the loglevel setting. Signed-off-by: Feng Tang ---