Skip to content

tracing/seq-buf/printk: New seq-buf utility from trace_seq for printk in NMI

Steven Rostedt lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15tracing: Create seq_buf layer in trace_seqinclude/linux/seq_buf.h include/linux/trace_seq.h kernel/trace/Makefile +5 more+538 -1260 replies
2/15tracing: Convert seq_buf_path() to be like seq_path()include/linux/seq_buf.h kernel/trace/seq_buf.c kernel/trace/trace_seq.c+19 -160 replies
3/15tracing: Convert seq_buf fields to be like seq_file fieldsinclude/linux/seq_buf.h+4 -40 replies
4/15tracing: Add a seq_buf_clear() helper and clear len and readpos in initinclude/linux/seq_buf.h+7 -20 replies
5/15seq_buf: Create seq_buf_used() to find out how much was writteninclude/linux/seq_buf.h kernel/trace/seq_buf.c+7 -40 replies
6/15tracing: Clean up tracing_fill_pipe_page()kernel/trace/trace.c+19 -60 replies
7/15tracing: Use trace_seq_used() and seq_buf_used() instead of leninclude/linux/trace_seq.h kernel/trace/seq_buf.c kernel/trace/trace.c +3 more+42 -170 replies
8/15tracing: Add paranoid size check in trace_printk_seq()kernel/trace/trace.c+8 -00 replies
9/15seq_buf: Add seq_buf_can_fit() helper functionkernel/trace/seq_buf.c+18 -50 replies
10/15tracing: Have seq_buf use full bufferinclude/linux/seq_buf.h kernel/trace/seq_buf.c+9 -60 replies
11/15tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functionsinclude/linux/seq_buf.h kernel/trace/seq_buf.c+44 -40 replies
12/15seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTFinclude/linux/seq_buf.h kernel/trace/seq_buf.c+7 -20 replies
13/15seq_buf: Move the seq_buf code to lib/kernel/trace/Makefile kernel/trace/seq_buf.c lib/Makefile +1 more+360 -3610 replies
14/15printk: Add per_cpu printk func to allow printk to be divertedinclude/linux/percpu.h include/linux/printk.h kernel/printk/printk.c+34 -90 replies
15/15x86/nmi: Perform a safe NMI stack trace on all CPUsarch/x86/kernel/apic/hw_nmi.c+86 -50 replies

Reviews trailers per patch

14 of 15 patches have a Reviewed-by or Acked-by.

PatchJiri KosinaPaul E. McKenneyPetr Mladek
1/15T-b A-b R-b
2/15T-b A-b R-b
3/15T-b A-b R-b
4/15T-b A-b R-b
5/15R-b
6/15R-b
7/15
8/15R-b
9/15R-b
10/15T-b A-b R-b
11/15T-b A-b R-b
12/15T-b A-b R-b
13/15T-b A-b R-b
14/15T-b A-b A-b R-b
15/15T-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.

Read the v1 thread

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(-)