Skip to content

Correct inject's handling of pipe files on disk

Ian Rogers linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8perf report: Name events in stats for pipe modetools/perf/builtin-report.c+1 -00 replies
2/8perf session: Document struct and constify auxtracetools/perf/util/session.h+47 -10 replies
3/8perf header: Add kerneldoc to perf_file_headertools/perf/util/header.h+15 -10 replies
4/8perf header: Fail read if header sections overlaptools/perf/util/header.c+18 -00 replies
5/8perf header: Allow attributes to be written after datatools/perf/util/header.c+67 -398 replies
6/8perf inject: Overhaul handling of pipe filestools/perf/builtin-inject.c tools/perf/util/header.c tools/perf/util/header.h +2 more+48 -490 replies
7/8perf header: Remove repipe optiontools/perf/util/header.c tools/perf/util/header.h tools/perf/util/session.c+9 -180 replies
8/8perf test: Additional pipe tests with pipe output written to a filetools/perf/tests/shell/pipe_test.sh+26 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/8] Correct inject's handling of pipe files on disk

Perf inject tried to repipe the header, but this isn't possible if the input is a pipe and the output a file, as the attributes are events in pipe mode. Add an ability to write the attributes after the data so writing the header doesn't need a possibly too large or small region reserved for the attributes. Add testing for the case of a pipe mode file on disk, add checks that the perf file's header isn't obviously corrupt by having the header, data or attribute sections overlap. Add more comments.

Ian Rogers (8):
perf report: Name events in stats for pipe mode
perf session: Document struct and constify auxtrace
perf header: Add kerneldoc to perf_file_header
perf header: Fail read if header sections overlap
perf header: Allow attributes to be written after data perf inject: Overhaul handling of pipe files
perf header: Remove repipe option
perf test: Additional pipe tests with pipe output written to a file

 tools/perf/builtin-inject.c         |  60 +++++------
 tools/perf/builtin-report.c         |   1 +
 tools/perf/tests/shell/pipe_test.sh |  26 +++++
 tools/perf/util/header.c            | 151 +++++++++++++++++-----------
 tools/perf/util/header.h            |  21 +++-
 tools/perf/util/session.c           |  12 +--
 tools/perf/util/session.h           |  52 +++++++++-
 7 files changed, 223 insertions(+), 100 deletions(-)
Signature · 1 line
2.46.0.295.g3b9ea8a38a-goog