Skip to content

Commit a60bd1b

Browse files
committed
Merge: tools/perf/pmu-events: Fix JSON parsing of CR char and generally update the JSONs
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4913 JIRA: https://issues.redhat.com/browse/RHEL-32689 JIRA: https://issues.redhat.com/browse/RHEL-37153 Signed-off-by: Michael Petlan <mpetlan@redhat.com> Approved-by: Artem Savkov <asavkov@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents a770863 + fc0be7a commit a60bd1b

File tree

454 files changed

+79555
-3165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+79555
-3165
lines changed

tools/perf/builtin-list.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ static void fix_escape_fprintf(FILE *fp, struct strbuf *buf, const char *fmt, ..
313313
case '\n':
314314
strbuf_addstr(buf, "\\n");
315315
break;
316+
case '\r':
317+
strbuf_addstr(buf, "\\r");
318+
break;
316319
case '\\':
317320
fallthrough;
318321
case '\"':

tools/perf/pmu-events/arch/x86/alderlake/adl-metrics.json

Lines changed: 472 additions & 516 deletions
Large diffs are not rendered by default.

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

Lines changed: 182 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"BriefDescription": "ARITH.FPDIV_ACTIVE",
4+
"Counter": "0,1,2,3,4,5,6,7",
45
"CounterMask": "1",
56
"EventCode": "0xb0",
67
"EventName": "ARITH.FPDIV_ACTIVE",
@@ -10,6 +11,7 @@
1011
},
1112
{
1213
"BriefDescription": "Counts all microcode FP assists.",
14+
"Counter": "0,1,2,3,4,5,6,7",
1315
"EventCode": "0xc1",
1416
"EventName": "ASSISTS.FP",
1517
"PublicDescription": "Counts all microcode Floating Point assists.",
@@ -19,6 +21,7 @@
1921
},
2022
{
2123
"BriefDescription": "ASSISTS.SSE_AVX_MIX",
24+
"Counter": "0,1,2,3,4,5,6,7",
2225
"EventCode": "0xc1",
2326
"EventName": "ASSISTS.SSE_AVX_MIX",
2427
"SampleAfterValue": "1000003",
@@ -27,6 +30,7 @@
2730
},
2831
{
2932
"BriefDescription": "FP_ARITH_DISPATCHED.PORT_0 [This event is alias to FP_ARITH_DISPATCHED.V0]",
33+
"Counter": "0,1,2,3,4,5,6,7",
3034
"EventCode": "0xb3",
3135
"EventName": "FP_ARITH_DISPATCHED.PORT_0",
3236
"SampleAfterValue": "2000003",
@@ -35,6 +39,7 @@
3539
},
3640
{
3741
"BriefDescription": "FP_ARITH_DISPATCHED.PORT_1 [This event is alias to FP_ARITH_DISPATCHED.V1]",
42+
"Counter": "0,1,2,3,4,5,6,7",
3843
"EventCode": "0xb3",
3944
"EventName": "FP_ARITH_DISPATCHED.PORT_1",
4045
"SampleAfterValue": "2000003",
@@ -43,6 +48,7 @@
4348
},
4449
{
4550
"BriefDescription": "FP_ARITH_DISPATCHED.PORT_5 [This event is alias to FP_ARITH_DISPATCHED.V2]",
51+
"Counter": "0,1,2,3,4,5,6,7",
4652
"EventCode": "0xb3",
4753
"EventName": "FP_ARITH_DISPATCHED.PORT_5",
4854
"SampleAfterValue": "2000003",
@@ -51,6 +57,7 @@
5157
},
5258
{
5359
"BriefDescription": "FP_ARITH_DISPATCHED.V0 [This event is alias to FP_ARITH_DISPATCHED.PORT_0]",
60+
"Counter": "0,1,2,3,4,5,6,7",
5461
"EventCode": "0xb3",
5562
"EventName": "FP_ARITH_DISPATCHED.V0",
5663
"SampleAfterValue": "2000003",
@@ -59,6 +66,7 @@
5966
},
6067
{
6168
"BriefDescription": "FP_ARITH_DISPATCHED.V1 [This event is alias to FP_ARITH_DISPATCHED.PORT_1]",
69+
"Counter": "0,1,2,3,4,5,6,7",
6270
"EventCode": "0xb3",
6371
"EventName": "FP_ARITH_DISPATCHED.V1",
6472
"SampleAfterValue": "2000003",
@@ -67,6 +75,7 @@
6775
},
6876
{
6977
"BriefDescription": "FP_ARITH_DISPATCHED.V2 [This event is alias to FP_ARITH_DISPATCHED.PORT_5]",
78+
"Counter": "0,1,2,3,4,5,6,7",
7079
"EventCode": "0xb3",
7180
"EventName": "FP_ARITH_DISPATCHED.V2",
7281
"SampleAfterValue": "2000003",
@@ -75,6 +84,7 @@
7584
},
7685
{
7786
"BriefDescription": "Counts number of SSE/AVX computational 128-bit packed double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 2 computation operations, one for each element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element.",
87+
"Counter": "0,1,2,3,4,5,6,7",
7888
"EventCode": "0xc7",
7989
"EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE",
8090
"PublicDescription": "Number of SSE/AVX computational 128-bit packed double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 2 computation operations, one for each element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -84,6 +94,7 @@
8494
},
8595
{
8696
"BriefDescription": "Number of SSE/AVX computational 128-bit packed single precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 4 computation operations, one for each element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MUL DIV MIN MAX RCP14 RSQRT14 SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element.",
97+
"Counter": "0,1,2,3,4,5,6,7",
8798
"EventCode": "0xc7",
8899
"EventName": "FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE",
89100
"PublicDescription": "Number of SSE/AVX computational 128-bit packed single precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 4 computation operations, one for each element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT RSQRT RCP DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -93,6 +104,7 @@
93104
},
94105
{
95106
"BriefDescription": "Counts number of SSE/AVX computational 256-bit packed double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 4 computation operations, one for each element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element.",
107+
"Counter": "0,1,2,3,4,5,6,7",
96108
"EventCode": "0xc7",
97109
"EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE",
98110
"PublicDescription": "Number of SSE/AVX computational 256-bit packed double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 4 computation operations, one for each element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -102,6 +114,7 @@
102114
},
103115
{
104116
"BriefDescription": "Counts number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 8 computation operations, one for each element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT RSQRT RCP DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element.",
117+
"Counter": "0,1,2,3,4,5,6,7",
105118
"EventCode": "0xc7",
106119
"EventName": "FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE",
107120
"PublicDescription": "Number of SSE/AVX computational 256-bit packed single precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 8 computation operations, one for each element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX SQRT RSQRT RCP DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -111,6 +124,7 @@
111124
},
112125
{
113126
"BriefDescription": "Number of SSE/AVX computational 128-bit packed single and 256-bit packed double precision FP instructions retired; some instructions will count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each element. Applies to SSE* and AVX* packed single precision and packed double precision FP instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX RCP14 RSQRT14 SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB count twice as they perform 2 calculations per element.",
127+
"Counter": "0,1,2,3,4,5,6,7",
114128
"EventCode": "0xc7",
115129
"EventName": "FP_ARITH_INST_RETIRED.4_FLOPS",
116130
"PublicDescription": "Number of SSE/AVX computational 128-bit packed single precision and 256-bit packed double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each element. Applies to SSE* and AVX* packed single precision floating-point and packed double precision floating-point instructions: ADD SUB HADD HSUB SUBADD MUL DIV MIN MAX RCP14 RSQRT14 SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -120,6 +134,7 @@
120134
},
121135
{
122136
"BriefDescription": "Number of SSE/AVX computational scalar floating-point instructions retired; some instructions will count twice as noted below. Applies to SSE* and AVX* scalar, double and single precision floating-point: ADD SUB MUL DIV MIN MAX RCP14 RSQRT14 RANGE SQRT DPP FM(N)ADD/SUB. DPP and FM(N)ADD/SUB instructions count twice as they perform multiple calculations per element.",
137+
"Counter": "0,1,2,3,4,5,6,7",
123138
"EventCode": "0xc7",
124139
"EventName": "FP_ARITH_INST_RETIRED.SCALAR",
125140
"PublicDescription": "Number of SSE/AVX computational scalar single precision and double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT RSQRT RCP FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -129,6 +144,7 @@
129144
},
130145
{
131146
"BriefDescription": "Counts number of SSE/AVX computational scalar double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and AVX* scalar double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element.",
147+
"Counter": "0,1,2,3,4,5,6,7",
132148
"EventCode": "0xc7",
133149
"EventName": "FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
134150
"PublicDescription": "Number of SSE/AVX computational scalar double precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and AVX* scalar double precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -138,6 +154,7 @@
138154
},
139155
{
140156
"BriefDescription": "Counts number of SSE/AVX computational scalar single precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT RSQRT RCP FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element.",
157+
"Counter": "0,1,2,3,4,5,6,7",
141158
"EventCode": "0xc7",
142159
"EventName": "FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
143160
"PublicDescription": "Number of SSE/AVX computational scalar single precision floating-point instructions retired; some instructions will count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and AVX* scalar single precision floating-point instructions: ADD SUB MUL DIV MIN MAX SQRT RSQRT RCP FM(N)ADD/SUB. FM(N)ADD/SUB instructions count twice as they perform 2 calculations per element. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -147,6 +164,7 @@
147164
},
148165
{
149166
"BriefDescription": "Number of any Vector retired FP arithmetic instructions",
167+
"Counter": "0,1,2,3,4,5,6,7",
150168
"EventCode": "0xc7",
151169
"EventName": "FP_ARITH_INST_RETIRED.VECTOR",
152170
"PublicDescription": "Number of any Vector retired FP arithmetic instructions. The DAZ and FTZ flags in the MXCSR register need to be set when using these events.",
@@ -156,6 +174,7 @@
156174
},
157175
{
158176
"BriefDescription": "Counts the number of floating point operations retired that required microcode assist.",
177+
"Counter": "0,1,2,3,4,5",
159178
"EventCode": "0xc3",
160179
"EventName": "MACHINE_CLEARS.FP_ASSIST",
161180
"PublicDescription": "Counts the number of floating point operations retired that required microcode assist, which is not a reflection of the number of FP operations, instructions or uops.",
@@ -165,6 +184,7 @@
165184
},
166185
{
167186
"BriefDescription": "Counts the number of floating point divide uops retired (x87 and SSE, including x87 sqrt).",
187+
"Counter": "0,1,2,3,4,5",
168188
"EventCode": "0xc2",
169189
"EventName": "UOPS_RETIRED.FPDIV",
170190
"PEBS": "1",

0 commit comments

Comments
 (0)