mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00

SiFive Bullet microarchitecture cores with mimpid values starting with 0x0d or greater add new PMU events to count TLB miss stall cycles. All other PMU events are unchanged from earlier Bullet cores. Signed-off-by: Eric Lin <eric.lin@sifive.com> Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Ian Rogers <irogers@google.com> Tested-by: Ian Rogers <irogers@google.com> Tested-by: Atish Patra <atishp@rivosinc.com> Link: https://lore.kernel.org/r/20250213220341.3215660-6-samuel.holland@sifive.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
[
|
|
{
|
|
"EventName": "ADDRESSGEN_INTERLOCK",
|
|
"EventCode": "0x101",
|
|
"BriefDescription": "Counts cycles with an address-generation interlock"
|
|
},
|
|
{
|
|
"EventName": "LONGLATENCY_INTERLOCK",
|
|
"EventCode": "0x201",
|
|
"BriefDescription": "Counts cycles with a long-latency interlock"
|
|
},
|
|
{
|
|
"EventName": "CSR_INTERLOCK",
|
|
"EventCode": "0x401",
|
|
"BriefDescription": "Counts cycles with a CSR interlock"
|
|
},
|
|
{
|
|
"EventName": "ICACHE_BLOCKED",
|
|
"EventCode": "0x801",
|
|
"BriefDescription": "Counts cycles in which the instruction cache was not able to provide an instruction"
|
|
},
|
|
{
|
|
"EventName": "DCACHE_BLOCKED",
|
|
"EventCode": "0x1001",
|
|
"BriefDescription": "Counts cycles in which the data cache blocked an instruction"
|
|
},
|
|
{
|
|
"EventName": "BRANCH_DIRECTION_MISPREDICTION",
|
|
"EventCode": "0x2001",
|
|
"BriefDescription": "Counts mispredictions of conditional branch direction (taken/not taken)"
|
|
},
|
|
{
|
|
"EventName": "BRANCH_TARGET_MISPREDICTION",
|
|
"EventCode": "0x4001",
|
|
"BriefDescription": "Counts mispredictions of the target PC of control-flow instructions"
|
|
},
|
|
{
|
|
"EventName": "PIPELINE_FLUSH",
|
|
"EventCode": "0x8001",
|
|
"BriefDescription": "Counts flushes of the core pipeline. Common causes include fence.i and CSR accesses"
|
|
},
|
|
{
|
|
"EventName": "REPLAY",
|
|
"EventCode": "0x10001",
|
|
"BriefDescription": "Counts instruction replays"
|
|
},
|
|
{
|
|
"EventName": "INTEGER_MUL_DIV_INTERLOCK",
|
|
"EventCode": "0x20001",
|
|
"BriefDescription": "Counts cycles with a multiply or divide interlock"
|
|
},
|
|
{
|
|
"EventName": "FP_INTERLOCK",
|
|
"EventCode": "0x40001",
|
|
"BriefDescription": "Counts cycles with a floating-point interlock"
|
|
},
|
|
{
|
|
"EventName": "TRACE_STALL",
|
|
"EventCode": "0x80001",
|
|
"BriefDescription": "Counts cycles in which the core pipeline is stalled due to backpressure from the Trace Encoder"
|
|
},
|
|
{
|
|
"EventName": "ITLB_MISS_STALL",
|
|
"EventCode": "0x100001",
|
|
"BriefDescription": "Counts cycles in which the core pipeline is stalled due to ITLB Miss"
|
|
},
|
|
{
|
|
"EventName": "DTLB_MISS_STALL",
|
|
"EventCode": "0x200001",
|
|
"BriefDescription": "Counts cycles in which the core pipeline is stalled due to DTLB Miss"
|
|
}
|
|
]
|