tracing: Introduce configurable ring sub buffer size
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/25 patches 0 repliesNew
- v4 posting 1/25 patches 0 repliesSuperseded
- v35 patches 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 4 patches | 0 replies | Superseded | |
| v1 RFC | 3 patches | 6 replies | Superseded |
Changes in v4 from the cover letter
- Do not change the sub buffer size of the temp event buffer per CPU, trace_buffered_event. That size if fixed to one system page.
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tracing: Refactor ring buffer implementationkernel/ | +30 | 0 replies | |
| 2/5 | tracing: Page size per ring bufferinclude/ kernel/ kernel/ +2 more | +79 | 0 replies | |
| 3/5 | tracing: Add interface for configuring trace sub buffer sizeinclude/ kernel/ kernel/ | +125 | 0 replies | |
| 4/5 | tracing: Set new size of the ring buffer sub pagekernel/ | +73 | 0 replies | |
| 5/5 | tracing: Read and write to ring buffers with custom sub buffer sizeinclude/ kernel/ kernel/ +1 more | +89 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/5] tracing: Introduce configurable ring sub buffer size
From: "Tzvetomir Stoyanov (VMware)" <[email protected]>
Currently the size of one sub buffer page is global for all buffers and it is hard coded to one system page. The patch set introduces configurable ring buffer sub page size, per ring buffer. A new user space interface is introduced, which allows to change the sub page size of the ftrace buffer, per ftrace instance.
[Resend to LKML]
v4 changes:
- Do not change the sub buffer size of the temp event buffer per CPU, trace_buffered_event. That size if fixed to one system page.
v3 changes:
- Fixed ring buffer readers and writers to work with custom sub buffer page size.
v2 changes:
- Split code refactoring in a separate patch.
- Changed the logic to work with order of system pages, instead of page size.
- Fix freeing of the allocated pages, to take into account the actual order.
- Code clean ups.
- Bug fixes.
Tzvetomir Stoyanov (VMware) (5):
[RFC] tracing: Refactor ring buffer implementation
[RFC] tracing: Page size per ring buffer
[RFC] tracing: Add interface for configuring trace sub buffer size [RFC] tracing: Set new size of the ring buffer sub page [RFC] tracing: Read and write to ring buffers with custom sub buffer
size
include/linux/ring_buffer.h | 17 +- kernel/trace/ring_buffer.c | 345 ++++++++++++++++++++------- kernel/trace/ring_buffer_benchmark.c | 10 +- kernel/trace/trace.c | 84 +++++-- kernel/trace/trace.h | 1 + kernel/trace/trace_events.c | 50 +++- 6 files changed, 392 insertions(+), 115 deletions(-)
Signature · 1 line
2.31.1