perf tools: Add data file write interface
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 5 repliesIn review
- v13 patches 11 repliesSuperseded
Changes in v2 from the cover letter
- changes for readn function, suggested by Ingo
- added writen function, suggested by Arnaldo
- spliting record change into 2 separated patches
- omiting some unnecessary changes in the inject change
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | perf record: Unify data output code into perf_record__write functiontools/ | +6 | 0 replies | |
| 2/7 | perf tools: Use correct return type for readn functiontools/ tools/ tools/ +1 more | +13 | 0 replies | |
| 3/7 | perf tools: Fine tune readn functiontools/ | +11 | 3 replies | |
| 4/7 | perf tools: Add writen functiontools/ tools/ | +20 | 0 replies | |
| 5/7 | perf tools: Add perf_data_file__write interfacetools/ tools/ | +14 | 0 replies | |
| 6/7 | perf record: Use perf_data_file__write for output filetools/ | +8 | 2 replies | |
| 7/7 | perf inject: Handle output file via perf_data_file objecttools/ | +27 | 2 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by.
| Patch | Ingo Molnar |
|---|---|
| 1/7 | |
| 2/7 | |
| 3/7 | Original-patch-by Original-patch-by |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv2 0/7] perf tools: Add data file write interface
hi,
adding perf_data_file__write function to centralize output file writes. Using it in record and inject commands.
v2 changes:
- changes for readn function, suggested by Ingo
- added writen function, suggested by Arnaldo
- spliting record change into 2 separated patches
- omiting some unnecessary changes in the inject change
thanks,
jirka
---
Jiri Olsa (7):
perf record: Unify data output code into perf_record__write function perf tools: Use correct return type for readn function perf tools: Fine tune readn function
perf tools: Add writen function
perf tools: Add perf_data_file__write interface
perf record: Use perf_data_file__write for output file perf inject: Handle output file via perf_data_file object
tools/perf/builtin-inject.c | 65 +++++++++++++++++++++++++++-------------------------------------- tools/perf/builtin-record.c | 41 +++++++++++++---------------------------- tools/perf/util/data.c | 6 ++++++ tools/perf/util/data.h | 14 ++++++++------ tools/perf/util/header.c | 18 +++++++++--------- tools/perf/util/session.c | 2 +- tools/perf/util/util.c | 32 ++++++++++++++++++++++++++------ tools/perf/util/util.h | 3 ++- 8 files changed, 92 insertions(+), 89 deletions(-)