tracing/seq-buf/printk: New seq-buf utility from trace_seq for printk in NMI
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | tracing: Create seq_buf layer in trace_seqinclude/ include/ kernel/ +5 more | +538 | 0 replies | |
| 2/15 | tracing: Convert seq_buf_path() to be like seq_path()include/ kernel/ kernel/ | +19 | 0 replies | |
| 3/15 | tracing: Convert seq_buf fields to be like seq_file fieldsinclude/ | +4 | 0 replies | |
| 4/15 | tracing: Add a seq_buf_clear() helper and clear len and readpos in initinclude/ | +7 | 0 replies | |
| 5/15 | seq_buf: Create seq_buf_used() to find out how much was writteninclude/ kernel/ | +7 | 0 replies | |
| 6/15 | tracing: Clean up tracing_fill_pipe_page()kernel/ | +19 | 0 replies | |
| 7/15 | tracing: Use trace_seq_used() and seq_buf_used() instead of leninclude/ kernel/ kernel/ +3 more | +42 | 0 replies | |
| 8/15 | tracing: Add paranoid size check in trace_printk_seq()kernel/ | +8 | 0 replies | |
| 9/15 | seq_buf: Add seq_buf_can_fit() helper functionkernel/ | +18 | 0 replies | |
| 10/15 | tracing: Have seq_buf use full bufferinclude/ kernel/ | +9 | 0 replies | |
| 11/15 | tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functionsinclude/ kernel/ | +44 | 0 replies | |
| 12/15 | seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTFinclude/ kernel/ | +7 | 0 replies | |
| 13/15 | seq_buf: Move the seq_buf code to lib/kernel/ kernel/ lib/ +1 more | +360 | 0 replies | |
| 14/15 | printk: Add per_cpu printk func to allow printk to be divertedinclude/ include/ kernel/ | +34 | 0 replies | |
| 15/15 | x86/nmi: Perform a safe NMI stack trace on all CPUsarch/ | +86 | 0 replies |
Reviews trailers per patch
14 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Kosina | Paul E. McKenney | Petr Mladek |
|---|---|---|---|
| 1/15 | T-b A-b | R-b | |
| 2/15 | T-b A-b | R-b | |
| 3/15 | T-b A-b | R-b | |
| 4/15 | T-b A-b | R-b | |
| 5/15 | R-b | ||
| 6/15 | R-b | ||
| 7/15 | |||
| 8/15 | R-b | ||
| 9/15 | R-b | ||
| 10/15 | T-b A-b | R-b | |
| 11/15 | T-b A-b | R-b | |
| 12/15 | T-b A-b | R-b | |
| 13/15 | T-b A-b | R-b | |
| 14/15 | T-b A-b | A-b | R-b |
| 15/15 | T-b A-b | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [for-next][PATCH 00/15] tracing/seq-buf/printk: New seq-buf utility from trace_seq for printk in NMI
I created a separate branch for this change (although it's still going into my for-next branch which ends up in linux-next. But that branch is made up of multiple branches).
I'm hoping that it makes it into 3.19, but I'll give that choice to Linus. This is based off of a point of my ftrace/core branch which is my normal branch. But this one is separate because it may not be accepted. I'll just have to wait and see. New work for tracing will not be based on this branch.
Although Linus may not accept it, I still want it in linux-next for further testing.
-- Steve
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next
Head SHA1: a9edc88093287183ac934be44f295f183b2c62dd
Steven Rostedt (Red Hat) (15):
tracing: Create seq_buf layer in trace_seq
tracing: Convert seq_buf_path() to be like seq_path()
tracing: Convert seq_buf fields to be like seq_file fields
tracing: Add a seq_buf_clear() helper and clear len and readpos in init
seq_buf: Create seq_buf_used() to find out how much was written
tracing: Clean up tracing_fill_pipe_page()
tracing: Use trace_seq_used() and seq_buf_used() instead of len
tracing: Add paranoid size check in trace_printk_seq()
seq_buf: Add seq_buf_can_fit() helper function
tracing: Have seq_buf use full buffer
tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions
seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTF
seq_buf: Move the seq_buf code to lib/
printk: Add per_cpu printk func to allow printk to be diverted x86/nmi: Perform a safe NMI stack trace on all CPUs
----
arch/x86/kernel/apic/hw_nmi.c | 91 ++++++++- include/linux/percpu.h | 3 + include/linux/printk.h | 2 + include/linux/seq_buf.h | 136 +++++++++++++ include/linux/trace_seq.h | 30 ++- kernel/printk/printk.c | 38 +++- kernel/trace/trace.c | 65 +++++-- kernel/trace/trace_events.c | 9 +- kernel/trace/trace_functions_graph.c | 11 +- kernel/trace/trace_seq.c | 177 ++++++++--------- lib/Makefile | 2 +- lib/seq_buf.c | 359 +++++++++++++++++++++++++++++++++++ 12 files changed, 779 insertions(+), 144 deletions(-)