Skip to content

Get trace buffer page size from kernel

Tzvetomir Stoyanov (VMware) linux-trace-devel 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 0 repliesNew
  2. v52 patches 0 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches0 repliesSuperseded
v22 patches0 repliesSuperseded
v12 patches1 replySuperseded

Changes in v6 from the cover letter

- Code cleanups.
- Rebase.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2trace-cmd library: Use the real trace buffer page sizelib/trace-cmd/trace-output.c+36 -10 replies
2/2trace-cmd library: Introduce buffer page size per instanceDocumentation/trace-cmd/trace-cmd.dat.v7.5.txt lib/trace-cmd/include/trace-cmd-local.h lib/trace-cmd/trace-input.c +2 more+47 -220 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCH v6 0/2] Get trace buffer page size from kernel

The trace buffer page size is equal to the system memory page size in the current ftrace implementation, but this may change in the future. The newly introduced traceevent library API should be used to get the real trace buffer page size, bases on the information from the "events/header_page" ftrace file.

This patch set depends on:
"[PATCH v8 0/4] trace-cmd documentation update for v7 files"
https://lore.kernel.org/linux-trace-devel/[email protected]/

v6 changes:
- Code cleanups.
- Rebase.
v5 changes:
- Bug fixes.
- Code cleanups.
- Rebase.
v4 changes
- Rebased on top of the latest master.
v3 changes
- Rebased on top of the latest master.
v2 changes:
- libtraceevent API is renamed, use the new version.
- Rewrote get_trace_page_size() to use libtracefs APIs.
- Cleanups in "trace-cmd dump" output, related to buffer page size print.

Tzvetomir Stoyanov (VMware) (2):
trace-cmd library: Use the real trace buffer page size trace-cmd library: Introduce buffer page size per instance

 .../trace-cmd/trace-cmd.dat.v7.5.txt          |  1 +
 lib/trace-cmd/include/trace-cmd-local.h       |  4 +-
 lib/trace-cmd/trace-input.c                   | 12 ++-
 lib/trace-cmd/trace-output.c                  | 74 +++++++++++++++----
 tracecmd/trace-dump.c                         |  9 ++-
 5 files changed, 80 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1