Commit 794236c
committed
perf/x86/intel: Support the PEBS event mask
JIRA: https://issues.redhat.com/browse/RHEL-20059
upstream
========
commit a23eb2f
Author: Kan Liang <kan.liang@linux.intel.com>
Date: Wed Jun 26 07:35:33 2024 -0700
description
===========
The current perf assumes that the counters that support PEBS are
contiguous. But it's not guaranteed with the new leaf 0x23 introduced.
The counters are enumerated with a counter mask. There may be holes in
the counter mask for future platforms or in a virtualization
environment.
Store the PEBS event mask rather than the maximum number of PEBS
counters in the x86 PMU structures.
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-2-kan.liang@linux.intel.com
Signed-off-by: Michael Petlan <mpetlan@redhat.com>1 parent 9063058 commit 794236c
File tree
4 files changed
+26
-13
lines changed- arch/x86
- events
- intel
- include/asm
4 files changed
+26
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4727 | 4727 | | |
4728 | 4728 | | |
4729 | 4729 | | |
4730 | | - | |
| 4730 | + | |
4731 | 4731 | | |
4732 | 4732 | | |
4733 | 4733 | | |
| |||
6076 | 6076 | | |
6077 | 6077 | | |
6078 | 6078 | | |
6079 | | - | |
| 6079 | + | |
6080 | 6080 | | |
6081 | 6081 | | |
6082 | 6082 | | |
| |||
6199 | 6199 | | |
6200 | 6200 | | |
6201 | 6201 | | |
6202 | | - | |
| 6202 | + | |
6203 | 6203 | | |
6204 | 6204 | | |
6205 | 6205 | | |
| |||
6828 | 6828 | | |
6829 | 6829 | | |
6830 | 6830 | | |
6831 | | - | |
| 6831 | + | |
6832 | 6832 | | |
6833 | 6833 | | |
6834 | 6834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
| 1139 | + | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| |||
2156 | 2156 | | |
2157 | 2157 | | |
2158 | 2158 | | |
| 2159 | + | |
2159 | 2160 | | |
2160 | 2161 | | |
2161 | 2162 | | |
| |||
2167 | 2168 | | |
2168 | 2169 | | |
2169 | 2170 | | |
2170 | | - | |
2171 | | - | |
| 2171 | + | |
| 2172 | + | |
2172 | 2173 | | |
2173 | 2174 | | |
2174 | 2175 | | |
| |||
2207 | 2208 | | |
2208 | 2209 | | |
2209 | 2210 | | |
2210 | | - | |
2211 | | - | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
2212 | 2214 | | |
2213 | 2215 | | |
2214 | 2216 | | |
| |||
2266 | 2268 | | |
2267 | 2269 | | |
2268 | 2270 | | |
2269 | | - | |
2270 | 2271 | | |
2271 | 2272 | | |
2272 | 2273 | | |
| |||
2282 | 2283 | | |
2283 | 2284 | | |
2284 | 2285 | | |
2285 | | - | |
| 2286 | + | |
2286 | 2287 | | |
2287 | 2288 | | |
2288 | 2289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
| 687 | + | |
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | | - | |
| 855 | + | |
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1651 | 1662 | | |
1652 | 1663 | | |
1653 | 1664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments