perf, x86: perf, x86: Add support for AMD family 15h core counters
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | perf, x86: Use helper function in x86_pmu_enable_all()arch/ | +8 | 1 reply | |
| 2/5 | perf, x86: Calculate perfctr msr addresses in helper functionsarch/ arch/ | +25 | 1 reply | |
| 3/5 | perf, x86: Add new AMD family 15h msrs to perfctr reservation codearch/ | +4 | 1 reply | |
| 4/5 | perf, x86: Store perfctr msr addresses in config_base/event_basearch/ arch/ arch/ | +15 | 1 reply | |
| 5/5 | perf, x86: Add support for AMD family 15h core countersarch/ arch/ | +198 | 9 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] perf, x86: perf, x86: Add support for AMD family 15h core counters
This patch set adds support for AMD family 15h core counters. Major changes compared to family 10h counters are:
* Now there are separate northbridge and core counters that resides in different MSR ranges (core: MSRC001_02[0B:00], nb:
MSRC001_02[47:40]).
* The MSR addresses of perfctr and evntsel registers are now located side-by-side, we can not calculate the address with (base + index) anymore.
* There are 4 northbridge counters and 6 core counters.
* There are legacy aliases to old MSR counter addresses (MSRC001_00[03:00] -> MSRC001_02[07:00] respectively).
* There are restrictions now that not all performance monitor events can be counted on all counters.
We need to change MSR address handling of the x86 perf_event implementation and also add more AMD event constraints to schedule events.
This patch set only adds core counters.
-Robert