Refactor the logic for writing trace data in the file
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 2 repliesIn review
- v24 patches 0 repliesSuperseded
- v14 patches 0 repliesSuperseded
Changes in v3 from the cover letter
- Bug fixes.
- Rebased on top of the latest master.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | trace-cmd library: Add internal database for trace bufferslib/ lib/ | +58 | 0 replies | |
| 2/4 | trace-cmd: Use the new trace buffers APIlib/ lib/ tracecmd/ | +8 | 1 reply | |
| 3/4 | trace-cmd library: Helper logic to update the trace buffer offsetlib/ | +49 | 1 reply | |
| 4/4 | trace-cmd library: Refactor the logic for writing trace data in the filelib/ lib/ lib/ +2 more | +140 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/4] Refactor the logic for writing trace data in the file
When a trace buffer data are written in the trace file, the buffer option in the file metadata is updated with the file offset of the tracing data. Hide this logic into the trace-cmd library. Added new APIs:
tracecmd_add_buffer_info() tracecmd_write_buffer_info()
Changed APIs:
tracecmd_append_buffer_cpu_data()
Removed APIs:
tracecmd_add_buffer_option()
Refactored the internal logic of tracecmd_write_cpu_data() API to be suitable for upcoming trace file format changes and data compression. The size and the offset of the trace data is saved in the file right after the data is written. The old logic calculates the size and offset in advance, but when the trace data is compressed it is hard to use that approach.
This patch-set depends on:
"trace-cmd fixes and clean-ups" patch set. "Refactor APIs for creating output handler" patch set.
v3 changes:
- Bug fixes.
- Rebased on top of the latest master.
v2 changes:
- Fixed wrong calculations of trace page alignment.
Tzvetomir Stoyanov (VMware) (4):
trace-cmd library: Add internal database for trace buffers
trace-cmd: Use the new trace buffers API
trace-cmd library: Helper logic to update the trace buffer offset trace-cmd library: Refactor the logic for writing trace data in the
file
.../include/private/trace-cmd-private.h | 10 +- lib/trace-cmd/include/trace-cmd-local.h | 19 ++ lib/trace-cmd/trace-output.c | 322 ++++++++++++------ tracecmd/trace-listen.c | 2 +- tracecmd/trace-record.c | 18 +- 5 files changed, 253 insertions(+), 118 deletions(-)
Signature · 1 line
2.33.1