Skip to content

perf, x86: Implement AMD IBS

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf, x86: share IBS macros between perf and oprofilearch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/perf_event_amd.c arch/x86/oprofile/op_model_amd.c+40 -390 replies
2/7perf, x86: Implement IBS initializationarch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/Makefile arch/x86/kernel/cpu/perf_event_amd_ibs.c +3 more+304 -2014 replies
3/7perf, x86: Implement IBS event configurationarch/x86/kernel/cpu/perf_event_amd_ibs.c+87 -122 replies
4/7perf, x86: Implement IBS interrupt handlerarch/x86/include/asm/msr-index.h arch/x86/kernel/cpu/perf_event_amd_ibs.c+83 -08 replies
5/7perf, x86: Implement IBS pmu control opsarch/x86/kernel/cpu/perf_event_amd_ibs.c+103 -100 replies
6/7perf, x86: Example code for AMD IBStools/perf/Documentation/examples/Makefile tools/perf/Documentation/examples/ibs.c+480 -05 replies
7/7perf, x86: Implement 64 bit counter support for IBSarch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/perf_event_amd_ibs.c+185 -217 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/7] perf, x86: Implement AMD IBS

This patch set adds support for AMD IBS to perf. It is a new implementation and unrelated to my previous postings last year. The main differences are:

* separate and independent from x86 perfctrs, IBS could be used without the x86 pmu,
* using dynamic pmu allocation, userspace uses sysfs to select the pmu,
* support for 64 bit counters,
* libperf based example code,
* shared IBS initialziation code for perf and oprofile.

The approach is still to collect raw sample data which should be the most important use case for application developers. The data format is the same as described in the IBS register specification.

Future work could be:

* better integration into the perf tool, use IBS for generic events where possible,
* support of the precise event sampling perf i/f,
* implementation of extended IBS features (e.g. ext. counter width),
* support of counting (perf stat),
* in-kernel IBS event parsing,
* IBS tracepoint support.

-Robert