Skip to content

Commit ce3d5af

Browse files
Kotaro, Tokainamhyung
authored andcommitted
perf vendor events arm64: Update FUJITSU-MONAKA pmu event
Update pmu events for FUJITSU-MONAKA. And, also updated common-and-microarch.json. FUJITSU-MONAKA PMU Events Specification v1.1 and Errata v1.0 URL: https://github.com/fujitsu/FUJITSU-MONAKA Arm Architecture Reference Version L.b URL: https://developer.arm.com/documentation/ddi0487/lb/?lang=en Signed-off-by: Kotaro, Tokai <[email protected]> Reviewed-by: James Clark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent ae07569 commit ce3d5af

15 files changed

+265
-144
lines changed

tools/perf/pmu-events/arch/arm64/common-and-microarch.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,5 +1833,75 @@
18331833
"EventCode": "0x8324",
18341834
"EventName": "L1I_CACHE_REFILL_PERCYC",
18351835
"BriefDescription": "Level 1 instruction or unified cache refills in progress."
1836+
},
1837+
{
1838+
"EventCode": "0x8431",
1839+
"EventName": "ASE_FP_VREDUCE_SPEC",
1840+
"BriefDescription": "Floating-point operation_speculatively_executed, Advanced SIMD pairwise or reduction."
1841+
},
1842+
{
1843+
"EventCode": "0x8432",
1844+
"EventName": "SVE_FP_PREDUCE_SPEC",
1845+
"BriefDescription": "Floating-point operation_speculatively_executed, Advanced SIMD pairwise add step or pairwise reduce step."
1846+
},
1847+
{
1848+
"EventCode": "0x8443",
1849+
"EventName": "ASE_FP_BF16_MIN_SPEC",
1850+
"BriefDescription": "Advanced SIMD data processing operation speculatively_executed, smallest type is BFloat16 floating-point."
1851+
},
1852+
{
1853+
"EventCode": "0x8444",
1854+
"EventName": "ASE_FP_FP8_MIN_SPEC",
1855+
"BriefDescription": "Advanced SIMD data processing operation speculatively_executed, smallest type is 8-bit floating-point."
1856+
},
1857+
{
1858+
"EventCode": "0x844B",
1859+
"EventName": "ASE_SVE_FP_BF16_MIN_SPEC",
1860+
"BriefDescription": "Advanced SIMD data processing or SVE data processing operation speculatively_executed, smallest type is BFloat16 floating-point."
1861+
},
1862+
{
1863+
"EventCode": "0x844C",
1864+
"EventName": "ASE_SVE_FP_FP8_MIN_SPEC",
1865+
"BriefDescription": "Advanced SIMD data processing or SVE data processing operation speculatively_executed, smallest type is 8-bit floating-point."
1866+
},
1867+
{
1868+
"EventCode": "0x8463",
1869+
"EventName": "SVE_FP_BF16_MIN_SPEC",
1870+
"BriefDescription": "SVE data processing operation speculatively_executed, smallest type is BFloat16 floating-point."
1871+
},
1872+
{
1873+
"EventCode": "0x8464",
1874+
"EventName": "SVE_FP_FP8_MIN_SPEC",
1875+
"BriefDescription": "SVE data processing operation speculatively_executed, smallest type is 8-bit floating-point."
1876+
},
1877+
{
1878+
"EventCode": "0x8473",
1879+
"EventName": "FP_BF16_MIN_SPEC",
1880+
"BriefDescription": "Floating-point operation speculatively_executed, smallest type is BFloat16 floating-point."
1881+
},
1882+
{
1883+
"EventCode": "0x8474",
1884+
"EventName": "FP_FP8_MIN_SPEC",
1885+
"BriefDescription": "Floating-point operation speculatively_executed, smallest type is 8-bit floating-point."
1886+
},
1887+
{
1888+
"EventCode": "0x8483",
1889+
"EventName": "FP_BF16_FIXED_MIN_OPS_SPEC",
1890+
"BriefDescription": "Non-scalable element arithmetic operations speculatively executed, smallest type is BFloat16 floating-point."
1891+
},
1892+
{
1893+
"EventCode": "0x8484",
1894+
"EventName": "FP_FP8_FIXED_MIN_OPS_SPEC",
1895+
"BriefDescription": "Non-scalable element arithmetic operations speculatively executed, smallest type is 8-bit floating-point."
1896+
},
1897+
{
1898+
"EventCode": "0x848B",
1899+
"EventName": "FP_BF16_SCALE_MIN_OPS_SPEC",
1900+
"BriefDescription": "Scalable element arithmetic operations speculatively executed, smallest type is BFloat16 floating-point."
1901+
},
1902+
{
1903+
"EventCode": "0x848C",
1904+
"EventName": "FP_FP8_SCALE_MIN_OPS_SPEC",
1905+
"BriefDescription": "Scalable element arithmetic operations speculatively executed, smallest type is 8-bit floating-point."
18361906
}
18371907
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
33
"ArchStdEvent": "L1I_CACHE_PRF",
4-
"BriefDescription": "This event counts fetch counted by either Level 1 instruction hardware prefetch or Level 1 instruction software prefetch."
4+
"BriefDescription": "This event counts L1I_CACHE caused by hardware prefetch or software prefetch."
55
}
66
]

