Skip to content

perf core PMU support for Sapphire Rapids (User tools)

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9tools headers uapi: Update tools's copy of linux/perf_event.htools/include/uapi/linux/perf_event.h+50 -40 replies
2/9perf tools: Support the auxiliary eventtools/perf/arch/x86/util/Build tools/perf/arch/x86/util/mem-events.c tools/perf/util/evsel.c +4 more+60 -17 replies
3/9perf tools: Support data block and addr blocktools/perf/Documentation/perf-report.txt tools/perf/builtin-mem.c tools/perf/util/hist.c +5 more+70 -42 replies
4/9perf c2c: Support data block and addr blocktools/perf/builtin-c2c.c tools/perf/util/mem-events.c tools/perf/util/mem-events.h+11 -01 reply
5/9perf tools: Support PERF_SAMPLE_WEIGHT_STRUCTtools/perf/arch/x86/util/Build tools/perf/arch/x86/util/evsel.c tools/perf/util/evsel.c +5 more+61 -113 replies
6/9perf report: Support instruction latencytools/perf/Documentation/perf-report.txt tools/perf/util/event.h tools/perf/util/evsel.c +7 more+81 -1110 replies
7/9perf test: Support PERF_SAMPLE_WEIGHT_STRUCTtools/perf/tests/sample-parsing.c+11 -31 reply
8/9perf stat: Support L2 Topdown eventstools/perf/Documentation/perf-stat.txt tools/perf/builtin-stat.c tools/perf/util/stat-shadow.c +2 more+149 -40 replies
9/9perf, tools: Update topdown documentation for Sapphire Rapidstools/perf/Documentation/topdown.txt+74 -40 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchAthira Rajeev
1/9
2/9
3/9
4/9
5/9
6/9T-b
7/9
8/9
9/9

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/9] perf core PMU support for Sapphire Rapids (User tools)

From: Kan Liang <[email protected]>

Intel Sapphire Rapids server is the successor of the Intel Ice Lake server. There are several user-visible features introduced.
- Two new data source fields, data block & address block, are added in the PEBS Memory Info Record for the load latency event. Improve the c2c and mem tools to display the reasons of a memory load block.
- Support the new instruction latency in perf mem.
Support the new sample type, PERF_SAMPLE_WEIGHT_STRUCT.
- Support TMA method level 2 metrics with the perf stat --topdown option. Update the topdown documentation accordingly.

The full description for the SPR features can be found at Intel Architecture Instruction Set Extensions and Future Features Programming Reference, 319433-041 (and later).

The kernel patches has been merged into the tip:perf/core branch.

Kan Liang (9):
tools headers uapi: Update tools's copy of linux/perf_event.h perf tools: Support the auxiliary event
perf tools: Support data block and addr block
perf c2c: Support data block and addr block
perf tools: Support PERF_SAMPLE_WEIGHT_STRUCT
perf report: Support instruction latency
perf test: Support PERF_SAMPLE_WEIGHT_STRUCT
perf stat: Support L2 Topdown events
perf, tools: Update topdown documentation for Sapphire Rapids

 tools/include/uapi/linux/perf_event.h     | 54 ++++++++++++++++--
 tools/perf/Documentation/perf-report.txt  |  9 ++-
 tools/perf/Documentation/perf-stat.txt    | 14 ++++-
 tools/perf/Documentation/topdown.txt      | 78 ++++++++++++++++++++++++--
 tools/perf/arch/x86/util/Build            |  2 +
 tools/perf/arch/x86/util/evsel.c          |  8 +++
 tools/perf/arch/x86/util/mem-events.c     | 44 +++++++++++++++
 tools/perf/builtin-c2c.c                  |  3 +
 tools/perf/builtin-mem.c                  |  2 +-
 tools/perf/builtin-stat.c                 | 34 +++++++++++-
 tools/perf/tests/sample-parsing.c         | 14 ++++-
 tools/perf/util/event.h                   |  1 +
 tools/perf/util/evsel.c                   | 33 +++++++++--
 tools/perf/util/evsel.h                   |  3 +
 tools/perf/util/hist.c                    | 13 ++++-
 tools/perf/util/hist.h                    |  3 +
 tools/perf/util/intel-pt.c                | 23 +++++++-
 tools/perf/util/mem-events.c              | 36 ++++++++++++
 tools/perf/util/mem-events.h              |  5 ++
 tools/perf/util/parse-events.l            |  1 +
 tools/perf/util/perf_event_attr_fprintf.c |  2 +-
 tools/perf/util/record.c                  |  5 +-
 tools/perf/util/session.c                 |  8 ++-
 tools/perf/util/sort.c                    | 83 +++++++++++++++++++++++++++-
 tools/perf/util/sort.h                    |  4 ++
 tools/perf/util/stat-shadow.c             | 92 +++++++++++++++++++++++++++++++
 tools/perf/util/stat.c                    |  4 ++
 tools/perf/util/stat.h                    |  9 +++
 tools/perf/util/synthetic-events.c        |  8 ++-
 29 files changed, 560 insertions(+), 35 deletions(-)
 create mode 100644 tools/perf/arch/x86/util/evsel.c
 create mode 100644 tools/perf/arch/x86/util/mem-events.c
Signature · 1 line
2.7.4