Commit f47eff1
committed
perf/x86/intel: Support Perfmon MSRs aliasing
JIRA: https://issues.redhat.com/browse/RHEL-20059
upstream
========
commit 149fd47
Author: Kan Liang <kan.liang@linux.intel.com>
Date: Wed Jun 26 07:35:40 2024 -0700
description
===========
The architectural performance monitoring V6 supports a new range of
counters' MSRs in the 19xxH address range. They include all the GP
counter MSRs, the GP control MSRs, and the fixed counter MSRs.
The step between each sibling counter is 4. Add intel_pmu_addr_offset()
to calculate the correct offset.
Add fixedctr in struct x86_pmu to store the address of the fixed counter
0. It can be used to calculate the rest of the fixed counters.
The MSR address of the fixed counter control is not changed.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lkml.kernel.org/r/20240626143545.480761-9-kan.liang@linux.intel.com
Signed-off-by: Michael Petlan <mpetlan@redhat.com>1 parent 80dac20 commit f47eff1
File tree
4 files changed
+32
-5
lines changed- arch/x86
- events
- intel
- include/asm
4 files changed
+32
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
1240 | | - | |
| 1239 | + | |
1241 | 1240 | | |
1242 | 1241 | | |
1243 | 1242 | | |
| |||
1573 | 1572 | | |
1574 | 1573 | | |
1575 | 1574 | | |
1576 | | - | |
| 1575 | + | |
1577 | 1576 | | |
1578 | 1577 | | |
1579 | 1578 | | |
| |||
2483 | 2482 | | |
2484 | 2483 | | |
2485 | 2484 | | |
2486 | | - | |
| 2485 | + | |
2487 | 2486 | | |
2488 | 2487 | | |
2489 | 2488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2952 | 2952 | | |
2953 | 2953 | | |
2954 | 2954 | | |
2955 | | - | |
| 2955 | + | |
2956 | 2956 | | |
2957 | 2957 | | |
2958 | 2958 | | |
| |||
5187 | 5187 | | |
5188 | 5188 | | |
5189 | 5189 | | |
| 5190 | + | |
5190 | 5191 | | |
5191 | 5192 | | |
5192 | 5193 | | |
| |||
5240 | 5241 | | |
5241 | 5242 | | |
5242 | 5243 | | |
| 5244 | + | |
5243 | 5245 | | |
5244 | 5246 | | |
5245 | 5247 | | |
| |||
6182 | 6184 | | |
6183 | 6185 | | |
6184 | 6186 | | |
| 6187 | + | |
| 6188 | + | |
| 6189 | + | |
| 6190 | + | |
| 6191 | + | |
6185 | 6192 | | |
6186 | 6193 | | |
6187 | 6194 | | |
| |||
7156 | 7163 | | |
7157 | 7164 | | |
7158 | 7165 | | |
| 7166 | + | |
| 7167 | + | |
| 7168 | + | |
| 7169 | + | |
| 7170 | + | |
| 7171 | + | |
| 7172 | + | |
| 7173 | + | |
7159 | 7174 | | |
7160 | 7175 | | |
7161 | 7176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| 790 | + | |
790 | 791 | | |
791 | 792 | | |
792 | 793 | | |
| |||
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1147 | 1154 | | |
1148 | 1155 | | |
1149 | 1156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
559 | 565 | | |
560 | 566 | | |
561 | 567 | | |
| |||
0 commit comments