mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00

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:
475892a969
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-4-irogers@google.com
350 lines
10 KiB
JSON
350 lines
10 KiB
JSON
[
|
|
{
|
|
"BriefDescription": "Bogus branches",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xE4",
|
|
"EventName": "BOGUS_BR",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Branch instructions decoded",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xE0",
|
|
"EventName": "BR_INST_DECODED",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired branch instructions.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.ANY",
|
|
"SampleAfterValue": "2000000"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired branch instructions.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.ANY1",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0xf"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired mispredicted branch instructions (precise event).",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC5",
|
|
"EventName": "BR_INST_RETIRED.MISPRED",
|
|
"PEBS": "1",
|
|
"SampleAfterValue": "200000"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired branch instructions that were mispredicted not-taken.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.MISPRED_NOT_TAKEN",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x2"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired branch instructions that were mispredicted taken.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.MISPRED_TAKEN",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x8"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired branch instructions that were predicted not-taken.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.PRED_NOT_TAKEN",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired branch instructions that were predicted taken.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.PRED_TAKEN",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x4"
|
|
},
|
|
{
|
|
"BriefDescription": "Retired taken branch instructions.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC4",
|
|
"EventName": "BR_INST_RETIRED.TAKEN",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0xc"
|
|
},
|
|
{
|
|
"BriefDescription": "All macro conditional branch instructions.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.COND",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Only taken macro conditional branch instructions",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.COND_TAKEN",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x41"
|
|
},
|
|
{
|
|
"BriefDescription": "All non-indirect calls",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.DIR_CALL",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x10"
|
|
},
|
|
{
|
|
"BriefDescription": "All indirect branches that are not calls.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.IND",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x4"
|
|
},
|
|
{
|
|
"BriefDescription": "All indirect calls, including both register and memory indirect.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.IND_CALL",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x20"
|
|
},
|
|
{
|
|
"BriefDescription": "All indirect branches that have a return mnemonic",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.RET",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x8"
|
|
},
|
|
{
|
|
"BriefDescription": "All macro unconditional branch instructions, excluding calls and indirects",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x88",
|
|
"EventName": "BR_INST_TYPE_RETIRED.UNCOND",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x2"
|
|
},
|
|
{
|
|
"BriefDescription": "Mispredicted cond branch instructions retired",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x89",
|
|
"EventName": "BR_MISSP_TYPE_RETIRED.COND",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Mispredicted and taken cond branch instructions retired",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x89",
|
|
"EventName": "BR_MISSP_TYPE_RETIRED.COND_TAKEN",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x11"
|
|
},
|
|
{
|
|
"BriefDescription": "Mispredicted ind branches that are not calls",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x89",
|
|
"EventName": "BR_MISSP_TYPE_RETIRED.IND",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x2"
|
|
},
|
|
{
|
|
"BriefDescription": "Mispredicted indirect calls, including both register and memory indirect.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x89",
|
|
"EventName": "BR_MISSP_TYPE_RETIRED.IND_CALL",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x8"
|
|
},
|
|
{
|
|
"BriefDescription": "Mispredicted return branches",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x89",
|
|
"EventName": "BR_MISSP_TYPE_RETIRED.RETURN",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x4"
|
|
},
|
|
{
|
|
"BriefDescription": "Bus cycles when core is not halted",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x3C",
|
|
"EventName": "CPU_CLK_UNHALTED.BUS",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Core cycles when core is not halted",
|
|
"Counter": "Fixed counter 2",
|
|
"EventCode": "0xA",
|
|
"EventName": "CPU_CLK_UNHALTED.CORE",
|
|
"SampleAfterValue": "2000000"
|
|
},
|
|
{
|
|
"BriefDescription": "Core cycles when core is not halted",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x3C",
|
|
"EventName": "CPU_CLK_UNHALTED.CORE_P",
|
|
"SampleAfterValue": "2000000"
|
|
},
|
|
{
|
|
"BriefDescription": "Reference cycles when core is not halted.",
|
|
"Counter": "Fixed counter 3",
|
|
"EventCode": "0xA",
|
|
"EventName": "CPU_CLK_UNHALTED.REF",
|
|
"SampleAfterValue": "2000000"
|
|
},
|
|
{
|
|
"BriefDescription": "Cycles the divider is busy.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x14",
|
|
"EventName": "CYCLES_DIV_BUSY",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Divide operations retired",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x13",
|
|
"EventName": "DIV.AR",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x81"
|
|
},
|
|
{
|
|
"BriefDescription": "Divide operations executed.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x13",
|
|
"EventName": "DIV.S",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Instructions retired.",
|
|
"Counter": "Fixed counter 1",
|
|
"EventCode": "0xA",
|
|
"EventName": "INST_RETIRED.ANY",
|
|
"SampleAfterValue": "2000000"
|
|
},
|
|
{
|
|
"BriefDescription": "Instructions retired (precise event).",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC0",
|
|
"EventName": "INST_RETIRED.ANY_P",
|
|
"PEBS": "2",
|
|
"SampleAfterValue": "2000000"
|
|
},
|
|
{
|
|
"BriefDescription": "Self-Modifying Code detected.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC3",
|
|
"EventName": "MACHINE_CLEARS.SMC",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Multiply operations retired",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x12",
|
|
"EventName": "MUL.AR",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x81"
|
|
},
|
|
{
|
|
"BriefDescription": "Multiply operations executed.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x12",
|
|
"EventName": "MUL.S",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Micro-op reissues for any cause",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x3",
|
|
"EventName": "REISSUE.ANY",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x7f"
|
|
},
|
|
{
|
|
"BriefDescription": "Micro-op reissues for any cause (At Retirement)",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x3",
|
|
"EventName": "REISSUE.ANY.AR",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0xff"
|
|
},
|
|
{
|
|
"BriefDescription": "Micro-op reissues on a store-load collision",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x3",
|
|
"EventName": "REISSUE.OVERLAP_STORE",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x1"
|
|
},
|
|
{
|
|
"BriefDescription": "Micro-op reissues on a store-load collision (At Retirement)",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x3",
|
|
"EventName": "REISSUE.OVERLAP_STORE.AR",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x81"
|
|
},
|
|
{
|
|
"BriefDescription": "Cycles issue is stalled due to div busy.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xDC",
|
|
"EventName": "RESOURCE_STALLS.DIV_BUSY",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x2"
|
|
},
|
|
{
|
|
"BriefDescription": "All store forwards",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x2",
|
|
"EventName": "STORE_FORWARDS.ANY",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x83"
|
|
},
|
|
{
|
|
"BriefDescription": "Good store forwards",
|
|
"Counter": "0,1",
|
|
"EventCode": "0x2",
|
|
"EventName": "STORE_FORWARDS.GOOD",
|
|
"SampleAfterValue": "200000",
|
|
"UMask": "0x81"
|
|
},
|
|
{
|
|
"BriefDescription": "Micro-ops retired.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC2",
|
|
"EventName": "UOPS_RETIRED.ANY",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x10"
|
|
},
|
|
{
|
|
"BriefDescription": "Cycles no micro-ops retired.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC2",
|
|
"EventName": "UOPS_RETIRED.STALLED_CYCLES",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x10"
|
|
},
|
|
{
|
|
"BriefDescription": "Periods no micro-ops retired.",
|
|
"Counter": "0,1",
|
|
"EventCode": "0xC2",
|
|
"EventName": "UOPS_RETIRED.STALLS",
|
|
"SampleAfterValue": "2000000",
|
|
"UMask": "0x10"
|
|
}
|
|
]
|