tools/perf/pmu-events/arch/arm64/fujitsu/monaka/cycle_accounting.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
{
1313
"EventCode": "0x0184",
1414
"EventName": "LD_COMP_WAIT",
15-
"BriefDescription": "This event counts every cycle that no instruction was committed because the oldest and uncommitted load/store/prefetch operation waits for L1D cache, L2 cache and memory access."
15+
"BriefDescription": "This event counts every cycle that no instruction was committed because the oldest and uncommitted load/store/prefetch operation waits for L1D cache, L2 cache, L3 cache and memory access."
1616
},
1717
{
1818
"EventCode": "0x0185",
1919
"EventName": "LD_COMP_WAIT_EX",
20-
"BriefDescription": "This event counts every cycle that no instruction was committed because the oldest and uncommitted integer load operation waits for L1D cache, L2 cache and memory access."
20+
"BriefDescription": "This event counts every cycle that no instruction was committed because the oldest and uncommitted integer load operation waits for L1D cache, L2 cache, L3 cache and memory access."
2121
},
2222
{
2323
"EventCode": "0x0186",

tools/perf/pmu-events/arch/arm64/fujitsu/monaka/exception.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"ArchStdEvent": "EXC_SMC",
36-
"BriefDescription": "This event counts only Secure Monitor Call exceptions. The counter does not increment on SMC instructions trapped as a Hyp Trap exception."
36+
"BriefDescription": "This event counts only Secure Monitor Call exceptions. This event does not increment on SMC instructions trapped as a Hyp Trap exception."
3737
},
3838
{
3939
"ArchStdEvent": "EXC_HVC",

tools/perf/pmu-events/arch/arm64/fujitsu/monaka/fp_operation.json

Lines changed: 77 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"EventCode": "0x0105",
44
"EventName": "FP_MV_SPEC",
5-
"BriefDescription": "This event counts architecturally executed floating-point move operations."
5+
"BriefDescription": "This event counts architecturally executed floating-point move operation."
66
},
77
{
88
"EventCode": "0x0112",
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"ArchStdEvent": "ASE_SVE_FP_SPEC",
27-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point operations."
27+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point operation."
2828
},
2929
{
3030
"ArchStdEvent": "FP_HP_SPEC",
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"ArchStdEvent": "ASE_SVE_FP_HP_SPEC",
43-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE half-precision floating-point operations."
43+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE half-precision floating-point operation."
4444
},
4545
{
4646
"ArchStdEvent": "FP_SP_SPEC",
@@ -56,7 +56,7 @@
5656
},
5757
{
5858
"ArchStdEvent": "ASE_SVE_FP_SP_SPEC",
59-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE single-precision floating-point operations."
59+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE single-precision floating-point operation."
6060
},
6161
{
6262
"ArchStdEvent": "FP_DP_SPEC",
@@ -72,7 +72,7 @@
7272
},
7373
{
7474
"ArchStdEvent": "ASE_SVE_FP_DP_SPEC",
75-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE double-precision floating-point operations."
75+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE double-precision floating-point operation."
7676
},
7777
{
7878
"ArchStdEvent": "FP_DIV_SPEC",
@@ -88,7 +88,7 @@
8888
},
8989
{
9090
"ArchStdEvent": "ASE_SVE_FP_DIV_SPEC",
91-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point divide operations."
91+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point divide operation."
9292
},
9393
{
9494
"ArchStdEvent": "FP_SQRT_SPEC",
@@ -104,7 +104,7 @@
104104
},
105105
{
106106
"ArchStdEvent": "ASE_SVE_FP_SQRT_SPEC",
107-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point square root operations."
107+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point square root operation."
108108
},
109109
{
110110
"ArchStdEvent": "ASE_FP_FMA_SPEC",
@@ -116,11 +116,11 @@
116116
},
117117
{
118118
"ArchStdEvent": "ASE_SVE_FP_FMA_SPEC",
119-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point FMA operations."
119+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point FMA operation."
120120
},
121121
{
122122
"ArchStdEvent": "FP_MUL_SPEC",
123-
"BriefDescription": "This event counts architecturally executed floating-point multiply operations."
123+
"BriefDescription": "This event counts architecturally executed floating-point multiply operation."
124124
},
125125
{
126126
"ArchStdEvent": "ASE_FP_MUL_SPEC",
@@ -132,11 +132,11 @@
132132
},
133133
{
134134
"ArchStdEvent": "ASE_SVE_FP_MUL_SPEC",
135-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point multiply operations."
135+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point multiply operation."
136136
},
137137
{
138138
"ArchStdEvent": "FP_ADDSUB_SPEC",
139-
"BriefDescription": "This event counts architecturally executed floating-point add or subtract operations."
139+
"BriefDescription": "This event counts architecturally executed floating-point add or subtract operation."
140140
},
141141
{
142142
"ArchStdEvent": "ASE_FP_ADDSUB_SPEC",
@@ -148,19 +148,19 @@
148148
},
149149
{
150150
"ArchStdEvent": "ASE_SVE_FP_ADDSUB_SPEC",
151-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point add or subtract operations."
151+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point add or subtract operation."
152152
},
153153
{
154154
"ArchStdEvent": "ASE_FP_RECPE_SPEC",
155-
"BriefDescription": "This event counts architecturally executed Advanced SIMD floating-point reciprocal estimate operations."
155+
"BriefDescription": "This event counts architecturally executed Advanced SIMD floating-point reciprocal estimate operation."
156156
},
157157
{
158158
"ArchStdEvent": "SVE_FP_RECPE_SPEC",
159-
"BriefDescription": "This event counts architecturally executed SVE floating-point reciprocal estimate operations."
159+
"BriefDescription": "This event counts architecturally executed SVE floating-point reciprocal estimate operation."
160160
},
161161
{
162162
"ArchStdEvent": "ASE_SVE_FP_RECPE_SPEC",
163-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point reciprocal estimate operations."
163+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point reciprocal estimate operation."
164164
},
165165
{
166166
"ArchStdEvent": "ASE_FP_CVT_SPEC",
@@ -172,31 +172,31 @@
172172
},
173173
{
174174
"ArchStdEvent": "ASE_SVE_FP_CVT_SPEC",
175-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point convert operations."
175+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point convert operation."
176176
},
177177
{
178178
"ArchStdEvent": "SVE_FP_AREDUCE_SPEC",
179-
"BriefDescription": "This event counts architecturally executed SVE floating-point accumulating reduction operations."
179+
"BriefDescription": "This event counts architecturally executed SVE floating-point accumulating reduction operation."
180180
},
181181
{
182182
"ArchStdEvent": "ASE_FP_PREDUCE_SPEC",
183-
"BriefDescription": "This event counts architecturally executed Advanced SIMD floating-point pairwise add step operations."
183+
"BriefDescription": "This event counts architecturally executed Advanced SIMD floating-point pairwise add step operation."
184184
},
185185
{
186186
"ArchStdEvent": "SVE_FP_VREDUCE_SPEC",
187187
"BriefDescription": "This event counts architecturally executed SVE floating-point vector reduction operation."
188188
},
189189
{
190190
"ArchStdEvent": "ASE_SVE_FP_VREDUCE_SPEC",
191-
"BriefDescription": "This event counts architecturally executed Advanced SIMD and SVE floating-point vector reduction operations."
191+
"BriefDescription": "This event counts architecturally executed Advanced SIMD or SVE floating-point vector reduction operation."
192192
},
193193
{
194194
"ArchStdEvent": "FP_SCALE_OPS_SPEC",
195-
"BriefDescription": "This event counts architecturally executed SVE arithmetic operations. See FP_SCALE_OPS_SPEC of ARMv9 Reference Manual for more information. This event counter is incremented by (128 / CSIZE) and by twice that amount for operations that would also be counted by SVE_FP_FMA_SPEC."
195+
"BriefDescription": "This event counts architecturally executed SVE arithmetic operation. See FP_SCALE_OPS_SPEC of ARMv9 Reference Manual for more information. This event counter is incremented by (128 / CSIZE) and by twice that amount for operations that would also be counted by SVE_FP_FMA_SPEC."
196196
},
197197
{
198198
"ArchStdEvent": "FP_FIXED_OPS_SPEC",
199-
"BriefDescription": "This event counts architecturally executed v8SIMD&FP arithmetic operations. See FP_FIXED_OPS_SPEC of ARMv9 Reference Manual for more information. The event counter is incremented by the specified number of elements for Advanced SIMD operations or by 1 for scalar operations, and by twice those amounts for operations that would also be counted by FP_FMA_SPEC."
199+
"BriefDescription": "This event counts architecturally executed v8SIMD&FP arithmetic operation. See FP_FIXED_OPS_SPEC of ARMv9 Reference Manual for more information. This event counter is incremented by the specified number of elements for Advanced SIMD operations or by 1 for scalar operations, and by twice those amounts for operations that would also be counted by FP_FMA_SPEC."
200200
},
201201
{
202202
"ArchStdEvent": "ASE_SVE_FP_DOT_SPEC",
@@ -205,5 +205,61 @@
205205
{
206206
"ArchStdEvent": "ASE_SVE_FP_MMLA_SPEC",
207207
"BriefDescription": "This event counts architecturally executed microarchitectural Advanced SIMD or SVE floating-point matrix multiply operation."
208+
},
209+
{
210+
"ArchStdEvent": "ASE_FP_VREDUCE_SPEC",
211+
"BriefDescription": "This event counts architecturally executed Advanced SIMD floating-point vector reduction operation."
212+
},
213+
{
214+
"ArchStdEvent": "SVE_FP_PREDUCE_SPEC",
215+
"BriefDescription": "This event counts architecturally executed SVE floating-point pairwise add step operation."
216+
},
217+
{
218+
"ArchStdEvent": "ASE_FP_BF16_MIN_SPEC",
219+
"BriefDescription": "This event counts architecturally executed Advanced SIMD data processing operations, smallest type is BFloat16 floating-point."
220+
},
221+
{
222+
"ArchStdEvent": "ASE_FP_FP8_MIN_SPEC",
223+
"BriefDescription": "This event counts architecturally executed Advanced SIMD data processing operations, smallest type is 8-bit floating-point."
224+
},
225+
{
226+
"ArchStdEvent": "ASE_SVE_FP_BF16_MIN_SPEC",
227+
"BriefDescription": "This event counts architecturally executed Advanced SIMD data processing or SVE data processing operations, smallest type is BFloat16 floating-point."
228+
},
229+
{
230+
"ArchStdEvent": "ASE_SVE_FP_FP8_MIN_SPEC",
231+
"BriefDescription": "This event counts architecturally executed Advanced SIMD data processing or SVE data processing operations, smallest type is 8-bit floating-point."
232+
},
233+
{
234+
"ArchStdEvent": "SVE_FP_BF16_MIN_SPEC",
235+
"BriefDescription": "This event counts architecturally executed SVE data processing operations, smallest type is BFloat16 floating-point."
236+
},
237+
{
238+
"ArchStdEvent": "SVE_FP_FP8_MIN_SPEC",
239+
"BriefDescription": "This event counts architecturally executed SVE data processing operations, smallest type is 8-bit floating-point."
240+
},
241+
{
242+
"ArchStdEvent": "FP_BF16_MIN_SPEC",
243+
"BriefDescription": "This event counts architecturally executed data processing operations, smallest type is BFloat16 floating-point."
244+
},
245+
{
246+
"ArchStdEvent": "FP_FP8_MIN_SPEC",
247+
"BriefDescription": "This event counts architecturally executed data processing operations, smallest type is 8-bit floating-point."
248+
},
249+
{
250+
"ArchStdEvent": "FP_BF16_FIXED_MIN_OPS_SPEC",
251+
"BriefDescription": "This event counts architecturally executed non-scalable element arithmetic operations, smallest type is BFloat16 floating-point."
252+
},
253+
{
254+
"ArchStdEvent": "FP_FP8_FIXED_MIN_OPS_SPEC",
255+
"BriefDescription": "This event counts architecturally executed non-scalable element arithmetic operations, smallest type is 8-bit floating-point."
256+
},
257+
{
258+
"ArchStdEvent": "FP_BF16_SCALE_MIN_OPS_SPEC",
259+
"BriefDescription": "This event counts architecturally executed scalable element arithmetic operations, smallest type is BFloat16 floating-point."
260+
},
261+
{
262+
"ArchStdEvent": "FP_FP8_SCALE_MIN_OPS_SPEC",
263+
"BriefDescription": "This event counts architecturally executed scalable element arithmetic operations, smallest type is 8-bit floating-point."
208264
}
209265
]

