Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-15 Thread Petr Mladek
On Wed 2017-05-10 20:27:32, Tetsuo Handa wrote: > Sergey Senozhatsky wrote: > > On (05/09/17 20:41), Tetsuo Handa wrote: > > [..] > > > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > > > printk-safe disables local IRQs. so what I propose is something like > > > >

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-15 Thread Petr Mladek
On Wed 2017-05-10 20:27:32, Tetsuo Handa wrote: > Sergey Senozhatsky wrote: > > On (05/09/17 20:41), Tetsuo Handa wrote: > > [..] > > > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > > > printk-safe disables local IRQs. so what I propose is something like > > > >

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-10 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > On (05/09/17 20:41), Tetsuo Handa wrote: > [..] > > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > > printk-safe disables local IRQs. so what I propose is something like this > > > > > > printk-safe-enter//disable local IRQs, use

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-10 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > On (05/09/17 20:41), Tetsuo Handa wrote: > [..] > > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > > printk-safe disables local IRQs. so what I propose is something like this > > > > > > printk-safe-enter//disable local IRQs, use

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-10 Thread Sergey Senozhatsky
On (05/09/17 20:41), Tetsuo Handa wrote: [..] > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > printk-safe disables local IRQs. so what I propose is something like this > > > > printk-safe-enter//disable local IRQs, use per-CPU buffer > > backtrace > >

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-10 Thread Sergey Senozhatsky
On (05/09/17 20:41), Tetsuo Handa wrote: [..] > > what I meant was -- "can we sleep under printk_buffered_begin() or not". > > printk-safe disables local IRQs. so what I propose is something like this > > > > printk-safe-enter//disable local IRQs, use per-CPU buffer > > backtrace > >

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-09 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > Hello, > > On (05/08/17 22:05), Tetsuo Handa wrote: > > > On (04/30/17 22:54), Tetsuo Handa wrote: > > > > Sometimes we want to printk() multiple lines in a group without being > > > > disturbed by concurrent printk() from interrupts and/or other threads. > > > > For

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-09 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > Hello, > > On (05/08/17 22:05), Tetsuo Handa wrote: > > > On (04/30/17 22:54), Tetsuo Handa wrote: > > > > Sometimes we want to printk() multiple lines in a group without being > > > > disturbed by concurrent printk() from interrupts and/or other threads. > > > > For

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-08 Thread Sergey Senozhatsky
Hello, On (05/08/17 22:05), Tetsuo Handa wrote: > > On (04/30/17 22:54), Tetsuo Handa wrote: > > > Sometimes we want to printk() multiple lines in a group without being > > > disturbed by concurrent printk() from interrupts and/or other threads. > > > For example, mixed printk() output of

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-08 Thread Sergey Senozhatsky
Hello, On (05/08/17 22:05), Tetsuo Handa wrote: > > On (04/30/17 22:54), Tetsuo Handa wrote: > > > Sometimes we want to printk() multiple lines in a group without being > > > disturbed by concurrent printk() from interrupts and/or other threads. > > > For example, mixed printk() output of

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-08 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > sorry for the delay. No problem. > > On (04/30/17 22:54), Tetsuo Handa wrote: > > Sometimes we want to printk() multiple lines in a group without being > > disturbed by concurrent printk() from interrupts and/or other threads. > > For example, mixed printk() output

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-08 Thread Tetsuo Handa
Sergey Senozhatsky wrote: > sorry for the delay. No problem. > > On (04/30/17 22:54), Tetsuo Handa wrote: > > Sometimes we want to printk() multiple lines in a group without being > > disturbed by concurrent printk() from interrupts and/or other threads. > > For example, mixed printk() output

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-08 Thread Sergey Senozhatsky
Hello, sorry for the delay. On (04/30/17 22:54), Tetsuo Handa wrote: > Sometimes we want to printk() multiple lines in a group without being > disturbed by concurrent printk() from interrupts and/or other threads. > For example, mixed printk() output of multiple thread's dump makes it > hard to

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-08 Thread Sergey Senozhatsky
Hello, sorry for the delay. On (04/30/17 22:54), Tetsuo Handa wrote: > Sometimes we want to printk() multiple lines in a group without being > disturbed by concurrent printk() from interrupts and/or other threads. > For example, mixed printk() output of multiple thread's dump makes it > hard to

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-03 Thread Joe Perches
On Wed, 2017-05-03 at 15:21 +0900, Tetsuo Handa wrote: > Joe Perches wrote: > > On Sun, 2017-04-30 at 22:54 +0900, Tetsuo Handa wrote: > > > Sometimes we want to printk() multiple lines in a group without being > > > disturbed by concurrent printk() from interrupts and/or other threads. > > > For

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-03 Thread Joe Perches
On Wed, 2017-05-03 at 15:21 +0900, Tetsuo Handa wrote: > Joe Perches wrote: > > On Sun, 2017-04-30 at 22:54 +0900, Tetsuo Handa wrote: > > > Sometimes we want to printk() multiple lines in a group without being > > > disturbed by concurrent printk() from interrupts and/or other threads. > > > For

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-03 Thread Tetsuo Handa
Joe Perches wrote: > On Sun, 2017-04-30 at 22:54 +0900, Tetsuo Handa wrote: > > Sometimes we want to printk() multiple lines in a group without being > > disturbed by concurrent printk() from interrupts and/or other threads. > > For example, mixed printk() output of multiple thread's dump makes it

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-05-03 Thread Tetsuo Handa
Joe Perches wrote: > On Sun, 2017-04-30 at 22:54 +0900, Tetsuo Handa wrote: > > Sometimes we want to printk() multiple lines in a group without being > > disturbed by concurrent printk() from interrupts and/or other threads. > > For example, mixed printk() output of multiple thread's dump makes it

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-04-30 Thread Joe Perches
On Sun, 2017-04-30 at 22:54 +0900, Tetsuo Handa wrote: > Sometimes we want to printk() multiple lines in a group without being > disturbed by concurrent printk() from interrupts and/or other threads. > For example, mixed printk() output of multiple thread's dump makes it > hard to interpret. > >

Re: [PATCH] printk: Add best-effort printk() buffering.

2017-04-30 Thread Joe Perches
On Sun, 2017-04-30 at 22:54 +0900, Tetsuo Handa wrote: > Sometimes we want to printk() multiple lines in a group without being > disturbed by concurrent printk() from interrupts and/or other threads. > For example, mixed printk() output of multiple thread's dump makes it > hard to interpret. > >

[PATCH] printk: Add best-effort printk() buffering.

2017-04-30 Thread Tetsuo Handa
Sometimes we want to printk() multiple lines in a group without being disturbed by concurrent printk() from interrupts and/or other threads. For example, mixed printk() output of multiple thread's dump makes it hard to interpret. This patch introduces fixed-sized statically allocated buffers for

[PATCH] printk: Add best-effort printk() buffering.

2017-04-30 Thread Tetsuo Handa
Sometimes we want to printk() multiple lines in a group without being disturbed by concurrent printk() from interrupts and/or other threads. For example, mixed printk() output of multiple thread's dump makes it hard to interpret. This patch introduces fixed-sized statically allocated buffers for