Skip to content

tracing: separate out buffer from trace_seq

Lai Jiangshan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6: bug fix, remove partial zero outinclude/linux/ftrace_event.h kernel/trace/trace.c+0 -123 replies
2/6tracing: event_id_read() uses simple buffer instead of trace_seqkernel/trace/trace_events.c+5 -121 reply
3/6tracing: tracing_stats_read() uses simple buffer instead of trace_seqkernel/trace/trace.c+7 -121 reply
4/6tracing: Change trace_seq to use separate bufferinclude/linux/ftrace_event.h include/linux/trace_seq.h include/trace/ftrace.h +5 more+104 -574 replies
5/6tracing: reduce latency and remove percpu trace_seqinclude/linux/ftrace_event.h include/trace/ftrace.h kernel/trace/trace_output.c+9 -293 replies
6/6tracing: Write directly into splice page for trace_pipekernel/trace/trace.c+5 -270 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchFrederic Weisbecker
1/6
2/6A-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] tracing: separate out buffer from trace_seq

Quote from Steven:
"""
This is an RFC patch set. The trace_seq currently has its buffer within the structure itself. But this limits its ability and efficiency.

This patch set separates it out, but now it requires the callers to supply their own buffer. But this helps out the splice code because it can now write directly into the splice pages.
"""

Lai Jiangshan (4)
tracing: bug fix, remove partial zeroed out
tracing: event_id_read() uses simple buffer instead of trace_seq
tracing: tracing_stats_read() uses simple buffer instead of trace_seq
tracing: reduce latency and remove percpu trace_seq

Steven Rostedt (2):
tracing: Change trace_seq to use separate buffer
tracing: Write directly into splice page for trace_pipe

---
 include/linux/ftrace_event.h |    9 +++-
 include/linux/trace_seq.h    |   22 +++++++++++-
 include/trace/ftrace.h       |   18 +++------
 kernel/trace/ftrace.c        |    3 +
 kernel/trace/trace.c         |   72 +++++++++++----------------------------
 kernel/trace/trace_events.c  |   78 ++++++++++++++++++++-----------------------
 kernel/trace/trace_ksym.c    |   12 +++---
 kernel/trace/trace_output.c  |   25 ++++++-------
 8 files changed, 110 insertions(+), 129 deletions(-)