tools/perf/pmu-events/arch/arm64/fujitsu/monaka/l1d_cache.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
},
7373
{
7474
"ArchStdEvent": "L1D_CACHE_HWPRF",
75-
"BriefDescription": "This event counts access counted by L1D_CACHE that is due to a hardware prefetch."
75+
"BriefDescription": "This event counts L1D_CACHE caused by hardware prefetch."
7676
},
7777
{
7878
"ArchStdEvent": "L1D_CACHE_REFILL_HWPRF",
79-
"BriefDescription": "This event counts hardware prefetch counted by L1D_CACHE_HWPRF that causes a refill of the Level 1 data cache from outside of the Level 1 data cache."
79+
"BriefDescription": "This event counts L1D_CACHE_REFILL caused by hardware prefetch."
8080
},
8181
{
8282
"ArchStdEvent": "L1D_CACHE_HIT_RD",
@@ -100,14 +100,14 @@
100100
},
101101
{
102102
"ArchStdEvent": "L1D_CACHE_PRF",
103-
"BriefDescription": "This event counts fetch counted by either Level 1 data hardware prefetch or Level 1 data software prefetch."
103+
"BriefDescription": "This event counts L1D_CACHE caused by hardware prefetch or software prefetch."
104104
},
105105
{
106106
"ArchStdEvent": "L1D_CACHE_REFILL_PRF",
107-
"BriefDescription": "This event counts hardware prefetch counted by L1D_CACHE_PRF that causes a refill of the Level 1 data cache from outside of the Level 1 data cache."
107+
"BriefDescription": "This event counts L1D_CACHE_REFILL caused by hardware prefetch or software prefetch."
108108
},
109109
{
110110
"ArchStdEvent": "L1D_CACHE_REFILL_PERCYC",
111-
"BriefDescription": "The counter counts by the number of cache refills counted by L1D_CACHE_REFILL in progress on each Processor cycle."
111+
"BriefDescription": "This counter counts by the number of cache refills counted by L1D_CACHE_REFILL in progress on each Processor cycle."
112112
}
113113
]

