mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 23:46:45 +00:00

Add JSON file of T-HEAD C9xx series events. The event idx (raw value) is summary as following: event id range | support cpu 0x01 - 0x2a | c906,c910,c920 The event ids are based on the public document of T-HEAD and cover the c900 series. These events are the max that c900 series support. Since T-HEAD let manufacturers decide whether events are usable, the final support of the perf events is determined by the pmu node of the soc dtb. Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Tested-by: Guo Ren <guoren@kernel.org> Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Chen Wang <unicorn_wang@outlook.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Jisheng Zhang <jszhang@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wei Fu <wefu@redhat.com> Cc: linux-riscv@lists.infradead.org Link: https://lore.kernel.org/r/IA1PR20MB495325FCF603BAA841E29281BBBAA@IA1PR20MB4953.namprd20.prod.outlook.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
[
|
|
{
|
|
"EventName": "INST_BRANCH_MISPREDICT",
|
|
"EventCode": "0x00000006",
|
|
"BriefDescription": "Mispredicted branch instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_BRANCH",
|
|
"EventCode": "0x00000007",
|
|
"BriefDescription": "Retired branch instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_JMP_MISPREDICT",
|
|
"EventCode": "0x00000008",
|
|
"BriefDescription": "Indirect branch mispredict"
|
|
},
|
|
{
|
|
"EventName": "INST_JMP",
|
|
"EventCode": "0x00000009",
|
|
"BriefDescription": "Retired jmp instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_STORE",
|
|
"EventCode": "0x0000000b",
|
|
"BriefDescription": "Retired store instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_ALU",
|
|
"EventCode": "0x0000001d",
|
|
"BriefDescription": "Retired ALU instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_LDST",
|
|
"EventCode": "0x0000001e",
|
|
"BriefDescription": "Retired Load/Store instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_VECTOR",
|
|
"EventCode": "0x0000001f",
|
|
"BriefDescription": "Retired Vector instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_CSR",
|
|
"EventCode": "0x00000020",
|
|
"BriefDescription": "Retired CSR instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_SYNC",
|
|
"EventCode": "0x00000021",
|
|
"BriefDescription": "Retired sync instructions (AMO/LR/SC instructions)"
|
|
},
|
|
{
|
|
"EventName": "INST_UNALIGNED_ACCESS",
|
|
"EventCode": "0x00000022",
|
|
"BriefDescription": "Retired Store/Load instructions with unaligned memory access"
|
|
},
|
|
{
|
|
"EventName": "INST_ECALL",
|
|
"EventCode": "0x00000025",
|
|
"BriefDescription": "Retired ecall instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_LONG_JP",
|
|
"EventCode": "0x00000026",
|
|
"BriefDescription": "Retired long jump instructions"
|
|
},
|
|
{
|
|
"EventName": "INST_FP",
|
|
"EventCode": "0x0000002a",
|
|
"BriefDescription": "Retired FPU instructions"
|
|
}
|
|
]
|