diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-05-26 22:00:33 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-06-20 16:54:20 +0300 |
commit | e2ace001176dc9745a472fe8bda1f0b28a4d7351 (patch) | |
tree | b278062869848c20cd6075696ee8271a4b09de62 /samples/Kconfig | |
parent | 35abb67de744b5dbaec54381f2f9e0246089331d (diff) | |
download | linux-e2ace001176dc9745a472fe8bda1f0b28a4d7351.tar.xz |
tracing: Choose static tp_printk buffer by explicit nesting count
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 if we nest more than 4 deep,
and the old code was guaranteed to malfunction if that happened.
Link: http://lkml.kernel.org/r/07ab03aecfba25fcce8f9a211b14c9c5e2865c58.1464289095.git.luto@kernel.org
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'samples/Kconfig')
0 files changed, 0 insertions, 0 deletions