tools/perf/pmu-events/arch/arm64/fujitsu/monaka/l1i_cache.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
},
2424
{
2525
"ArchStdEvent": "L1I_CACHE_HWPRF",
26-
"BriefDescription": "This event counts access counted by L1I_CACHE that is due to a hardware prefetch."
26+
"BriefDescription": "This event counts L1I_CACHE caused by hardware prefetch."
2727
},
2828
{
2929
"ArchStdEvent": "L1I_CACHE_REFILL_HWPRF",
30-
"BriefDescription": "This event counts hardware prefetch counted by L1I_CACHE_HWPRF that causes a refill of the Level 1 instruction cache from outside of the Level 1 instruction cache."
30+
"BriefDescription": "This event counts L1I_CACHE_REFILL caused by hardware prefetch."
3131
},
3232
{
3333
"ArchStdEvent": "L1I_CACHE_HIT_RD",
@@ -43,10 +43,10 @@
4343
},
4444
{
4545
"ArchStdEvent": "L1I_CACHE_REFILL_PRF",
46-
"BriefDescription": "This event counts hardware prefetch counted by L1I_CACHE_PRF that causes a refill of the Level 1 instruction cache from outside of the Level 1 instruction cache."
46+
"BriefDescription": "This event counts L1I_CACHE_REFILL caused by hardware prefetch or software prefetch."
4747
},
4848
{
4949
"ArchStdEvent": "L1I_CACHE_REFILL_PERCYC",
50-
"BriefDescription": "The counter counts by the number of cache refills counted by L1I_CACHE_REFILL in progress on each Processor cycle."
50+
"BriefDescription": "This counter counts by the number of cache refills counted by L1I_CACHE_REFILL in progress on each Processor cycle."
5151
}
5252
]

0 commit comments

Comments
 (0)