[PATCH 0/3] perf report: Add support to print a textual representation of IBS raw sample data

From: Kim Phillips
Date: Tue Aug 17 2021 - 18:15:32 EST


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/20210817221048.88063-9-kim.phillips@xxxxxxx

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 <alexander.shishkin@xxxxxxxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
Cc: Ian Rogers <irogers@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Joao Martins <joao.m.martins@xxxxxxxxxx>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>
Cc: Michael Petlan <mpetlan@xxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Robert Richter <robert.richter@xxxxxxx>
Cc: Stephane Eranian <eranian@xxxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-perf-users@xxxxxxxxxxxxxxx

--
2.31.1