Commit fc4b8fc
perf/x86: Hybrid PMU support for intel_ctrl
The intel_ctrl is the counter mask of a PMU. The PMU counter information
may be different among hybrid PMUs, each hybrid PMU should use its own
intel_ctrl to check and access the counters.
When handling a certain hybrid PMU, apply the intel_ctrl from the
corresponding hybrid PMU.
When checking the HW existence, apply the PMU and number of counters
from the corresponding hybrid PMU as well. Perf will check the HW
existence for each Hybrid PMU before registration. Expose the
check_hw_exists() for a later patch.
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>
Link: https://lkml.kernel.org/r/1618237865-33448-6-git-send-email-kan.liang@linux.intel.com1 parent d0946a8 commit fc4b8fc
3 files changed
+24
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
| 264 | + | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
1550 | | - | |
| 1550 | + | |
1551 | 1551 | | |
1552 | 1552 | | |
1553 | 1553 | | |
| |||
1992 | 1992 | | |
1993 | 1993 | | |
1994 | 1994 | | |
1995 | | - | |
| 1995 | + | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | 1998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2153 | 2153 | | |
2154 | 2154 | | |
2155 | 2155 | | |
| 2156 | + | |
2156 | 2157 | | |
2157 | 2158 | | |
2158 | 2159 | | |
2159 | | - | |
| 2160 | + | |
2160 | 2161 | | |
2161 | 2162 | | |
2162 | 2163 | | |
| |||
2709 | 2710 | | |
2710 | 2711 | | |
2711 | 2712 | | |
| 2713 | + | |
2712 | 2714 | | |
2713 | 2715 | | |
2714 | 2716 | | |
| |||
2724 | 2726 | | |
2725 | 2727 | | |
2726 | 2728 | | |
2727 | | - | |
| 2729 | + | |
2728 | 2730 | | |
2729 | 2731 | | |
2730 | 2732 | | |
| |||
2753 | 2755 | | |
2754 | 2756 | | |
2755 | 2757 | | |
| 2758 | + | |
2756 | 2759 | | |
2757 | 2760 | | |
2758 | 2761 | | |
| |||
2798 | 2801 | | |
2799 | 2802 | | |
2800 | 2803 | | |
2801 | | - | |
| 2804 | + | |
2802 | 2805 | | |
2803 | 2806 | | |
2804 | 2807 | | |
| |||
3804 | 3807 | | |
3805 | 3808 | | |
3806 | 3809 | | |
| 3810 | + | |
3807 | 3811 | | |
3808 | 3812 | | |
3809 | | - | |
3810 | | - | |
| 3813 | + | |
| 3814 | + | |
3811 | 3815 | | |
3812 | 3816 | | |
3813 | 3817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| 637 | + | |
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
| |||
998 | 999 | | |
999 | 1000 | | |
1000 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
1001 | 1005 | | |
1002 | 1006 | | |
1003 | 1007 | | |
| |||
1102 | 1106 | | |
1103 | 1107 | | |
1104 | 1108 | | |
1105 | | - | |
| 1109 | + | |
1106 | 1110 | | |
1107 | | - | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1108 | 1114 | | |
1109 | 1115 | | |
1110 | 1116 | | |
| |||
0 commit comments