Skip to content

perf tools: Add data file write interface

Jiri Olsa lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 5 repliesIn review
  2. 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 filesSizeRepliesApplied
1/7perf record: Unify data output code into perf_record__write functiontools/perf/builtin-record.c+6 -140 replies
2/7perf tools: Use correct return type for readn functiontools/perf/util/header.c tools/perf/util/session.c tools/perf/util/util.c +1 more+13 -130 replies
3/7perf tools: Fine tune readn functiontools/perf/util/util.c+11 -53 replies
4/7perf tools: Add writen functiontools/perf/util/util.c tools/perf/util/util.h+20 -50 replies
5/7perf tools: Add perf_data_file__write interfacetools/perf/util/data.c tools/perf/util/data.h+14 -60 replies
6/7perf record: Use perf_data_file__write for output filetools/perf/builtin-record.c+8 -152 replies
7/7perf inject: Handle output file via perf_data_file objecttools/perf/builtin-inject.c+27 -382 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchIngo Molnar
1/7
2/7
3/7Original-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.

Read the v2 thread

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

Cc Ingo Molnar <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc David Ahern <[email protected]>
Cc Adrian Hunter <[email protected]>

---
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(-)