Skip to content

perf tools: Support reading PERF_FORMAT_LOST (v3)

Namhyung Kim linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tools headers UAPI: Sync linux/perf_event.h with the kernel sourcestools/include/uapi/linux/perf_event.h+4 -10 replies
2/4tools lib perf: Handle read format in perf_evsel__read()tools/lib/perf/evsel.c tools/lib/perf/include/perf/event.h tools/lib/perf/include/perf/evsel.h+83 -30 replies
3/4tools lib perf: Add a test case for read formatstools/lib/perf/tests/test-evsel.c+161 -00 replies
4/4perf tools: Support reading PERF_FORMAT_LOSTtools/perf/tests/sample-parsing.c tools/perf/util/event.h tools/perf/util/evsel.c +3 more+108 -422 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri Olsa
SeriesA-b
1/4
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] perf tools: Support reading PERF_FORMAT_LOST (v3)

Hello,

The kernel v6.0 added PERF_FORMAT_LOST which can read a number of lost samples for the given event. As it can change the output format of read(2) and perf sample data, it needs to access them carefully.

Changes in v3)
* add sample_read_group__for_each() (Jiri)

Changes in v2)
* add a comment in perf_evsel__read_group() (Jiri)
* simplify perf_evsel__adjust_values() (Jiri)

You can get the code from 'perf/read-lost-v3' brach on

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (4):
tools headers UAPI: Sync linux/perf_event.h with the kernel sources tools lib perf: Handle read format in perf_evsel__read() tools lib perf: Add a test case for read formats
perf tools: Support reading PERF_FORMAT_LOST

 tools/include/uapi/linux/perf_event.h         |   5 +-
 tools/lib/perf/evsel.c                        |  79 ++++++++-
 tools/lib/perf/include/perf/event.h           |   3 +-
 tools/lib/perf/include/perf/evsel.h           |   4 +-
 tools/lib/perf/tests/test-evsel.c             | 161 ++++++++++++++++++
 tools/perf/tests/sample-parsing.c             |  14 +-
 tools/perf/util/event.h                       |  21 ++-
 tools/perf/util/evsel.c                       |  29 ++--
 .../scripting-engines/trace-event-python.c    |  19 ++-
 tools/perf/util/session.c                     |  35 ++--
 tools/perf/util/synthetic-events.c            |  32 +++-
 11 files changed, 356 insertions(+), 46 deletions(-)

base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868

Signature · 1 line
2.37.1.595.g718a3a8f04-goog