Skip to content

perf report: Add support to print a textual representation of IBS raw sample data

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf env: Add perf_env__cpuid, perf_env__{nr_}pmu_mappingstools/perf/util/env.c tools/perf/util/env.h+83 -00 replies
2/3perf report: Add tools/arch/x86/include/asm/amd-ibs.htools/arch/x86/include/asm/amd-ibs.h tools/perf/check-headers.sh+133 -00 replies
3/3perf report: Add support to print a textual representation of IBS raw sample datatools/perf/util/Build tools/perf/util/amd-sample-raw.c tools/perf/util/sample-raw.c +1 more+304 -10 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/3] perf report: Add support to print a textual representation of IBS raw sample data

Hello Linux perf tools users and maintainers,

The first patch in this series prepares the perf tool to support retrieving cpuid and pmu_mappings data when in report mode, information that is needed to accurately decode IBS data.

The second patch adds a header file tools/arch/x86/include/asm/amd-ibs.h from a separate kernel-side submittion [1].

The third patch allows the tool to print a textual representation of the sample data recorded by IBS.

[1] https://lore.kernel.org/lkml/[email protected]

Kim Phillips (3):
perf env: Add perf_env__cpuid, perf_env__{nr_}pmu_mappings perf report: Add tools/arch/x86/include/asm/amd-ibs.h
perf report: Add support to print a textual representation of IBS raw
sample data

 tools/arch/x86/include/asm/amd-ibs.h | 132 ++++++++++++
 tools/perf/check-headers.sh          |   1 +
 tools/perf/util/Build                |   1 +
 tools/perf/util/amd-sample-raw.c     | 290 +++++++++++++++++++++++++++
 tools/perf/util/env.c                |  78 +++++++
 tools/perf/util/env.h                |   5 +
 tools/perf/util/sample-raw.c         |   8 +
 tools/perf/util/sample-raw.h         |   6 +-
 8 files changed, 520 insertions(+), 1 deletion(-)
 create mode 100644 tools/arch/x86/include/asm/amd-ibs.h
 create mode 100644 tools/perf/util/amd-sample-raw.c
Cc Alexander Shishkin <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc Ian Rogers <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Joao Martins <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Michael Petlan <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Robert Richter <[email protected]>
Cc Stephane Eranian <[email protected]>
Signature · 1 line
2.31.1