Skip to content

Commit 4a92bf8

Browse files
CharlesWu465Locus Wei-Han Chen
authored andcommitted
andes: perf: add andes event to JSON file (torvalds#200)
Add andes event to JSON file for a[x]2[5|7], a[x]45 and ax65 Reformed from the following patches on ast-v5_4_0-branch: - (a598976) tools: perf: andes: remove Andes L2C events from ax[25|45|65]/firmware.json (torvalds#205) Co-authored-by: Locus Wei-Han Chen <[email protected]> Reviewed-on: https://gitea.andestech.com/RD-SW/linux/pulls/200 Reviewed-by: Locus Wei-Han Chen <[email protected]> Reviewed-by: Peter Yu-Chien Lin <[email protected]>
1 parent 9993edc commit 4a92bf8

File tree

6 files changed

+928
-0
lines changed

6 files changed

+928
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[
2+
{
3+
"ArchStdEvent": "FW_MISALIGNED_LOAD"
4+
},
5+
{
6+
"ArchStdEvent": "FW_MISALIGNED_STORE"
7+
},
8+
{
9+
"ArchStdEvent": "FW_ACCESS_LOAD"
10+
},
11+
{
12+
"ArchStdEvent": "FW_ACCESS_STORE"
13+
},
14+
{
15+
"ArchStdEvent": "FW_ILLEGAL_INSN"
16+
},
17+
{
18+
"ArchStdEvent": "FW_SET_TIMER"
19+
},
20+
{
21+
"ArchStdEvent": "FW_IPI_SENT"
22+
},
23+
{
24+
"ArchStdEvent": "FW_IPI_RECEIVED"
25+
},
26+
{
27+
"ArchStdEvent": "FW_FENCE_I_SENT"
28+
},
29+
{
30+
"ArchStdEvent": "FW_FENCE_I_RECEIVED"
31+
},
32+
{
33+
"ArchStdEvent": "FW_SFENCE_VMA_SENT"
34+
},
35+
{
36+
"ArchStdEvent": "FW_SFENCE_VMA_RECEIVED"
37+
},
38+
{
39+
"ArchStdEvent": "FW_SFENCE_VMA_RECEIVED"
40+
},
41+
{
42+
"ArchStdEvent": "FW_SFENCE_VMA_ASID_RECEIVED"
43+
},
44+
{
45+
"ArchStdEvent": "FW_HFENCE_GVMA_SENT"
46+
},
47+
{
48+
"ArchStdEvent": "FW_HFENCE_GVMA_RECEIVED"
49+
},
50+
{
51+
"ArchStdEvent": "FW_HFENCE_GVMA_VMID_SENT"
52+
},
53+
{
54+
"ArchStdEvent": "FW_HFENCE_GVMA_VMID_RECEIVED"
55+
},
56+
{
57+
"ArchStdEvent": "FW_HFENCE_VVMA_SENT"
58+
},
59+
{
60+
"ArchStdEvent": "FW_HFENCE_VVMA_RECEIVED"
61+
},
62+
{
63+
"ArchStdEvent": "FW_HFENCE_VVMA_ASID_SENT"
64+
},
65+
{
66+
"ArchStdEvent": "FW_HFENCE_VVMA_ASID_RECEIVED"
67+
}
68+
]
Lines changed: 257 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
[
2+
{
3+
"EventCode": "0x10",
4+
"EventName": "cycle_count",
5+
"BriefDescription": "Cycle counts"
6+
},
7+
{
8+
"EventCode": "0x20",
9+
"EventName": "inst_count",
10+
"BriefDescription": "Retired instruction counts"
11+
},
12+
{
13+
"EventCode": "0x30",
14+
"EventName": "int_load_inst",
15+
"BriefDescription": "Integer load instructions"
16+
},
17+
{
18+
"EventCode": "0x40",
19+
"EventName": "int_store_inst",
20+
"BriefDescription": "Integer store instructions"
21+
},
22+
{
23+
"EventCode": "0x50",
24+
"EventName": "atomic_mem_op",
25+
"BriefDescription": "Atomic memory operation"
26+
},
27+
{
28+
"EventCode": "0x60",
29+
"EventName": "sys_inst",
30+
"BriefDescription": "System instructions"
31+
},
32+
{
33+
"EventCode": "0x70",
34+
"EventName": "int_compute_inst",
35+
"BriefDescription": "Integer computational instruction"
36+
},
37+
{
38+
"EventCode": "0x80",
39+
"EventName": "condition_br",
40+
"BriefDescription": "Conditional branch"
41+
},
42+
{
43+
"EventCode": "0x90",
44+
"EventName": "taken_condition_br",
45+
"BriefDescription": "Taken conditional branch"
46+
},
47+
{
48+
"EventCode": "0xA0",
49+
"EventName": "jal_inst",
50+
"BriefDescription": "JAL instruction"
51+
},
52+
{
53+
"EventCode": "0xB0",
54+
"EventName": "jalr_inst",
55+
"BriefDescription": "JALR instruction"
56+
},
57+
{
58+
"EventCode": "0xC0",
59+
"EventName": "ret_inst",
60+
"BriefDescription": "Return instruction"
61+
},
62+
{
63+
"EventCode": "0xD0",
64+
"EventName": "control_trans_inst",
65+
"BriefDescription": "Control transfer instruction"
66+
},
67+
{
68+
"EventCode": "0xE0",
69+
"EventName": "ex9_inst",
70+
"BriefDescription": "EX9 instruction"
71+
},
72+
{
73+
"EventCode": "0xF0",
74+
"EventName": "int_mul_inst",
75+
"BriefDescription": "Integer multiplication instruction"
76+
},
77+
{
78+
"EventCode": "0x100",
79+
"EventName": "int_div_rem_inst",
80+
"BriefDescription": "Integer division/remainder instruction"
81+
},
82+
{
83+
"EventCode": "0x110",
84+
"EventName": "float_load_inst",
85+
"BriefDescription": "Floating-point load instruction"
86+
},
87+
{
88+
"EventCode": "0x120",
89+
"EventName": "float_store_inst",
90+
"BriefDescription": "Floating-point store instruction"
91+
},
92+
{
93+
"EventCode": "0x130",
94+
"EventName": "float_add_sub_inst",
95+
"BriefDescription": "Floating-point addition/subtraction"
96+
},
97+
{
98+
"EventCode": "0x140",
99+
"EventName": "float_mul_inst",
100+
"BriefDescription": "Floating-point multiplication"
101+
},
102+
{
103+
"EventCode": "0x150",
104+
"EventName": "float_fused_muladd_inst",
105+
"BriefDescription": "Floating-point fused multiply-add"
106+
},
107+
{
108+
"EventCode": "0x160",
109+
"EventName": "float_div_sqrt_inst",
110+
"BriefDescription": "Floating-point division or square-root"
111+
},
112+
{
113+
"EventCode": "0x170",
114+
"EventName": "other_float_inst",
115+
"BriefDescription": "Other floating-point instruction"
116+
},
117+
{
118+
"EventCode": "0x180",
119+
"EventName": "integer_mul_and_sub_inst_count",
120+
"BriefDescription": "Integer multiplication and add/sub instruction count"
121+
},
122+
{
123+
"EventCode": "0x01",
124+
"EventName": "ilm_access",
125+
"BriefDescription": "ILM access"
126+
},
127+
{
128+
"EventCode": "0x11",
129+
"EventName": "dlm_access",
130+
"BriefDescription": "DLM access"
131+
},
132+
{
133+
"EventCode": "0x21",
134+
"EventName": "icache_access",
135+
"BriefDescription": "ICACHE access"
136+
},
137+
{
138+
"EventCode": "0x31",
139+
"EventName": "icache_miss",
140+
"BriefDescription": "ICACHE miss"
141+
},
142+
{
143+
"EventCode": "0x41",
144+
"EventName": "dcache_access",
145+
"BriefDescription": "DCACHE access"
146+
},
147+
{
148+
"EventCode": "0x51",
149+
"EventName": "dcache_miss",
150+
"BriefDescription": "DCACHE miss"
151+
},
152+
{
153+
"EventCode": "0x61",
154+
"EventName": "dcache_load_access",
155+
"BriefDescription": "DCACHE load access"
156+
},
157+
{
158+
"EventCode": "0x71",
159+
"EventName": "dcache_load_miss",
160+
"BriefDescription": "DCACHE load miss"
161+
},
162+
{
163+
"EventCode": "0x81",
164+
"EventName": "dcache_store_access",
165+
"BriefDescription": "DCACHE store access"
166+
},
167+
{
168+
"EventCode": "0x91",
169+
"EventName": "dcache_store_miss",
170+
"BriefDescription": "DCACHE store miss"
171+
},
172+
{
173+
"EventCode": "0xA1",
174+
"EventName": "dcache_wb",
175+
"BriefDescription": "DCACHE writeback"
176+
},
177+
{
178+
"EventCode": "0xB1",
179+
"EventName": "cycle_wait_icache_fill",
180+
"BriefDescription": "Cycles waiting for ICACHE fill data"
181+
},
182+
{
183+
"EventCode": "0xC1",
184+
"EventName": "cycle_wait_dcache_fill",
185+
"BriefDescription": "Cycles waiting for DCACHE fill data"
186+
},
187+
{
188+
"EventCode": "0xD1",
189+
"EventName": "uncached_ifetch_from_bus",
190+
"BriefDescription": "Uncached ifetch data access from bus"
191+
},
192+
{
193+
"EventCode": "0xE1",
194+
"EventName": "uncached_load_from_bus",
195+
"BriefDescription": "Uncached load data access from bus"
196+
},
197+
{
198+
"EventCode": "0xF1",
199+
"EventName": "cycle_wait_uncached_ifetch",
200+
"BriefDescription": "Cycles waiting for uncached ifetch data from bus"
201+
},
202+
{
203+
"EventCode": "0x101",
204+
"EventName": "cycle_wait_uncached_load",
205+
"BriefDescription": "Cycles waiting for uncached load data from bus"
206+
},
207+
{
208+
"EventCode": "0x111",
209+
"EventName": "main_itlb_access",
210+
"BriefDescription": "Main ITLB access"
211+
},
212+
{
213+
"EventCode": "0x121",
214+
"EventName": "main_itlb_miss",
215+
"BriefDescription": "Main ITLB miss"
216+
},
217+
{
218+
"EventCode": "0x131",
219+
"EventName": "main_dtlb_access",
220+
"BriefDescription": "Main DTLB access"
221+
},
222+
{
223+
"EventCode": "0x141",
224+
"EventName": "main_dtlb_miss",
225+
"BriefDescription": "Main DTLB miss"
226+
},
227+
{
228+
"EventCode": "0x151",
229+
"EventName": "cycle_wait_itlb_fill",
230+
"BriefDescription": "Cycles waiting for Main ITLB fill data"
231+
},
232+
{
233+
"EventCode": "0x161",
234+
"EventName": "pipe_stall_cycle_dtlb_miss",
235+
"BriefDescription": "Pipeline stall cycles caused by Main DTLB miss"
236+
},
237+
{
238+
"EventCode": "0x02",
239+
"EventName": "mispredict_condition_br",
240+
"BriefDescription": "Misprediction of conditional branches"
241+
},
242+
{
243+
"EventCode": "0x12",
244+
"EventName": "mispredict_take_condition_br",
245+
"BriefDescription": "Misprediction of taken conditional branches"
246+
},
247+
{
248+
"EventCode": "0x22",
249+
"EventName": "mispredict_target_ret_inst",
250+
"BriefDescription": "Misprediction of targets of Return instructions"
251+
},
252+
{
253+
"EventCode": "0x32",
254+
"EventName": "replay_las_sas",
255+
"BriefDescription": "Replay for load-after-store or store-after-store cases"
256+
}
257+
]

0 commit comments

Comments
 (0)