diff options
author | Genevieve Chan <genevieve.chan@starfivetech.com> | 2023-07-03 11:24:19 +0300 |
---|---|---|
committer | Genevieve Chan <genevieve.chan@starfivetech.com> | 2023-07-04 11:00:57 +0300 |
commit | 167d463f885b5a86751497c1830f4b778ed025ed (patch) | |
tree | fd8587eaf62ede8127a4957b896a23eae7e085c6 /tools | |
parent | f3cdb363c26b6bd2e50a6e5cd97fe84e307ed33b (diff) | |
download | linux-167d463f885b5a86751497c1830f4b778ed025ed.tar.xz |
perf vendor events riscv: Update JSON metrics for StarFive Dubhe Perf
Add common perf event support for StarFive Dubhe. Remove unsupported
events for StarFive Dubhe.
Signed-off-by: Genevieve Chan <genevieve.chan@starfivetech.com>
Diffstat (limited to 'tools')
9 files changed, 172 insertions, 826 deletions
diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/cache.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/cache.json deleted file mode 100644 index a740c298859b..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/cache.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "EventName": "L2C_LD_REQ", - "EventCode": "0xB2", - "BriefDescription": "Load request L2C" - }, - { - "EventName": "L2C_LD_MISS", - "EventCode": "0xB3", - "BriefDescription": "Load miss L2C" - }, - { - "EventName": "L2C_ST_REQ", - "EventCode": "0xB4", - "BriefDescription": "Store request L2C" - }, - { - "EventName": "L2C_ST_MISS", - "EventCode": "0xB5", - "BriefDescription": "Store miss L2C" - }, - { - "EventName": "L2C_REQ_TO_TL", - "EventCode": "0xB6", - "BriefDescription": "L2C request TL" - }, - { - "EventName": "L2C_EVICT", - "EventCode": "0xB7", - "BriefDescription": "L2C eviction" - }, - { - "EventName": "L2C_ORQ_FULL", - "EventCode": "0xB8", - "BriefDescription": "ORQ (outstanding read queue) full" - }, - { - "EventName": "L2C_CRQ_STALL", - "EventCode": "0xB9", - "BriefDescription": "CRQ (core read queue) stall (for each core)" - }, - { - "EventName": "L2C_CRQ_FULL", - "EventCode": "0xBA", - "BriefDescription": "CRQ full" - }, - { - "EventName": "L2C_PRB_LSU", - "EventCode": "0xBB", - "BriefDescription": "L2C probe LSU (for each core)" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/common.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/common.json new file mode 100755 index 000000000000..9026e6653c86 --- /dev/null +++ b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/common.json @@ -0,0 +1,172 @@ +[ + { + "EventName": "ACCESS_MMU_STLB", + "EventCode": "0x1", + "BriefDescription": "access MMU STLB" + }, + { + "EventName": "MISS_MMU_STLB", + "EventCode": "0x2", + "BriefDescription": "miss MMU STLB" + }, + { + "EventName": "ACCESS_MMU_PTE_C", + "EventCode": "0x3", + "BriefDescription": "access MMU PTE-Cache" + }, + { + "EventName": "MISS_MMU_PTE_C", + "EventCode": "0x4", + "BriefDescription": "miss MMU PTE-Cache" + }, + { + "EventName": "ROB_FLUSH", + "EventCode": "0x5", + "BriefDescription": "ROB flush (all kinds of exceptions)" + }, + { + "EventName": "BTB_PREDICTION_MISS", + "EventCode": "0x6", + "BriefDescription": "BTB prediction miss" + }, + { + "EventName": "ITLB_MISS", + "EventCode": "0x7", + "BriefDescription": "ITLB miss" + }, + { + "EventName": "SYNC_DEL_FETCH_G", + "EventCode": "0x8", + "BriefDescription": "SYNC delivery a fetch-group" + }, + { + "EventName": "ICACHE_MISS", + "EventCode": "0x9", + "BriefDescription": "ICache miss" + }, + { + "EventName": "BPU_BR_RETIRE", + "EventCode": "0xA", + "BriefDescription": "condition branch instruction retire" + }, + { + "EventName": "BPU_BR_MISS", + "EventCode": "0xB", + "BriefDescription": "condition branch instruction miss" + }, + { + "EventName": "RET_INS_RETIRE", + "EventCode": "0xC", + "BriefDescription": "return instruction retire" + }, + { + "EventName": "RET_INS_MISS", + "EventCode": "0xD", + "BriefDescription": "return instruction miss" + }, + { + "EventName": "INDIRECT_JR_MISS", + "EventCode": "0xE", + "BriefDescription": "indirect JR instruction miss (inlcude without target)" + }, + { + "EventName": "IBUF_VAL_ID_NORDY", + "EventCode": "0xF", + "BriefDescription": "IBUF valid while ID not ready" + }, + { + "EventName": "IBUF_NOVAL_ID_RDY", + "EventCode": "0x10", + "BriefDescription": "IBUF not valid while ID ready" + }, + { + "EventName": "REN_INT_PHY_REG_NORDY", + "EventCode": "0x11", + "BriefDescription": "REN integer physical register file is not ready" + }, + { + "EventName": "REN_FP_PHY_REG_NORDY", + "EventCode": "0x12", + "BriefDescription": "REN floating point physical register file is not ready" + }, + { + "EventName": "REN_CP_NORDY", + "EventCode": "0x13", + "BriefDescription": "REN checkpoint is not ready" + }, + { + "EventName": "DEC_VAL_ROB_NORDY", + "EventCode": "0x14", + "BriefDescription": "DEC is valid and ROB is not ready" + }, + { + "EventName": "OOD_FLUSH_LS_DEP", + "EventCode": "0x15", + "BriefDescription": "out of order flush due to load/store dependency" + }, + { + "EventName": "BRU_RET_IJR_INS", + "EventCode": "0x16", + "BriefDescription": "BRU retire an IJR instruction" + }, + { + "EventName": "ACCESS_DTLB", + "EventCode": "0x17", + "BriefDescription": "access DTLB" + }, + { + "EventName": "MISS_DTLB", + "EventCode": "0x18", + "BriefDescription": "miss DTLB" + }, + { + "EventName": "LOAD_INS_DCACHE", + "EventCode": "0x19", + "BriefDescription": "load instruction access DCache" + }, + { + "EventName": "LOAD_INS_MISS_DCACHE", + "EventCode": "0x1A", + "BriefDescription": "load instruction miss DCache" + }, + { + "EventName": "STORE_INS_DCACHE", + "EventCode": "0x1B", + "BriefDescription": "store/amo instruction access DCache" + }, + { + "EventName": "STORE_INS_MISS_DCACHE", + "EventCode": "0x1C", + "BriefDescription": "store/amo instruction miss DCache" + }, + { + "EventName": "LOAD_SCACHE", + "EventCode": "0x1D", + "BriefDescription": "load access SCache" + }, + { + "EventName": "STORE_SCACHE", + "EventCode": "0x1E", + "BriefDescription": "store access SCache" + }, + { + "EventName": "LOAD_MISS_SCACHE", + "EventCode": "0x1F", + "BriefDescription": "load miss SCache" + }, + { + "EventName": "STORE_MISS_SCACHE", + "EventCode": "0x20", + "BriefDescription": "store miss SCache" + }, + { + "EventName": "L2C_PF_REQ", + "EventCode": "0x21", + "BriefDescription": "L2C data-prefetcher request" + }, + { + "EventName": "L2C_PF_HIT", + "EventCode": "0x22", + "BriefDescription": "L2C data-prefetcher hit" + } +]
\ No newline at end of file diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/floating_point.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/floating_point.json deleted file mode 100644 index f35c788b28c7..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/floating_point.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "EventName": "FPU0_UNCOMMIT_WAKEUP_BY_LOAD", - "EventCode": "0x76", - "BriefDescription": "The oldest FPU0's instruction is woken up by load" - }, - { - "EventName": "FPU0_UNCOMMIT_WAKEUP_BY_FX", - "EventCode": "0x77", - "BriefDescription": "The oldest FPU0's instruction is woken up by INT" - }, - { - "EventName": "FPU0_UNCOMMIT_WAKEUP_BY_FP", - "EventCode": "0x78", - "BriefDescription": "The oldest FPU0's instruction is woken up by FP" - }, - { - "EventName": "FPU1_UNCOMMIT_WAKEUP_BY_LOAD", - "EventCode": "0x79", - "BriefDescription": "The oldest FPU1's instruction is wakeup by load" - }, - { - "EventName": "FPU1_UNCOMMIT_WAKEUP_BY_FX", - "EventCode": "0x7A", - "BriefDescription": "The oldest FPU1's instruction is wakeup by INT" - }, - { - "EventName": "FPU1_UNCOMMIT_WAKEUP_BY_FP", - "EventCode": "0x7B", - "BriefDescription": "The oldest FPU1's instruction is wakeup by FP" - }, - { - "EventName": "FPU0_COMMIT_WAIT", - "EventCode": "0x7C", - "BriefDescription": "The total cycles of the oldest BasicBlock which is waiting for FPU0" - }, - { - "EventName": "FPU1_COMMIT_WAIT", - "EventCode": "0x7D", - "BriefDescription": "The total cycles of the oldest BasicBlock which is waiting for FPU1" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/instructions.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/instructions.json deleted file mode 100644 index d5d57e8fcad9..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/instructions.json +++ /dev/null @@ -1,227 +0,0 @@ -[ - { - "EventName": "IFU_ROB_FLUSH", - "EventCode": "0x1", - "BriefDescription": "ROB flush (all kinds of exceptions)" - }, - { - "EventName": "IFU_BRU_FLUSH", - "EventCode": "0x2", - "BriefDescription": "BRU flush (jump/branch instruction prediction miss)" - }, - { - "EventName": "IFU_BPU_FLUSH", - "EventCode": "0x3", - "BriefDescription": "BPU flush (mBTB prediction miss)" - }, - { - "EventName": "IFU_MBTB_END_RET", - "EventCode": "0x4", - "BriefDescription": "mBTB ending with return instruction" - }, - { - "EventName": "IFU_MBTB_END_BRTK", - "EventCode": "0x5", - "BriefDescription": "mBTB ending with branch-tk instruction" - }, - { - "EventName": "IFU_MBTB_END_JUMP", - "EventCode": "0x6", - "BriefDescription": "mBTB ending with other jump instruction" - }, - { - "EventName": "IFU_MBTB_END_SEQT", - "EventCode": "0x7", - "BriefDescription": "mBTB ending with sequential (non-jump) instruction" - }, - { - "EventName": "IFU_MBTB_RET_MISS", - "EventCode": "0x8", - "BriefDescription": "mBTB return instruction miss" - }, - { - "EventName": "IFU_MBTB_BR_MISS", - "EventCode": "0x9", - "BriefDescription": "mBTB branch instruction miss" - }, - { - "EventName": "IFU_MBTB_JUMP_MISS", - "EventCode": "0xA", - "BriefDescription": "mBTB other jump instruction miss" - }, - { - "EventName": "IFU_MBTB_SEQT_MISS", - "EventCode": "0xB", - "BriefDescription": "mBTB sequential instruction miss" - }, - { - "EventName": "IFU_L0BTB_HIT", - "EventCode": "0xC", - "BriefDescription": "L0BTB hit" - }, - { - "EventName": "IFU_L1BTB_HIT", - "EventCode": "0xD", - "BriefDescription": "L1BTB hit" - }, - { - "EventName": "IFU_MBTB_STALL", - "EventCode": "0xE", - "BriefDescription": "mBTB stall" - }, - { - "EventName": "IFU_IDLE", - "EventCode": "0xF", - "BriefDescription": "IFU idle cycles wait for waking up " - }, - { - "EventName": "IFU_ITLB_MISS", - "EventCode": "0x10", - "BriefDescription": "ITLB miss" - }, - { - "EventName": "IFU_ITLB_STALL", - "EventCode": "0x11", - "BriefDescription": "ITLB miss to stall cycles" - }, - { - "EventName": "IFU_ITLB_ABORT", - "EventCode": "0x12", - "BriefDescription": "ITLB miss abort (the flying request is flushed by the backend)" - }, - { - "EventName": "IFU_ITLB_STALL_NULL", - "EventCode": "0x13", - "BriefDescription": "ITLB miss to stall cycles when IFU has no instruction" - }, - { - "EventName": "IFU_FG_REQ", - "EventCode": "0x14", - "BriefDescription": "Fetch-group access" - }, - { - "EventName": "IFU_FG_MISS", - "EventCode": "0x15", - "BriefDescription": "Fetch-group miss" - }, - { - "EventName": "IFU_ICACHE_STALL", - "EventCode": "0x16", - "BriefDescription": "ICache miss to stall cycles" - }, - { - "EventName": "IFU_ICACHE_ABORT", - "EventCode": "0x17", - "BriefDescription": "ICache miss abort (the flying request is flushed by backend)" - }, - { - "EventName": "IFU_IPRED_REFILL", - "EventCode": "0x18", - "BriefDescription": "IPrefetch refill" - }, - { - "EventName": "IFU_IPRED_MISS", - "EventCode": "0x19", - "BriefDescription": "IPrefetch miss" - }, - { - "EventName": "IFU_ICACHE_MISS_NULL", - "EventCode": "0x1A", - "BriefDescription": "ICache miss to stall cycles when IFU has no any instruction" - }, - { - "EventName": "IFU_BPU_BR_RETIRE", - "EventCode": "0x1B", - "BriefDescription": "Condition branch instruction retire" - }, - { - "EventName": "IFU_BPU_BR_MISS", - "EventCode": "0x1C", - "BriefDescription": "Condition branch instruction miss" - }, - { - "EventName": "IFU_BPU_RET_RETIRE", - "EventCode": "0x1D", - "BriefDescription": "Return instruction retire" - }, - { - "EventName": "IFU_BPU_RET_MISS", - "EventCode": "0x1E", - "BriefDescription": "Return instruction miss" - }, - { - "EventName": "IFU_BPU_IJR_RETIRE", - "EventCode": "0x1F", - "BriefDescription": "Indirect JR instruction retire" - }, - { - "EventName": "IFU_BPU_IJR_MISS", - "EventCode": "0x20", - "BriefDescription": "Indirect JR instruction miss (including without target)" - }, - { - "EventName": "IFU_BPU_IJR_WOT", - "EventCode": "0x21", - "BriefDescription": "Indirect JR instruction without target (IJTP miss)" - }, - { - "EventName": "IFU_IBUF_ISSUE", - "EventCode": "0x22", - "BriefDescription": "IBUF valid while ID ready" - }, - { - "EventName": "IFU_IBUF_NORDY", - "EventCode": "0x23", - "BriefDescription": "IBUF valid while ID not ready" - }, - { - "EventName": "IFU_IBUF_NOVAL", - "EventCode": "0x24", - "BriefDescription": "IBUF not valid while ID ready" - }, - { - "EventName": "IFU_BB_1INSN_ISSUE", - "EventCode": "0x25", - "BriefDescription": "IBUF issues 1 INSN in a BasicBlock" - }, - { - "EventName": "IFU_BB_2INSN_ISSUE", - "EventCode": "0x26", - "BriefDescription": "IBUF issues 2 INSN in a BasicBlock" - }, - { - "EventName": "IFU_BB_3INSN_ISSUE", - "EventCode": "0x27", - "BriefDescription": "IBUF issues 3 INSN in a BasicBlock" - }, - { - "EventName": "IFU_BB_4INSN_ISSUE", - "EventCode": "0x28", - "BriefDescription": "IBUF issues 4 INSN in a BasicBlock" - }, - { - "EventName": "IFU_BB_5INSN_ISSUE", - "EventCode": "0x29", - "BriefDescription": "IBUF issues 5 INSN in a BasicBlock" - }, - { - "EventName": "IFU_BB_1INSN_FF_MT1", - "EventCode": "0x2A", - "BriefDescription": "IBUF issues 1 INSN while IFIFO more than 1 insn (>1)" - }, - { - "EventName": "IFU_BB_2INSN_FF_MT2", - "EventCode": "0x2B", - "BriefDescription": "IBUF issues 2 INSN while IFIFO more than 2 insn (>2)" - }, - { - "EventName": "IFU_BB_3INSB_FF_MT3", - "EventCode": "0x2C", - "BriefDescription": "IBUF issues 3 INSN while IFIFO more than 3 insn (>3)" - }, - { - "EventName": "IFU_BB_4INSN_FF_MT4", - "EventCode": "0x2D", - "BriefDescription": "IBUF issues 4 INSN while IFIFO more than 4 insn (>4)" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/integer.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/integer.json deleted file mode 100644 index d66d45814ea2..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/integer.json +++ /dev/null @@ -1,92 +0,0 @@ -[ - { - "EventName": "IU_INT_FREELIST_FULL", - "EventCode": "0x4A", - "BriefDescription": "INT freelist full (not ready)" - }, - { - "EventName": "IU_FP_FREELIST_FULL", - "EventCode": "0x4B", - "BriefDescription": "FP freelist full" - }, - { - "EventName": "IU_VEC_FREELIST_FULL", - "EventCode": "0x4C", - "BriefDescription": "VEC freelist full" - }, - { - "EventName": "IU_CHECKPOINT_FULL", - "EventCode": "0x4D", - "BriefDescription": "The map-stack full" - }, - { - "EventName": "IU_ROB_FULL", - "EventCode": "0x4E", - "BriefDescription": "Reorder buffer full" - }, - { - "EventName": "IU_ALU_RSV_FULL", - "EventCode": "0x4F", - "BriefDescription": "ALU reservation station full" - }, - { - "EventName": "IU_BR_RSV_FULL", - "EventCode": "0x50", - "BriefDescription": "BR reservation station full" - }, - { - "EventName": "IU_MDIV_RSV_FULL", - "EventCode": "0x51", - "BriefDescription": "MDIV reservation station full" - }, - { - "EventName": "IU_LSU_RSV_FULL", - "EventCode": "0x52", - "BriefDescription": "LSU reservation station full" - }, - { - "EventName": "IU_FP_RSV_FULL", - "EventCode": "0x53", - "BriefDescription": "FP reservation station full" - }, - { - "EventName": "IU_VEC_RST_FULL", - "EventCode": "0x54", - "BriefDescription": "VEC reservation station full" - }, - { - "EventName": "IU_LDQ_FULL", - "EventCode": "0x55", - "BriefDescription": "LSU LDQ full" - }, - { - "EventName": "IU_STQ_FULL", - "EventCode": "0x56", - "BriefDescription": "LSU STQ full" - }, - { - "EventName": "IFU_BB_5INSN_ISSUE", - "EventCode": "0x57", - "BriefDescription": "ROB commits pdead BasicBlock with exception" - }, - { - "EventName": "IU_COMMIT_SINGLE_VAL", - "EventCode": "0x58", - "BriefDescription": "ROB commits only one valid BasicBlock at the cycle" - }, - { - "EventName": "IU_COMMIT_DOUBLE_VAL", - "EventCode": "0x59", - "BriefDescription": "ROB commits two valid BasicBlock at the cycle" - }, - { - "EventName": "IU_COMMIT_PAGEFAULT", - "EventCode": "0x5A", - "BriefDescription": "ROB commits a pagefault exception" - }, - { - "EventName": "IU_UNCOMMIT", - "EventCode": "0x5B", - "BriefDescription": "ROB can't commit BasicBlock because of unfinished instruction" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/load_store.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/load_store.json deleted file mode 100644 index a31f790a8a59..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/load_store.json +++ /dev/null @@ -1,182 +0,0 @@ -[ - { - "EventName": "LSU_C_LD_NUM", - "EventCode": "0x86", - "BriefDescription": "Cacheable load instruction" - }, - { - "EventName": "LSU_LD_REPLAY_NUM", - "EventCode": "0x87", - "BriefDescription": "Load instruction replay" - }, - { - "EventName": "LSU_C_ST_NUM", - "EventCode": "0x88", - "BriefDescription": "Cacheable store instruction" - }, - { - "EventName": "LSU_ST_ALLOC_MB_FULL_NUM", - "EventCode": "0x89", - "BriefDescription": "Cacheable store allocates MB but MB (merge buffer) is full" - }, - { - "EventName": "LSU_NC_ST_ALLOC_WCB_FULL_NUM", - "EventCode": "0x8A", - "BriefDescription": "Uncacheable store allocates WCB (Write Combination Buffer) but WCB is full." - }, - { - "EventName": "LSU_ST_HAS_PA_NO_DAT_NUM", - "EventCode": "0x8B", - "BriefDescription": "Store instruction get PA but no data" - }, - { - "EventName": "LSU_BP_DAT_ALU_NUM", - "EventCode": "0x8C", - "BriefDescription": "Bypass data from ALU" - }, - { - "EventName": "LSU_BP_DAT_BRU_NUM", - "EventCode": "0x8D", - "BriefDescription": "Bypass data from BRU" - }, - { - "EventName": "LSU_BP_DAT_MDIV_NUM", - "EventCode": "0x8E", - "BriefDescription": "Bypass data from MDIV" - }, - { - "EventName": "LSU_BP_DAT_FPU_NUM", - "EventCode": "0x8F", - "BriefDescription": "Bypass data from FPU" - }, - { - "EventName": "LSU_BP_DAT_VEC_NUM", - "EventCode": "0x90", - "BriefDescription": "Bypass data from VEC" - }, - { - "EventName": "LSU_BP_DAT_LSU_NUM", - "EventCode": "0x91", - "BriefDescription": "Bypass data from LSU" - }, - { - "EventName": "LSU_BP_DAT_LSU_MISPREDICT_NUM", - "EventCode": "0x92", - "BriefDescription": "Load wakeup by release but mispredict" - }, - { - "EventName": "LSU_LD_REQ_L1D_NUM", - "EventCode": "0x93", - "BriefDescription": "Load request DCache" - }, - { - "EventName": "LSU_LD_MISS_L1D_NUM", - "EventCode": "0x94", - "BriefDescription": "Load miss DCache" - }, - { - "EventName": "LSU_LD_MISS_L1D_EVICT_PF_N UM", - "EventCode": "0x95", - "BriefDescription": "Load misses in DCache and the cache line is evicted by the prefetcher" - }, - { - "EventName": "LSU_LD_HIT_L1D_NUM", - "EventCode": "0x96", - "BriefDescription": "Load hit DCache" - }, - { - "EventName": "LSU_LD_HIT_L1D_PF_NUM", - "EventCode": "0x97", - "BriefDescription": "Load hit DCache and the cache line is prefetch" - }, - { - "EventName": "LSU_PF_REQ_L2C_NUM", - "EventCode": "0x98", - "BriefDescription": "Prefetcher request L2C" - }, - { - "EventName": "LSU_ST_REQ_L1D_NUM", - "EventCode": "0x99", - "BriefDescription": "Store request DCache" - }, - { - "EventName": "LSU_ST_MISS_L1D_NUM", - "EventCode": "0x9A", - "BriefDescription": "Store miss DCache" - }, - { - "EventName": "LSU_ST_HIT_L1D_NUM", - "EventCode": "0x9B", - "BriefDescription": "Store hit DCache" - }, - { - "EventName": "LSU_ST_HIT_L1D_SN_NUM", - "EventCode": "0x9C", - "BriefDescription": "Store hit DCache MESI is S state" - }, - { - "EventName": "LSU_LD_ALLOC_MQ_FULL_NUM", - "EventCode": "0x9D", - "BriefDescription": "Load allocate MISSQ but MISSQ is full" - }, - { - "EventName": "LSU_LD_ALLOC_MQ_WAYLOCK_NUM", - "EventCode": "0x9E", - "BriefDescription": "Load allocate MISSQ meet way-lock" - }, - { - "EventName": "LSU_DTLB_REQ", - "EventCode": "0x9F", - "BriefDescription": "Request DTLB" - }, - { - "EventName": "LSU_DTLB_MISS", - "EventCode": "0xA0", - "BriefDescription": "Miss DTLB" - }, - { - "EventName": "LSU_SLOT_REQ", - "EventCode": "0xA1", - "BriefDescription": "DTLB miss to request MMU" - }, - { - "EventName": "LSU_SLOT_STALL", - "EventCode": "0xA2", - "BriefDescription": "DTLB request MMU cycles" - }, - { - "EventName": "LSU_SLOT_ABORT", - "EventCode": "0xA3", - "BriefDescription": "DTLB flying miss is abort" - }, - { - "EventName": "LSU_RV_EMPTY", - "EventCode": "0xA4", - "BriefDescription": "RV empty when allocate and source data is ready (can bypass)" - }, - { - "EventName": "LSU_LD_BP_LD_NUM", - "EventCode": "0xA5", - "BriefDescription": "Load bypass load" - }, - { - "EventName": "LSU_LD_BP_ST_NUM", - "EventCode": "0xA6", - "BriefDescription": "Load bypass store" - }, - { - "EventName": "LSU_NUKE_LD_LD_NUM", - "EventCode": "0xA7", - "BriefDescription": "Load bypass load cause nuke flush" - }, - { - "EventName": "LSU_NUKE_LD_ST_NUM", - "EventCode": "0xA8", - "BriefDescription": "Load bypass store cause nuke flush" - }, - { - "EventName": "LSU_LD_HIT_MDB_NUM", - "EventCode": "0xA9", - "BriefDescription": "Load hit MDB (Memory Disambiguation Buffer)" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/memory.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/memory.json deleted file mode 100644 index 59a18ad385ee..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/memory.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "EventName": "MMU_IFU_REQ", - "EventCode": "0x36", - "BriefDescription": "ITLB miss to access MMU TLBs" - }, - { - "EventName": "MMU_IFU_MISS", - "EventCode": "0x37", - "BriefDescription": "ITLB miss to access MMU TLBs, which also miss" - }, - { - "EventName": "MMU_LSU_REQ", - "EventCode": "0x38", - "BriefDescription": "DTLB miss to access MMU TLBs" - }, - { - "EventName": "MMU_LSU_MISS", - "EventCode": "0x39", - "BriefDescription": "DTLB miss to access MMU TLBs, which also miss" - }, - { - "EventName": "MMU_IFU_PTEC_REQ", - "EventCode": "0x3A", - "BriefDescription": "ITLB miss to walk PTW then access PTE-Cache" - }, - { - "EventName": "MMU_IFU_PTEC_HIT", - "EventCode": "0x3B", - "BriefDescription": "ITLB miss to walk PTW then hit PTE-Cache" - }, - { - "EventName": "MMU_IFU_L2C_REQ", - "EventCode": "0x3C", - "BriefDescription": "ITLB miss to walk PTW then request L2C" - }, - { - "EventName": "MMU_IFU_L2C_WAIT", - "EventCode": "0x3D", - "BriefDescription": "ITLB miss to walk PTW then wait for L2C to stall cycles" - }, - { - "EventName": "MMU_LSU_PTEC_REQ", - "EventCode": "0x3E", - "BriefDescription": "DTLB miss to walk PTW and then access PTE-Cache" - }, - { - "EventName": "MMU_LSU_PTEC_HIT", - "EventCode": "0x3F", - "BriefDescription": "DTLB miss to walk PTW and then hit PTE-Cache" - }, - { - "EventName": "MMU_LSU_L2C_REQ", - "EventCode": "0x40", - "BriefDescription": "DTLB miss to walk PTW and then request L2C" - }, - { - "EventName": "MMU_LSU_L2C_WAIT", - "EventCode": "0x41", - "BriefDescription": "DTLB miss to walk PTW and then wait for L2C to stall cycles" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/multiply_div.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/multiply_div.json deleted file mode 100644 index c1aac0a28170..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/multiply_div.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "EventName": "MDIV_DIV_INSTR", - "EventCode": "0x64", - "BriefDescription": "Divide instruction number" - }, - { - "EventName": "MDIV_WAKEUP_BY_LOAD", - "EventCode": "0x65", - "BriefDescription": "Wakeup by load instruction" - }, - { - "EventName": "MDIV_WAKEUP_BY_FP", - "EventCode": "0x66", - "BriefDescription": "Wakeup by FP instruction" - }, - { - "EventName": "MDIV_WAKEUP_BY_FX", - "EventCode": "0x67", - "BriefDescription": "Wakeup by INT instruction" - }, - { - "EventName": "MDIV_DIV_BUSY", - "EventCode": "0x68", - "BriefDescription": "The total cycles of divide instruction execution" - }, - { - "EventName": "MDIV_EARLY_EXIT", - "EventCode": "0x69", - "BriefDescription": "Divide instructions finished ahead of time" - }, - { - "EventName": "MDIV_COMMIT_WAIT", - "EventCode": "0x6A", - "BriefDescription": "The total cycles of the oldest basic block which is waiting for MDIV" - }, - { - "EventName": "MDIV_UNCOMMIT_WAKEUP_BY_LOAD", - "EventCode": "0x6B", - "BriefDescription": "The oldest MDIV's instruction is woken up by load" - }, - { - "EventName": "MDIV_UNCOMMIT_WAKEUP_BY_FX", - "EventCode": "0x6C", - "BriefDescription": "The oldest MDIV's instruction is woken up by INT" - }, - { - "EventName": "MDIV_UNCOMMIT_WAKEUP_BY_FP", - "EventCode": "0x6D", - "BriefDescription": "The oldest MDIV's instruction is woken up by FP" - } -] diff --git a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/vector.json b/tools/perf/pmu-events/arch/riscv/starfive/dubhe/vector.json deleted file mode 100644 index ee4889465938..000000000000 --- a/tools/perf/pmu-events/arch/riscv/starfive/dubhe/vector.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "EventName": "VEC_LD_CL_MFULL", - "EventCode": "0xC4", - "BriefDescription": "load cache-line manager full" - }, - { - "EventName": "VEC_LD_CL_MREP_VA2PA_ARB", - "EventCode": "0xC5", - "BriefDescription": "load cache-line manager replay due to VA2PA arbitration" - }, - { - "EventName": "VEC_LD_CL_MREP_VDCACHE_ARB", - "EventCode": "0xC6", - "BriefDescription": "load cache-line manager replay due to VDCache arbitration" - }, - { - "EventName": "VEC_LD_QFULL", - "EventCode": "0xC7", - "BriefDescription": "load queue full" - }, - { - "EventName": "VEC_ST_CL_MFULL", - "EventCode": "0xC8", - "BriefDescription": "store cache-line manager full" - }, - { - "EventName": "VEC_ST_CL_MREP_VA2PA_ARB", - "EventCode": "0xC9", - "BriefDescription": "store cache-line manager replay due to VA2PA arbitration" - }, - { - "EventName": "VEC_ST_WAIT_CMT_NOT_OLDEST", - "EventCode": "0xCA", - "BriefDescription": "store wait to commit due to not oldest" - }, - { - "EventName": "VEC_LD_ALLOC_MISS_QFAIL_FULL", - "EventCode": "0xCB", - "BriefDescription": "load allocate miss queue fail due to full" - }, - { - "EventName": "VEC_ST_ALLOC_MERGE_BUFF_FAIL_FULL", - "EventCode": "0xCC", - "BriefDescription": "store allocates merge buffer fail due to full" - }, - { - "EventName": "VEC_LD_VDCACHE", - "EventCode": "0xCD", - "BriefDescription": "load access VDCache" - }, - { - "EventName": "VEC_LD_MISS_VDCACHE", - "EventCode": "0xCE", - "BriefDescription": "load miss VDCache" - }, - { - "EventName": "VEC_COM_IRV_STALL", - "EventCode": "0xCF", - "BriefDescription": "computing instruction RV stall" - }, - { - "EventName": "VEC_COM_IRV_STALL_VECTAG", - "EventCode": "0xD0", - "BriefDescription": "computing instruction RV stall due to vectag" - }, - { - "EventName": "VEC_COM_IRV_STALL_REGBUSY_FULL", - "EventCode": "0xD1", - "BriefDescription": "computing instruction RV stall due to REGBUSY full" - }, - { - "EventName": "VEC_COM_IRV_E1_STALL_WAW_WAR", - "EventCode": "0xD2", - "BriefDescription": "computing instruction RV's entry1 stall due to WAW or WAR hazard" - }, - { - "EventName": "VEC_COM_IRV_E1_READY_E0_NREADY", - "EventCode": "0xD3", - "BriefDescription": "computing instruction RV's entry1 ready while entry0 not ready" - }, - { - "EventName": "VEC_COM_IRV_E0_STALL_WAIT_LD_DATA", - "EventCode": "0xD4", - "BriefDescription": "computing instruction RV's entry 0 stall due to wait load's data" - }, - { - "EventName": "VEC_COM_IRV_E0_STALL_PREV_COM_INST", - "EventCode": "0xD5", - "BriefDescription": "computing instruction RV's entry 0 stall due to wait previous computing instruction's result" - }, - { - "EventName": "VEC_LD_ST_IRV_STALL", - "EventCode": "0xD6", - "BriefDescription": "load/store instruction RV's stall" - }, - { - "EventName": "VEC_LD_ST_IRV_STALL_VECTAG", - "EventCode": "0xD7", - "BriefDescription": "load/store instruction RV's stall due to vectag" - }, - { - "EventName": "VEC_LD_ST_IRV_STALL_REGBUSY_FULL", - "EventCode": "0xD8", - "BriefDescription": "load/store instruction RV's stall due to REGBUSY full" - }, - { - "EventName": "VEC_LD_ST_IRV_E1_STALL_WAW_WAR", - "EventCode": "0xD9", - "BriefDescription": "load/store instruction RV's entry1 stall due to WAW or WAR hazard" - }, - { - "EventName": "VEC_LD_ST_IRV_E1_READY_E0_NREADY", - "EventCode": "0xDA", - "BriefDescription": "load/store instruction RV's entry1 ready while entry0 not ready" - } -] |