Re: [PATCH v2] tracing: Choose static tp_printk buffer by explicit nesting count

2016-05-28 Thread Namhyung Kim
Hi Andy, On Fri, May 27, 2016 at 4:00 AM, Andy Lutomirski wrote: > Currently, the trace_printk code chooses which static buffer to use based > on what type of atomic context (NMI, IRQ, etc) it's in. Simplify the > code and make it more robust: simply count the nesting depth and choose > a buffer

[PATCH v2] tracing: Choose static tp_printk buffer by explicit nesting count

2016-05-26 Thread Andy Lutomirski
Currently, the trace_printk code chooses which static buffer to use based on what type of atomic context (NMI, IRQ, etc) it's in. Simplify the code and make it more robust: simply count the nesting depth and choose a buffer based on the current nesting depth. The new code will only drop an event