xref: /linux/tools/perf/pmu-events/arch/x86/amdzen4/branch.json (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1*65844828SSandipan Das[
2*65844828SSandipan Das  {
3*65844828SSandipan Das    "EventName": "bp_l2_btb_correct",
4*65844828SSandipan Das    "EventCode": "0x8b",
5*65844828SSandipan Das    "BriefDescription": "L2 branch prediction overrides existing prediction (speculative)."
6*65844828SSandipan Das  },
7*65844828SSandipan Das  {
8*65844828SSandipan Das    "EventName": "bp_dyn_ind_pred",
9*65844828SSandipan Das    "EventCode": "0x8e",
10*65844828SSandipan Das    "BriefDescription": "Dynamic indirect predictions (branch used the indirect predictor to make a prediction)."
11*65844828SSandipan Das  },
12*65844828SSandipan Das  {
13*65844828SSandipan Das    "EventName": "bp_de_redirect",
14*65844828SSandipan Das    "EventCode": "0x91",
15*65844828SSandipan Das    "BriefDescription": "Instruction decoder corrects the predicted target and resteers the branch predictor."
16*65844828SSandipan Das  },
17*65844828SSandipan Das  {
18*65844828SSandipan Das    "EventName": "ex_ret_brn",
19*65844828SSandipan Das    "EventCode": "0xc2",
20*65844828SSandipan Das    "BriefDescription": "Retired branch instructions (all types of architectural control flow changes, including exceptions and interrupts)."
21*65844828SSandipan Das  },
22*65844828SSandipan Das  {
23*65844828SSandipan Das    "EventName": "ex_ret_brn_misp",
24*65844828SSandipan Das    "EventCode": "0xc3",
25*65844828SSandipan Das    "BriefDescription": "Retired branch instructions mispredicted."
26*65844828SSandipan Das  },
27*65844828SSandipan Das  {
28*65844828SSandipan Das    "EventName": "ex_ret_brn_tkn",
29*65844828SSandipan Das    "EventCode": "0xc4",
30*65844828SSandipan Das    "BriefDescription": "Retired taken branch instructions (all types of architectural control flow changes, including exceptions and interrupts)."
31*65844828SSandipan Das  },
32*65844828SSandipan Das  {
33*65844828SSandipan Das    "EventName": "ex_ret_brn_tkn_misp",
34*65844828SSandipan Das    "EventCode": "0xc5",
35*65844828SSandipan Das    "BriefDescription": "Retired taken branch instructions mispredicted."
36*65844828SSandipan Das  },
37*65844828SSandipan Das  {
38*65844828SSandipan Das    "EventName": "ex_ret_brn_far",
39*65844828SSandipan Das    "EventCode": "0xc6",
40*65844828SSandipan Das    "BriefDescription": "Retired far control transfers (far call/jump/return, IRET, SYSCALL and SYSRET, plus exceptions and interrupts). Far control transfers are not subject to branch prediction."
41*65844828SSandipan Das  },
42*65844828SSandipan Das  {
43*65844828SSandipan Das    "EventName": "ex_ret_near_ret",
44*65844828SSandipan Das    "EventCode": "0xc8",
45*65844828SSandipan Das    "BriefDescription": "Retired near returns (RET or RET Iw)."
46*65844828SSandipan Das  },
47*65844828SSandipan Das  {
48*65844828SSandipan Das    "EventName": "ex_ret_near_ret_mispred",
49*65844828SSandipan Das    "EventCode": "0xc9",
50*65844828SSandipan Das    "BriefDescription": "Retired near returns mispredicted. Each misprediction incurs the same penalty as a mispredicted conditional branch instruction."
51*65844828SSandipan Das  },
52*65844828SSandipan Das  {
53*65844828SSandipan Das    "EventName": "ex_ret_brn_ind_misp",
54*65844828SSandipan Das    "EventCode": "0xca",
55*65844828SSandipan Das    "BriefDescription": "Retired indirect branch instructions mispredicted (only EX mispredicts). Each misprediction incurs the same penalty as a mispredicted conditional branch instruction."
56*65844828SSandipan Das  },
57*65844828SSandipan Das  {
58*65844828SSandipan Das    "EventName": "ex_ret_ind_brch_instr",
59*65844828SSandipan Das    "EventCode": "0xcc",
60*65844828SSandipan Das    "BriefDescription": "Retired indirect branch instructions."
61*65844828SSandipan Das  },
62*65844828SSandipan Das  {
63*65844828SSandipan Das    "EventName": "ex_ret_cond",
64*65844828SSandipan Das    "EventCode": "0xd1",
65*65844828SSandipan Das    "BriefDescription": "Retired conditional branch instructions."
66*65844828SSandipan Das  },
67*65844828SSandipan Das  {
68*65844828SSandipan Das    "EventName": "ex_ret_msprd_brnch_instr_dir_msmtch",
69*65844828SSandipan Das    "EventCode": "0x1c7",
70*65844828SSandipan Das    "BriefDescription": "Retired branch instructions mispredicted due to direction mismatch."
71*65844828SSandipan Das  },
72*65844828SSandipan Das  {
73*65844828SSandipan Das    "EventName": "ex_ret_uncond_brnch_instr_mispred",
74*65844828SSandipan Das    "EventCode": "0x1c8",
75*65844828SSandipan Das    "BriefDescription": "Retired unconditional indirect branch instructions mispredicted."
76*65844828SSandipan Das  },
77*65844828SSandipan Das  {
78*65844828SSandipan Das    "EventName": "ex_ret_uncond_brnch_instr",
79*65844828SSandipan Das    "EventCode": "0x1c9",
80*65844828SSandipan Das    "BriefDescription": "Retired unconditional branch instructions."
81*65844828SSandipan Das  }
82*65844828SSandipan Das]
83