Skip to content

Pipe mode header dumping and minor space saving

Ian Rogers bpf linux-perf-users lkml 1 version Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4perf header: In pipe mode dump features without --header/-Itools/perf/util/header.c+8 -140 replies
2/4perf header: Allow tracing of attr eventstools/perf/util/header.c tools/perf/util/header.h+9 -00 replies
3/4perf header: Display message if BPF/BTF info is emptytools/perf/util/header.c+6 -00 replies
4/4perf header: Don't write empty BPF/BTF infotools/perf/util/header.c+8 -20 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/4] Pipe mode header dumping and minor space saving

Pipe mode has no header and emits the data as if it were events. The dumping of features was controlled by the --header/-I options which makes little sense when they are events, normally traced when dump_trace is true. Switch to making pipe feature events also be traced with detail when other events are.

The attr event in pipe mode had no dumping, wire this up and use the existing perf_event_attr fprintf support.

The header's bpf_prog_info or bpf_btf may be empty when written. If they are empty just skip writing them to save space.

Ian Rogers (4):
perf header: In pipe mode dump features without --header/-I perf header: Allow tracing of attr events
perf header: Display message if BPF/BTF info is empty perf header: Don't write empty BPF/BTF info

 tools/perf/util/header.c | 46 ++++++++++++++++++++++++++--------------
 tools/perf/util/header.h |  1 +
 2 files changed, 31 insertions(+), 16 deletions(-)
Signature · 1 line
2.50.0.rc0.604.gd4ff7b7c86-goog