linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/8] Correct inject's handling of pipe files on disk
@ 2024-08-29 15:01 Ian Rogers
  2024-08-29 15:01 ` [PATCH v1 1/8] perf report: Name events in stats for pipe mode Ian Rogers
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Ian Rogers @ 2024-08-29 15:01 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Kan Liang, Nick Terrell, Yanteng Si,
	Yicong Yang, James Clark, linux-perf-users, linux-kernel

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

-- 
2.46.0.295.g3b9ea8a38a-goog


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-08-30 16:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 15:01 [PATCH v1 0/8] Correct inject's handling of pipe files on disk Ian Rogers
2024-08-29 15:01 ` [PATCH v1 1/8] perf report: Name events in stats for pipe mode Ian Rogers
2024-08-29 15:01 ` [PATCH v1 2/8] perf session: Document struct and constify auxtrace Ian Rogers
2024-08-29 15:01 ` [PATCH v1 3/8] perf header: Add kerneldoc to perf_file_header Ian Rogers
2024-08-29 15:01 ` [PATCH v1 4/8] perf header: Fail read if header sections overlap Ian Rogers
2024-08-29 15:01 ` [PATCH v1 5/8] perf header: Allow attributes to be written after data Ian Rogers
2024-08-29 19:31   ` Arnaldo Carvalho de Melo
2024-08-29 20:12     ` Ian Rogers
2024-08-29 20:58       ` Arnaldo Carvalho de Melo
2024-08-29 21:42         ` Ian Rogers
2024-08-30  4:39           ` Namhyung Kim
2024-08-30  5:03             ` Ian Rogers
2024-08-30 16:04               ` Namhyung Kim
2024-08-30 12:19           ` Arnaldo Carvalho de Melo
2024-08-29 15:01 ` [PATCH v1 6/8] perf inject: Overhaul handling of pipe files Ian Rogers
2024-08-29 15:01 ` [PATCH v1 7/8] perf header: Remove repipe option Ian Rogers
2024-08-29 15:01 ` [PATCH v1 8/8] perf test: Additional pipe tests with pipe output written to a file Ian Rogers
2024-08-29 15:22 ` [PATCH v1 0/8] Correct inject's handling of pipe files on disk Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).