Skip to content

tracing: Rename to "capacity"

Vincent Donnefort linux-trace-kernel lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- Fix "subbufer" typo
- Rename trace_array::entries (Masami)
- Rename tracing_entries_fops and tracing_total_entries_fops

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ring-buffer: Rename ring_buffer_size() to ring_buffer_capacity()include/linux/ring_buffer.h kernel/trace/ring_buffer.c kernel/trace/trace.c+13 -80 replies
2/3tracing: Rename trace_array::entries to capacitykernel/trace/trace.c kernel/trace/trace.h kernel/trace/trace_snapshot.c+22 -220 replies
3/3tracing: Rename tracing_entries_fops to tracing_capacity_fopskernel/trace/trace.c+11 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] tracing: Rename to "capacity"

A few places in ring-buffer and tracing are using "size" or "entries" while it means "capacity", that is the amount of memory available for raw data in a ring buffer. Rename functions and member where appropriate.

v2:
- Fix "subbufer" typo
- Rename trace_array::entries (Masami)
- Rename tracing_entries_fops and tracing_total_entries_fops

v1 (https://lore.kernel.org/all/[email protected]/)

Vincent Donnefort (3):
ring-buffer: Rename ring_buffer_size() to ring_buffer_capacity()
tracing: Rename trace_array::entries to capacity
tracing: Rename tracing_entries_fops to tracing_capacity_fops

 include/linux/ring_buffer.h   |  2 +-
 kernel/trace/ring_buffer.c    | 13 ++++++---
 kernel/trace/trace.c          | 51 +++++++++++++++++------------------
 kernel/trace/trace.h          |  4 +--
 kernel/trace/trace_snapshot.c | 14 +++++-----
 5 files changed, 43 insertions(+), 41 deletions(-)

base-commit: df2908090cda368b01ff43709f51890076c56157

Signature · 1 line
2.55.0.979.g7e5102b832-goog