Skip to content

perf header: Save and reuse feature information in header (v4)

Namhyung Kim lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

v3 -> v4 from the cover letter

* rename perf_header_info to perf_session_env (Arnaldo)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf header: Add struct perf_session_envtools/perf/util/header.h+24 -00 replies
2/4perf header: Add ->process callbacks to most of featurestools/perf/util/header.c+307 -110 replies
3/4perf header: Use pre-processed session env when printingtools/perf/util/header.c+102 -1770 replies
4/4perf header: Remove unused @feat arg from ->process callbacktools/perf/util/header.c+35 -350 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] perf header: Save and reuse feature information in header (v4)

Hi,

Currently the perf header information is used only at initial setup time and discarded. If it's saved we could reuse the information for various purpose in the future.

Thanks,
Namhyung

v3 -> v4:
* rename perf_header_info to perf_session_env (Arnaldo)

v2 -> v3:
* patch 1-3 in v2 merged into tip
* rebased on current acme/perf/core

v1 -> v2:
* not touch EVENT_DESC feature handling
* split out struct perf_header_info
* simplify multi-string handling
* add some cleanup patches

Namhyung Kim (4):
perf header: Add struct perf_session_env
perf header: Add ->process callbacks to most of features perf header: Use pre-processed session env when printing perf header: Remove unused @feat arg from ->process callback

 tools/perf/util/header.c | 547 +++++++++++++++++++++++++++++++++--------------
 tools/perf/util/header.h |  24 +++
 2 files changed, 408 insertions(+), 163 deletions(-)
Signature · 1 line
1.7.11.4