Commit 80dac20
committed
perf/x86/intel: Support PERFEVTSEL extension
JIRA: https://issues.redhat.com/browse/RHEL-20059
upstream
========
commit dce0c74
Author: Kan Liang <kan.liang@linux.intel.com>
Date: Wed Jun 26 07:35:39 2024 -0700
description
===========
Two new fields (the unit mask2, and the equal flag) are added in the
IA32_PERFEVTSELx MSRs. They can be enumerated by the CPUID.23H.0.EBX.
Update the config_mask in x86_pmu and x86_hybrid_pmu for the true layout
of the PERFEVTSEL.
Expose the new formats into sysfs if they are available. The umask
extension reuses the same format attr name "umask" as the previous
umask. Add umask2_show to determine/display the correct format
for the current machine.
Co-developed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
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-8-kan.liang@linux.intel.com
Signed-off-by: Michael Petlan <mpetlan@redhat.com>1 parent 063f320 commit 80dac20
2 files changed
+69
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4631 | 4631 | | |
4632 | 4632 | | |
4633 | 4633 | | |
4634 | | - | |
4635 | | - | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
4636 | 4683 | | |
4637 | 4684 | | |
4638 | 4685 | | |
| |||
4785 | 4832 | | |
4786 | 4833 | | |
4787 | 4834 | | |
4788 | | - | |
4789 | | - | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
| 4842 | + | |
4790 | 4843 | | |
4791 | 4844 | | |
4792 | 4845 | | |
| |||
5816 | 5869 | | |
5817 | 5870 | | |
5818 | 5871 | | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
| 5876 | + | |
| 5877 | + | |
5819 | 5878 | | |
5820 | 5879 | | |
5821 | 5880 | | |
| |||
5829 | 5888 | | |
5830 | 5889 | | |
5831 | 5890 | | |
| 5891 | + | |
5832 | 5892 | | |
5833 | 5893 | | |
5834 | 5894 | | |
| |||
6048 | 6108 | | |
6049 | 6109 | | |
6050 | 6110 | | |
| 6111 | + | |
6051 | 6112 | | |
6052 | 6113 | | |
6053 | 6114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
0 commit comments