Skip to content

Commit 788c516

Browse files
captain5050weilinwacalebbiggers
authored andcommitted
perf vendor events: Add westmereex counter information
Add counter information necessary for optimizing event grouping the perf tool. The most recent RFC patch set using this information: https://lore.kernel.org/lkml/20240412210756.309828-1-weilin.wang@intel.com/ The information was added in: intel/perfmon@475892a and later patches. Co-authored-by: Weilin Wang <weilin.wang@intel.com> Co-authored-by: Caleb Biggers <caleb.biggers@intel.com> Signed-off-by: Ian Rogers <irogers@google.com> Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20240620181752.3945845-38-irogers@google.com
1 parent dc5f18a commit 788c516

File tree

8 files changed

+586
-0
lines changed

8 files changed

+586
-0
lines changed

tools/perf/pmu-events/arch/x86/westmereex/cache.json

Lines changed: 320 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"Unit": "core",
4+
"CountersNumFixed": "4",
5+
"CountersNumGeneric": "4"
6+
}
7+
]

tools/perf/pmu-events/arch/x86/westmereex/floating-point.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"BriefDescription": "X87 Floating point assists (Precise Event)",
4+
"Counter": "0,1,2,3",
45
"EventCode": "0xF7",
56
"EventName": "FP_ASSIST.ALL",
67
"PEBS": "1",
@@ -9,6 +10,7 @@
910
},
1011
{
1112
"BriefDescription": "X87 Floating point assists for invalid input value (Precise Event)",
13+
"Counter": "0,1,2,3",
1214
"EventCode": "0xF7",
1315
"EventName": "FP_ASSIST.INPUT",
1416
"PEBS": "1",
@@ -17,6 +19,7 @@
1719
},
1820
{
1921
"BriefDescription": "X87 Floating point assists for invalid output value (Precise Event)",
22+
"Counter": "0,1,2,3",
2023
"EventCode": "0xF7",
2124
"EventName": "FP_ASSIST.OUTPUT",
2225
"PEBS": "1",
@@ -25,174 +28,199 @@
2528
},
2629
{
2730
"BriefDescription": "MMX Uops",
31+
"Counter": "0,1,2,3",
2832
"EventCode": "0x10",
2933
"EventName": "FP_COMP_OPS_EXE.MMX",
3034
"SampleAfterValue": "2000000",
3135
"UMask": "0x2"
3236
},
3337
{
3438
"BriefDescription": "SSE2 integer Uops",
39+
"Counter": "0,1,2,3",
3540
"EventCode": "0x10",
3641
"EventName": "FP_COMP_OPS_EXE.SSE2_INTEGER",
3742
"SampleAfterValue": "2000000",
3843
"UMask": "0x8"
3944
},
4045
{
4146
"BriefDescription": "SSE* FP double precision Uops",
47+
"Counter": "0,1,2,3",
4248
"EventCode": "0x10",
4349
"EventName": "FP_COMP_OPS_EXE.SSE_DOUBLE_PRECISION",
4450
"SampleAfterValue": "2000000",
4551
"UMask": "0x80"
4652
},
4753
{
4854
"BriefDescription": "SSE and SSE2 FP Uops",
55+
"Counter": "0,1,2,3",
4956
"EventCode": "0x10",
5057
"EventName": "FP_COMP_OPS_EXE.SSE_FP",
5158
"SampleAfterValue": "2000000",
5259
"UMask": "0x4"
5360
},
5461
{
5562
"BriefDescription": "SSE FP packed Uops",
63+
"Counter": "0,1,2,3",
5664
"EventCode": "0x10",
5765
"EventName": "FP_COMP_OPS_EXE.SSE_FP_PACKED",
5866
"SampleAfterValue": "2000000",
5967
"UMask": "0x10"
6068
},
6169
{
6270
"BriefDescription": "SSE FP scalar Uops",
71+
"Counter": "0,1,2,3",
6372
"EventCode": "0x10",
6473
"EventName": "FP_COMP_OPS_EXE.SSE_FP_SCALAR",
6574
"SampleAfterValue": "2000000",
6675
"UMask": "0x20"
6776
},
6877
{
6978
"BriefDescription": "SSE* FP single precision Uops",
79+
"Counter": "0,1,2,3",
7080
"EventCode": "0x10",
7181
"EventName": "FP_COMP_OPS_EXE.SSE_SINGLE_PRECISION",
7282
"SampleAfterValue": "2000000",
7383
"UMask": "0x40"
7484
},
7585
{
7686
"BriefDescription": "Computational floating-point operations executed",
87+
"Counter": "0,1,2,3",
7788
"EventCode": "0x10",
7889
"EventName": "FP_COMP_OPS_EXE.X87",
7990
"SampleAfterValue": "2000000",
8091
"UMask": "0x1"
8192
},
8293
{
8394
"BriefDescription": "All Floating Point to and from MMX transitions",
95+
"Counter": "0,1,2,3",
8496
"EventCode": "0xCC",
8597
"EventName": "FP_MMX_TRANS.ANY",
8698
"SampleAfterValue": "2000000",
8799
"UMask": "0x3"
88100
},
89101
{
90102
"BriefDescription": "Transitions from MMX to Floating Point instructions",
103+
"Counter": "0,1,2,3",
91104
"EventCode": "0xCC",
92105
"EventName": "FP_MMX_TRANS.TO_FP",
93106
"SampleAfterValue": "2000000",
94107
"UMask": "0x1"
95108
},
96109
{
97110
"BriefDescription": "Transitions from Floating Point to MMX instructions",
111+
"Counter": "0,1,2,3",
98112
"EventCode": "0xCC",
99113
"EventName": "FP_MMX_TRANS.TO_MMX",
100114
"SampleAfterValue": "2000000",
101115
"UMask": "0x2"
102116
},
103117
{
104118
"BriefDescription": "128 bit SIMD integer pack operations",
119+
"Counter": "0,1,2,3",
105120
"EventCode": "0x12",
106121
"EventName": "SIMD_INT_128.PACK",
107122
"SampleAfterValue": "200000",
108123
"UMask": "0x4"
109124
},
110125
{
111126
"BriefDescription": "128 bit SIMD integer arithmetic operations",
127+
"Counter": "0,1,2,3",
112128
"EventCode": "0x12",
113129
"EventName": "SIMD_INT_128.PACKED_ARITH",
114130
"SampleAfterValue": "200000",
115131
"UMask": "0x20"
116132
},
117133
{
118134
"BriefDescription": "128 bit SIMD integer logical operations",
135+
"Counter": "0,1,2,3",
119136
"EventCode": "0x12",
120137
"EventName": "SIMD_INT_128.PACKED_LOGICAL",
121138
"SampleAfterValue": "200000",
122139
"UMask": "0x10"
123140
},
124141
{
125142
"BriefDescription": "128 bit SIMD integer multiply operations",
143+
"Counter": "0,1,2,3",
126144
"EventCode": "0x12",
127145
"EventName": "SIMD_INT_128.PACKED_MPY",
128146
"SampleAfterValue": "200000",
129147
"UMask": "0x1"
130148
},
131149
{
132150
"BriefDescription": "128 bit SIMD integer shift operations",
151+
"Counter": "0,1,2,3",
133152
"EventCode": "0x12",
134153
"EventName": "SIMD_INT_128.PACKED_SHIFT",
135154
"SampleAfterValue": "200000",
136155
"UMask": "0x2"
137156
},
138157
{
139158
"BriefDescription": "128 bit SIMD integer shuffle/move operations",
159+
"Counter": "0,1,2,3",
140160
"EventCode": "0x12",
141161
"EventName": "SIMD_INT_128.SHUFFLE_MOVE",
142162
"SampleAfterValue": "200000",
143163
"UMask": "0x40"
144164
},
145165
{
146166
"BriefDescription": "128 bit SIMD integer unpack operations",
167+
"Counter": "0,1,2,3",
147168
"EventCode": "0x12",
148169
"EventName": "SIMD_INT_128.UNPACK",
149170
"SampleAfterValue": "200000",
150171
"UMask": "0x8"
151172
},
152173
{
153174
"BriefDescription": "SIMD integer 64 bit pack operations",
175+
"Counter": "0,1,2,3",
154176
"EventCode": "0xFD",
155177
"EventName": "SIMD_INT_64.PACK",
156178
"SampleAfterValue": "200000",
157179
"UMask": "0x4"
158180
},
159181
{
160182
"BriefDescription": "SIMD integer 64 bit arithmetic operations",
183+
"Counter": "0,1,2,3",
161184
"EventCode": "0xFD",
162185
"EventName": "SIMD_INT_64.PACKED_ARITH",
163186
"SampleAfterValue": "200000",
164187
"UMask": "0x20"
165188
},
166189
{
167190
"BriefDescription": "SIMD integer 64 bit logical operations",
191+
"Counter": "0,1,2,3",
168192
"EventCode": "0xFD",
169193
"EventName": "SIMD_INT_64.PACKED_LOGICAL",
170194
"SampleAfterValue": "200000",
171195
"UMask": "0x10"
172196
},
173197
{
174198
"BriefDescription": "SIMD integer 64 bit packed multiply operations",
199+
"Counter": "0,1,2,3",
175200
"EventCode": "0xFD",
176201
"EventName": "SIMD_INT_64.PACKED_MPY",
177202
"SampleAfterValue": "200000",
178203
"UMask": "0x1"
179204
},
180205
{
181206
"BriefDescription": "SIMD integer 64 bit shift operations",
207+
"Counter": "0,1,2,3",
182208
"EventCode": "0xFD",
183209
"EventName": "SIMD_INT_64.PACKED_SHIFT",
184210
"SampleAfterValue": "200000",
185211
"UMask": "0x2"
186212
},
187213
{
188214
"BriefDescription": "SIMD integer 64 bit shuffle/move operations",
215+
"Counter": "0,1,2,3",
189216
"EventCode": "0xFD",
190217
"EventName": "SIMD_INT_64.SHUFFLE_MOVE",
191218
"SampleAfterValue": "200000",
192219
"UMask": "0x40"
193220
},
194221
{
195222
"BriefDescription": "SIMD integer 64 bit unpack operations",
223+
"Counter": "0,1,2,3",
196224
"EventCode": "0xFD",
197225
"EventName": "SIMD_INT_64.UNPACK",
198226
"SampleAfterValue": "200000",

tools/perf/pmu-events/arch/x86/westmereex/frontend.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
[
22
{
33
"BriefDescription": "Instructions decoded",
4+
"Counter": "0,1,2,3",
45
"EventCode": "0xD0",
56
"EventName": "MACRO_INSTS.DECODED",
67
"SampleAfterValue": "2000000",
78
"UMask": "0x1"
89
},
910
{
1011
"BriefDescription": "Macro-fused instructions decoded",
12+
"Counter": "0,1,2,3",
1113
"EventCode": "0xA6",
1214
"EventName": "MACRO_INSTS.FUSIONS_DECODED",
1315
"SampleAfterValue": "2000000",
1416
"UMask": "0x1"
1517
},
1618
{
1719
"BriefDescription": "Two Uop instructions decoded",
20+
"Counter": "0,1,2,3",
1821
"EventCode": "0x19",
1922
"EventName": "TWO_UOP_INSTS_DECODED",
2023
"SampleAfterValue": "2000000",

0 commit comments

Comments
 (0)