perf vendor events riscv: Add XuanTie C930 JSON files
Subsystems (3)
v2 cover perf vendor events riscv: Add XuanTie C930 JSON files
From: Chen Pei <[email protected]>
XuanTie[1] is the RISC-V processor brand of C-SKY Microsystems Co., Ltd. This patch series first adds vendor XuanTie, then adds XuanTie C930 CPU compatible, and finally adds pmu json files for XuanTie C930, including topdown and some other metric groups.
Note:
According to the "Standard Manufacturer's IDENTIFICATION CODE"[2], the manufacturer of Code '0x5b7' has changed to C-SKY Microsystems Co., Ltd.
[1] https://www.xrvm.com/
[2] https://www.jedec.org/standards-documents/docs/jep-106ab
Chen Pei (4):
dt-bindings: vendor-prefixes: Add prefix for XuanTie
dt-bindings: riscv: Add XuanTie C930 CPU compatible perf vendor events riscv: Add XuanTie C930 JSON file perf vendor events riscv: Add XuanTie C930 metrics
.../devicetree/bindings/riscv/cpus.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + tools/perf/pmu-events/arch/riscv/mapfile.csv | 1 + .../arch/riscv/xuantie/c930/basic.json | 117 ++++ .../arch/riscv/xuantie/c930/ieu.json | 97 ++++ .../arch/riscv/xuantie/c930/ifu.json | 62 ++ .../arch/riscv/xuantie/c930/l2c.json | 87 +++ .../arch/riscv/xuantie/c930/lsu.json | 182 ++++++ .../arch/riscv/xuantie/c930/metrics.json | 538 ++++++++++++++++++ .../arch/riscv/xuantie/c930/vfpu.json | 177 ++++++ 10 files changed, 1264 insertions(+) create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/basic.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/ieu.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/ifu.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/l2c.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/lsu.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/metrics.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/vfpu.json
Signature · 1 line
2.50.1
PATCH v2 1/4 dt-bindings: vendor-prefixes: Add prefix for XuanTie
From: Chen Pei <[email protected]>
Add new vendor strings to dt bindings for RISC-V vendor XuanTie.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1829,6 +1829,8 @@ patternProperties: description: Xilinx "^xnano,.*": description: Xnano + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie) "^xunlong,.*": description: Shenzhen Xunlong Software CO.,Limited "^xylon,.*":
Signature · 1 line
2.50.1
Re: [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add prefix for XuanTie
Quoted 15 lines · On Fri, Nov 21, 2025 at 2:35 PM <[email protected]> wrote:
From: Chen Pei <[email protected]>
Add new vendor strings to dt bindings for RISC-V vendor XuanTie.
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 1833
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -1829,6 +1829,8 @@ patternProperties: description: Xilinx "^xnano,.*": description: Xnano + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie)
Yes, According to the "Standard Manufacturer's IDENTIFICATION CODE" [1]. The manufacturer of Code '0x5b7' has changed from thead to xuantie in 04/30/2024.
105 T-HEAD Semiconductor Co Ltd -> C-SKY Microsystems Co Ltd (XuanTie)
The XuanTie is the abbreviation of C-SKY Microsystems Co., Ltd, which belongs to Alibaba Damo Academy.
[1] https://www.jedec.org/standards-documents/docs/jep-106ab
Quoted 6 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-1"^xunlong,.*": description: Shenzhen Xunlong Software CO.,Limited "^xylon,.*": --2.50.1
--
Best Regards
Guo Ren
Re: [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add prefix for XuanTie
In reply to [email protected]Quoted 14 lines · On Fri, Nov 21, 2025 at 02:34:36PM +0800, [email protected] wrote:
From: Chen Pei <[email protected]>
Add new vendor strings to dt bindings for RISC-V vendor XuanTie.
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 1833
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -1829,6 +1829,8 @@ patternProperties: description: Xilinx "^xnano,.*": description: Xnano + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie)
We do not create new prefixes for existing entries. You have already csky, alibaba and thead and probably many more. Choose some appropriate.
Your commit msg should also explain anything unusual here, like above.
Best regards,
Krzysztof
Re: [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add prefix for XuanTie
Quoted 10 lines · Krzysztof Kozlowski
Quoted 9 lines · On Fri, Nov 21, 2025 at 02:34:36PM +0800, [email protected] wrote:
From: Chen Pei <[email protected]>
Add new vendor strings to dt bindings for RISC-V vendor XuanTie.
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Quoted 13 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 1833
Quoted 10 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -1829,6 +1829,8 @@ patternProperties: description: Xilinx "^xnano,.*": description: Xnano + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie)We do not create new prefixes for existing entries. You have already csky, alibaba and thead and probably many more. Choose some appropriate.
When the vendor literally says "C-SKY", it's hard to buy why csky shouldn't be used here. Xuantie is described as being a brand, where at least t-head was a company. This seems akin to having "snapdragon,msm8660" instead of "qcom,msm8660", for example.
Quoted 6 lines
Your commit msg should also explain anything unusual here, like above.
Best regards,
Krzysztof
Re: [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add prefix for XuanTie
Quoted 12 lines · Conor Dooley
Quoted 10 lines · Krzysztof Kozlowski
Quoted 9 lines · On Fri, Nov 21, 2025 at 02:34:36PM +0800, [email protected] wrote:
From: Chen Pei <[email protected]>
Add new vendor strings to dt bindings for RISC-V vendor XuanTie.
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0@@ -1829,6 +1829,8 @@ patternProperties:Quoted 8 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 1833
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0description: Xilinx "^xnano,.*": description: Xnano + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie)We do not create new prefixes for existing entries. You have already csky, alibaba and thead and probably many more. Choose some appropriate.
We could leave the one C-SKY vendor entry, how about:
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -2
@@ -347,8 +347,8 @@ patternProperties: description: Creative Technology Ltd "^crystalfontz,.*": description: Crystalfontz America, Inc. - "^csky,.*": - description: Hangzhou C-SKY Microsystems Co., Ltd + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie) "^csot,.*": description: Guangzhou China Star Optoelectronics Technology Co., Ltd "^csq,.*":
The arch/csky is the architecture name, which means "xuantie,csky".
The c810 is the CPU product name, which means "xuantie,c810" of the "xuantie,csky" architecture.
The c930 is the CPU product name, which means "xuantie,c930".
Quoted 5 lines
When the vendor literally says "C-SKY", it's hard to buy why csky shouldn't be used here. Xuantie is described as being a brand, where at least t-head was a company. This seems akin to having "snapdragon,msm8660" instead of "qcom,msm8660", for example.
Yes, XuanTie is not only a brand, but also the abbreviation of C-SKY Microsystems Co., Ltd.
Just like:
"^100ask,.*":
description: Baiwen.com (100ask).
"^linksys,.*":
description: Belkin International, Inc. (Linksys)
Quoted 7 lines
Quoted 7 lines
Your commit msg should also explain anything unusual here, like above.
Best regards,
Krzysztof
Signature · 2 lines
Best Regards Guo Ren
Re: [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add prefix for XuanTie
Quoted 50 lines · Guo Ren
Quoted 12 lines · Conor Dooley
Quoted 10 lines · Krzysztof Kozlowski
Quoted 9 lines · On Fri, Nov 21, 2025 at 02:34:36PM +0800, [email protected] wrote:
From: Chen Pei <[email protected]>
Add new vendor strings to dt bindings for RISC-V vendor XuanTie.
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0@@ -1829,6 +1829,8 @@ patternProperties:Quoted 8 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 1833
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0description: Xilinx "^xnano,.*": description: Xnano + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie)We do not create new prefixes for existing entries. You have already csky, alibaba and thead and probably many more. Choose some appropriate.
We could leave the one C-SKY vendor entry, how about:
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-2@@ -347,8 +347,8 @@ patternProperties: description: Creative Technology Ltd "^crystalfontz,.*": description: Crystalfontz America, Inc. - "^csky,.*": - description: Hangzhou C-SKY Microsystems Co., Ltd + "^xuantie,.*": + description: C-SKY Microsystems Co., Ltd. (XuanTie) "^csot,.*": description: Guangzhou China Star Optoelectronics Technology Co., Ltd "^csq,.*":The
arch/cskyis the architecture name, which means "xuantie,csky".The c810 is the CPU product name, which means "xuantie,c810" of the "xuantie,csky" architecture.
The c930 is the CPU product name, which means "xuantie,c930".
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
When the vendor literally says "C-SKY", it's hard to buy why csky shouldn't be used here. Xuantie is described as being a brand, where at least t-head was a company. This seems akin to having "snapdragon,msm8660" instead of "qcom,msm8660", for example.
Yes, XuanTie is not only a brand, but also the abbreviation of C-SKY Microsystems Co., Ltd.
"XuanTie is a brand", so not suitable for vendor prefixes.
https://www.xrvm.com/declaration
What's more:
<<A reference to “C-SKY”, “we” or “us” is a reference to C-SKY Microsystems Co., Ltd. of Room >>
So again c-sky.
Best regards,
Krzysztof
PATCH v2 2/4 dt-bindings: riscv: Add XuanTie C930 CPU compatible
In reply to [email protected]From: Chen Pei <[email protected]>
Update Documentation for supporting XuanTie C930.
--- Documentation/devicetree/bindings/riscv/cpus.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/cpus.yaml +1 -0
@@ -65,6 +65,7 @@ properties: - thead,c908 - thead,c910 - thead,c920 + - xuantie,c930 - const: riscv - items: - enum:
Signature · 1 line
2.50.1
Re: [PATCH v2 2/4] dt-bindings: riscv: Add XuanTie C930 CPU compatible
Quoted 15 lines · On Fri, Nov 21, 2025 at 2:35 PM <[email protected]> wrote:
From: Chen Pei <[email protected]>
Update Documentation for supporting XuanTie C930.
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/riscv/cpus.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/riscv/cpus.yaml +0
-0
Documentation/devicetree/bindings/riscv/cpus.yaml properties: · line 68
Quoted 4 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +1
-0@@ -65,6 +65,7 @@ properties: - thead,c908 - thead,c910 - thead,c920 + - xuantie,c930
Yes, c930 belongs to XuanTie, not T-HEAD.
Signature · 2 lines
Best Regards Guo Ren
Re: [PATCH v2 2/4] dt-bindings: riscv: Add XuanTie C930 CPU compatible
In reply to [email protected]Quoted 3 lines · On Fri, Nov 21, 2025 at 02:34:37PM +0800, [email protected] wrote:
From: Chen Pei <[email protected]>
Update Documentation for supporting XuanTie C930.
You just copied here commit subject and diff. Write something useful instead.
Quoted 11 lines
Signed-off-by Chen Pei <[email protected]>--- Documentation/devicetree/bindings/riscv/cpus.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/riscv/cpus.yaml +0
-0
Documentation/devicetree/bindings/riscv/cpus.yaml properties: · line 68
Quoted 4 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +1
-0@@ -65,6 +65,7 @@ properties: - thead,c908 - thead,c910 - thead,c920 + - xuantie,c930
So that is thead...
Quoted 6 lines
Documentation/devicetree/bindings/riscv/cpus.yaml +0
-0- const: riscv - items: - enum:Signature · 1 line
2.50.1
PATCH v2 3/4 perf vendor events riscv: Add XuanTie C930 JSON file
In reply to [email protected]From: Chen Pei <[email protected]>
Add pmu json file of XuanTie C930.
--- tools/perf/pmu-events/arch/riscv/mapfile.csv | 1 + .../arch/riscv/xuantie/c930/basic.json | 117 +++++++++++ .../arch/riscv/xuantie/c930/ieu.json | 97 ++++++++++ .../arch/riscv/xuantie/c930/ifu.json | 62 ++++++ .../arch/riscv/xuantie/c930/l2c.json | 87 +++++++++ .../arch/riscv/xuantie/c930/lsu.json | 182 ++++++++++++++++++ .../arch/riscv/xuantie/c930/vfpu.json | 177 +++++++++++++++++ 7 files changed, 723 insertions(+) create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/basic.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/ieu.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/ifu.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/l2c.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/lsu.json create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/vfpu.json
tools/perf/pmu-events/arch/riscv/mapfile.csv +1 -0
@@ -20,5 +20,6 @@ 0x489-0x8000000000000008-0x[[:xdigit:]]+,v1,sifive/p550,core 0x489-0x8000000000000[1-6]08-0x[9b][[:xdigit:]]+,v1,sifive/p650,core 0x5b7-0x0-0x0,v1,thead/c900-legacy,core +0x5b7-0x8000000009201600-0x[[:xdigit:]]+,v1,xuantie/c930,core 0x67e-0x80000000db0000[89]0-0x[[:xdigit:]]+,v1,starfive/dubhe-80,core 0x31e-0x8000000000008a45-0x[[:xdigit:]]+,v1,andes/ax45,core
tools/perf/pmu-events/arch/riscv/xuantie/c930/basic.json new file +117 -0
117 lines not on this page · raw message
tools/perf/pmu-events/arch/riscv/xuantie/c930/ieu.json new file +97 -0
97 lines not on this page · raw message
tools/perf/pmu-events/arch/riscv/xuantie/c930/ifu.json new file +62 -0
62 lines not on this page · raw message
tools/perf/pmu-events/arch/riscv/xuantie/c930/l2c.json new file +87 -0
87 lines not on this page · raw message
tools/perf/pmu-events/arch/riscv/xuantie/c930/lsu.json new file +182 -0
182 lines not on this page · raw message
tools/perf/pmu-events/arch/riscv/xuantie/c930/vfpu.json new file +177 -0
177 lines not on this page · raw message
Signature · 1 line
2.50.1
PATCH v2 4/4 perf vendor events riscv: Add XuanTie C930 metrics
In reply to [email protected]From: Chen Pei <[email protected]>
This patch adds XuanTie C930 metrics, including topdown and some other metric groups.
--- .../arch/riscv/xuantie/c930/metrics.json | 538 ++++++++++++++++++ 1 file changed, 538 insertions(+) create mode 100644 tools/perf/pmu-events/arch/riscv/xuantie/c930/metrics.json
tools/perf/pmu-events/arch/riscv/xuantie/c930/metrics.json new file +538 -0
@@ -0,0 +1,538 @@ +[ + { + "MetricExpr": "(topdown.frontend_bound.slots - topdown.bad_speculation.recovery_bubbles*8) / topdown.slots ", + "PublicDescription": "Fraction of slots unused due to the frontend's inability to supply enough uops", + "BriefDescription": "Fraction of slots unused due to the frontend's inability to supply enough uops", + "CommonMetricgroupName": "TopdownL1", + "MetricGroup": "Common;TopdownL1", + "MetricName": "topdown.frontend_bound.rate" + }, + { + "MetricExpr": "(uop.spec - uop.ret + topdown.bad_speculation.recovery_bubbles*8) / topdown.slots", + "PublicDescription": "Fraction of slots wasted due to incorrect speculations", + "BriefDescription": "Fraction of slots wasted due to incorrect speculations", + "CommonMetricgroupName": "TopdownL1", + "MetricGroup": "Common;TopdownL1", + "MetricName": "topdown.bad_speculation.rate" + }, + { + "MetricExpr": "uop.ret / topdown.slots", + "PublicDescription": "Fraction of slots that retired", + "BriefDescription": "Fraction of slots that retired", + "CommonMetricgroupName": "TopdownL1", + "MetricGroup": "Common;TopdownL1", + "MetricName": "topdown.retiring.rate" + }, + { + "MetricExpr": "1 - (topdown.frontend_bound.rate + topdown.bad_speculation.rate + topdown.retiring.rate)", + "PublicDescription": "Fraction of slots unused due to a lack of backend resources", + "BriefDescription": "Fraction of slots unused due to a lack of backend resources", + "CommonMetricgroupName": "TopdownL1", + "MetricGroup": "Common;TopdownL1", + "MetricName": "topdown.backend_bound.rate" + }, + { + "MetricExpr": "topdown.frontend_bound.latency.slots / topdown.slots", + "PublicDescription": "Fetch latency bound L2 topdown metric", + "BriefDescription": "Fetch latency bound L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.frontend_bound.latency.rate" + }, + { + "MetricExpr": "topdown.frontend_bound.rate - topdown.frontend_bound.latency.rate", + "PublicDescription": "Fetch bandwidth bound L2 topdown metric", + "BriefDescription": "Fetch bandwidth bound L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.frontend_bound.bandwidth.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.rate * inst.mispred.brjmp.spec / (inst.mispred.brjmp.spec + topdown.bad_speculation.exception_flush + topdown.bad_speculation.interrupt_flush + topdown.bad_speculation.other_flush + topdown.bad_speculation.rar_hazard_early_flush + topdown.bad_speculation.raw_hazard_early_flush)", + "PublicDescription": "Branch mispredicts L2 topdown metric", + "BriefDescription": "Branch mispredicts L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.bad_speculation.branch_mispredicts.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.rate * (topdown.bad_speculation.raw_hazard_early_flush + topdown.bad_speculation.rar_hazard_early_flush) / (inst.mispred.brjmp.spec + topdown.bad_speculation.exception_flush + topdown.bad_speculation.interrupt_flush + topdown.bad_speculation.other_flush + topdown.bad_speculation.rar_hazard_early_flush + topdown.bad_speculation.raw_hazard_early_flush)", + "PublicDescription": "Load/Store early flush L2 topdown metric", + "BriefDescription": "Load/Store early flush L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.bad_speculation.ldst_early_flush.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.rate - (topdown.bad_speculation.branch_mispredicts.rate + topdown.bad_speculation.ldst_early_flush.rate)", + "PublicDescription": "Machine clears L2 topdown metric", + "BriefDescription": "Machine clears L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.bad_speculation.machine_clears.rate" + }, + { + "MetricExpr": "topdown.backend_bound.rate * (topdown.backend_bound.memory.load + topdown.backend_bound.memory.store)/cycles.hart", + "PublicDescription": "Memory bound L2 topdown metric", + "BriefDescription": "Memory bound L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.backend_bound.memory_bound.rate" + }, + { + "MetricExpr": "topdown.backend_bound.rate - topdown.backend_bound.memory_bound.rate", + "PublicDescription": "Core bound L2 topdown metric", + "BriefDescription": "Core bound L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.backend_bound.core_bound.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * (inst.int.alu.spec + inst.int.mul.spec + inst.int.div.spec + inst.int.csr.spec) / uop.spec", + "PublicDescription": "Integer operations L2 topdown metric", + "BriefDescription": "Integer operations L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.retiring.int.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.brjmp.spec / uop.spec", + "PublicDescription": "Branch operations L2 topdown metric", + "BriefDescription": "Branch operations L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.retiring.brjmp.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.spec / uop.spec", + "PublicDescription": "Load/Store operations L2 topdown metric", + "BriefDescription": "Load/Store operations L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.retiring.ldst.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.sca.fp.arith.spec / uop.spec", + "PublicDescription": "Scalar float point arithmetic operations L2 topdown metric", + "BriefDescription": "Scalar float point arithmetic operations L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.retiring.fp.arith.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.rvv.arith.spec / uop.spec", + "PublicDescription": "Vector arithmetic operations L2 topdown metric", + "BriefDescription": "Vector arithmetic operations L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.retiring.rvv.arith.rate" + }, + { + "MetricExpr": "topdown.retiring.rate - topdown.retiring.int.rate - topdown.retiring.brjmp.rate - topdown.retiring.ldst.rate - topdown.retiring.fp.arith.rate - topdown.retiring.rvv.arith.rate", + "PublicDescription": "Other operations L2 topdown metric", + "BriefDescription": "Other operations L2 topdown metric", + "MetricGroup": "TopdownL2", + "MetricName": "topdown.retiring.other.rate" + }, + { + "MetricExpr": "cache.l1i.rd.miss.latency / cycles.hart", + "PublicDescription": "Idle by icache miss L3 topdown metric", + "BriefDescription": "Idle by icache miss L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.frontend_bound.latency.data.rate" + }, + { + "MetricExpr": "tlb.l1i.miss.latency / cycles.hart", + "PublicDescription": "Idle by itlb miss L3 topdown metric", + "BriefDescription": "Idle by itlb miss L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.frontend_bound.latency.addr.rate" + }, + { + "MetricExpr": "inst.mispred.brjmp.latency / cycles.hart", + "PublicDescription": "Idle by fetch pipeline bubbles L3 topdown metric", + "BriefDescription": "Idle by fetch pipeline bubbles L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.frontend_bound.latency.redirect.rate" + }, + { + "MetricExpr": "inst.mispred.brjmp.spec / inst.brjmp.spec", + "PublicDescription": "Branch misprediction rate L3 topdown metric", + "BriefDescription": "Branch misprediction rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.rate" + }, + { + "MetricExpr": "inst.mispred.brjmp.spec * 1000 / uop.spec", + "PublicDescription": "Branch misprediction per 1000 instructions L3 topdown metric", + "BriefDescription": "Branch misprediction per 1000 instructions L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.pki" + }, + { + "MetricExpr": "inst.mispred.branch / inst.brjmp.branch.spec", + "PublicDescription": "Condition branch misprediction rate L3 topdown metric", + "BriefDescription": "Condition branch misprediction rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.branch.rate" + }, + { + "MetricExpr": "inst.mispred.branch *1000 / uop.spec", + "PublicDescription": "Condition branch misprediction per 1000 instructions L3 topdown metric", + "BriefDescription": "Condition branch misprediction per 1000 instructions L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.branch.pki" + }, + { + "MetricExpr": "inst.mispred.uncond_branch / inst.brjmp.uncond_branch.spec", + "PublicDescription": "Unconditional branch (exclude indirect branch and function return) misprediction rate L3 topdown metric", + "BriefDescription": "Unconditional branch (exclude indirect branch and function return) misprediction rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.uncond_branch.rate" + }, + { + "MetricExpr": "inst.mispred.uncond_branch *1000 / uop.spec", + "PublicDescription": "Unconditional branch (exclude indirect branch and function return) misprediction per 1000 instructions L3 topdown metric", + "BriefDescription": "Unconditional branch (exclude indirect branch and function return) misprediction per 1000 instructions L3 topdown metric", + "MetricGroup": "TopdownL3;Per-instruction", + "MetricName": "inst.mispred.uncond_branch.pki" + }, + { + "MetricExpr": "inst.mispred.ind / inst.brjmp.ind.spec", + "PublicDescription": "Indirect branch misprediction rate L3 topdown metric", + "BriefDescription": "Indirect branch misprediction rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.ind.rate" + }, + { + "MetricExpr": "inst.mispred.ind *1000 / uop.spec", + "PublicDescription": "Indirect branch misprediction per 1000 instructions L3 topdown metric", + "BriefDescription": "Indirect branch misprediction per 1000 instructions L3 topdown metric", + "MetricGroup": "TopdownL3;Per-instruction", + "MetricName": "inst.mispred.ind.pki" + }, + { + "MetricExpr": "inst.mispred.ret / inst.brjmp.ret.spec", + "PublicDescription": "Function return misprediction rate L3 topdown metric", + "BriefDescription": "Function return misprediction rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "inst.mispred.ret.rate" + }, + { + "MetricExpr": "inst.mispred.ret *1000 / uop.spec", + "PublicDescription": "Function return misprediction per 1000 instructions L3 topdown metric", + "BriefDescription": "Function return misprediction per 1000 instructions L3 topdown metric", + "MetricGroup": "TopdownL3;Per-instruction", + "MetricName": "inst.mispred.ret.pki" + }, + { + "MetricExpr": "topdown.bad_speculation.raw_hazard_early_flush / (topdown.bad_speculation.raw_hazard_early_flush + topdown.bad_speculation.rar_hazard_early_flush)", + "PublicDescription": "RAW early flush rate L3 topdown metric", + "BriefDescription": "RAW early flush rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.bad_speculation.raw_hazard_early_flush.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.rar_hazard_early_flush / (topdown.bad_speculation.raw_hazard_early_flush + topdown.bad_speculation.rar_hazard_early_flush)", + "PublicDescription": "RAR early flush rate L3 topdown metric", + "BriefDescription": "RAR early flush rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.bad_speculation.rar_hazard_early_flush.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.exception_flush / (topdown.bad_speculation.exception_flush + topdown.bad_speculation.interrupt_flush + topdown.bad_speculation.other_flush)", + "PublicDescription": "exception flush rate L3 topdown metric", + "BriefDescription": "exception flush rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.bad_speculation.exception_flush.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.interrupt_flush / (topdown.bad_speculation.exception_flush + topdown.bad_speculation.interrupt_flush + topdown.bad_speculation.other_flush)", + "PublicDescription": "interrupt flush rate L3 topdown metric", + "BriefDescription": "interrupt flush rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.bad_speculation.interrupt_flush.rate" + }, + { + "MetricExpr": "topdown.bad_speculation.other_flush / (topdown.bad_speculation.exception_flush + topdown.bad_speculation.interrupt_flush + topdown.bad_speculation.other_flush)", + "PublicDescription": "other flush rate L3 topdown metric", + "BriefDescription": "other flush rate L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.bad_speculation.other_flush.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.int.alu.spec / uop.spec", + "PublicDescription": "Arithmetic operations L3 topdown metric", + "BriefDescription": "Arithmetic operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.int.alu.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.int.mul.spec / uop.spec", + "PublicDescription": "Multiplication operations L3 topdown metric", + "BriefDescription": "Multiplication operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.int.mul.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.int.div.spec / uop.spec", + "PublicDescription": "Division operations L3 topdown metric", + "BriefDescription": "Division operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.int.div.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.int.csr.spec / uop.spec", + "PublicDescription": "CSR access operations L3 topdown metric", + "BriefDescription": "CSR access operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.int.csr.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.brjmp.branch.spec / uop.spec", + "PublicDescription": "Conditional branch operations L3 topdown metric", + "BriefDescription": "Conditional branch operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.brjmp.branch.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.brjmp.ind.spec / uop.spec", + "PublicDescription": "Indirect branch operations L3 topdown metric", + "BriefDescription": "Indirect branch operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.brjmp.ind.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.brjmp.ret.spec / uop.spec", + "PublicDescription": "Function return operations L3 topdown metric", + "BriefDescription": "Function return operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.brjmp.ret.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.brjmp.uncond_branch.spec / uop.spec", + "PublicDescription": "Unconditional branch operations L3 topdown metric", + "BriefDescription": "Unconditional branch operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.brjmp.uncond_branch.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.load.spec / uop.spec", + "PublicDescription": "Load operations L3 topdown metric", + "BriefDescription": "Load operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.ldst.load.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.store.spec / uop.spec", + "PublicDescription": "Store operations L3 topdown metric", + "BriefDescription": "Store operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.ldst.store.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.float_load.spec / uop.spec", + "PublicDescription": "Float load operations L3 topdown metric", + "BriefDescription": "Float laod operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.ldst.float_load.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.float_store.spec / uop.spec", + "PublicDescription": "Float store operations L3 topdown metric", + "BriefDescription": "Float store operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.ldst.float_store.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.vec_load.spec / uop.spec", + "PublicDescription": "Vector load operations L3 topdown metric", + "BriefDescription": "Vector load operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.ldst.vec_load.rate" + }, + { + "MetricExpr": "topdown.retiring.rate * inst.ldst.vec_store.spec / uop.spec", + "PublicDescription": "Vector store operations L3 topdown metric", + "BriefDescription": "Vector store operations L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.retiring.ldst.vec_store.rate" + }, + { + "MetricExpr": "topdown.backend_bound.core.barrier_csr / cycles.hart", + "PublicDescription": "Core bound barrier stall L3 topdown metric", + "BriefDescription": "Core bound barrier stall L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.core.barrier.rate" + }, + { + "MetricExpr": "topdown.backend_bound.core.highload / cycles.hart", + "PublicDescription": "Core bound high load stall L3 topdown metric", + "BriefDescription": "Core bound high load stall L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.core.highload.rate" + }, + { + "MetricExpr": "topdown.backend_bound.core.rob_full / cycles.hart", + "PublicDescription": "Core bound rob full stall L3 topdown metric", + "BriefDescription": "Core bound rob full stall L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.core.rob_full.rate" + }, + { + "MetricExpr": " (ieu.is.siq.stall + ieu.is.miq.stall + ieu.is.biq.stall + ieu.is.lsiq.stall + ieu.is.vfpq.stall) / cycles.hart", + "PublicDescription": "Core bound issue queue stall L3 topdown metric", + "BriefDescription": "Core bound issueu queue stall L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.core.is_stall.rate" + }, + { + "MetricExpr": " topdown.backend_bound.core.div_busy / cycles.hart", + "PublicDescription": "Core bound div busy stall L3 topdown metric", + "BriefDescription": "Core bound div busy stall L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.core.div_busy.rate" + }, + { + "MetricExpr": " topdown.backend_bound.core.rvv_stall / cycles.hart", + "PublicDescription": "Core bound rvv stall L3 topdown metric", + "BriefDescription": "Core bound rvv stall L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.core.rvv_stall.rate" + }, + { + "MetricExpr": "topdown.backend_bound.memory.load.l2_miss / (topdown.backend_bound.memory.load + topdown.backend_bound.memory.store)", + "PublicDescription": "External memory bound L3 topdown metric", + "BriefDescription": "External memory bound L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.memory.ext_mem_bound.rate" + }, + { + "MetricExpr": "topdown.backend_bound.memory.load.l1_miss / (topdown.backend_bound.memory.load + topdown.backend_bound.memory.store)", + "PublicDescription": "L2 memory bound L3 topdown metric", + "BriefDescription": "L2 memory bound L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.memory.l2_bound.rate" + }, + { + "MetricExpr": "1 - topdown.backend_bound.memory.ext_mem_bound.rate - topdown.backend_bound.memory.l2_bound.rate - topdown.backend_bound.memory.store_bound.rate", + "PublicDescription": "L1 memory bound L3 topdown metric", + "BriefDescription": "L1 memory bound L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.memory.l1_bound.rate" + }, + { + "MetricExpr": "topdown.backend_bound.memory.store / (topdown.backend_bound.memory.load + topdown.backend_bound.memory.store)", + "PublicDescription": "Store bound L3 topdown metric", + "BriefDescription": "Store bound L3 topdown metric", + "MetricGroup": "TopdownL3", + "MetricName": "topdown.backend_bound.memory.store_bound.rate" + }, + { + "MetricExpr": "cycles.hart * 8", + "PublicDescription": "Total slots", + "BriefDescription": "Total slots", + "MetricGroup": "Common", + "MetricName": "topdown.slots" + }, + { + "MetricExpr": "uop.ret / cycles.hart", + "PublicDescription": "Instructions per cycle", + "BriefDescription": "Instructions per cycle", + "MetricGroup": "Common;Per-cycle", + "MetricName": "ipc" + }, + { + "MetricExpr": "cache.l1d.rd.miss * 1000 / uop.ret", + "PublicDescription": "l1 dcache access misses per 1000 instructions", + "BriefDescription": "l1 dcache access misses per 1000 instructions", + "MetricGroup": "Common;Per-instruction", + "MetricName": "cache.l1d.rd.data.mpki" + }, + { + "MetricExpr": "cache.l1d.wr.miss * 1000 / uop.ret", + "PublicDescription": "l1 dcache write access misses per 1000 instructions", + "BriefDescription": "l1 dcache write access misses per 1000 instructions", + "MetricGroup": "Common;Per-instruction", + "MetricName": "cache.l1d.wr.data.mpki" + }, + { + "MetricExpr": "cache.l1i.rd.miss * 1000 / uop.ret", + "PublicDescription": "l1 icache access misses per 1000 instructions", + "BriefDescription": "l1 icache access misses per 1000 instructions", + "MetricGroup": "Common;Per-instruction", + "MetricName": "cache.l1i.rd.code.mpki" + }, + { + "MetricExpr": "cache.l2.miss * 1000 / uop.ret", + "PublicDescription": "l2 cache access misses per 1000 instructions", + "BriefDescription": "l2 cache access misses per 1000 instructions", + "MetricGroup": "Common;Per-instruction", + "MetricName": "cache.l2.mpki" + }, + { + "MetricExpr": "tlb.l1d.miss * 1000 / uop.ret", + "PublicDescription": "L1 TLB misses caused by data loads or stores per 1000 instructions", + "BriefDescription": "L1 TLB misses caused by data loads or stores per 1000 instructions", + "MetricGroup": "Common;Per-instruction", + "MetricName": "tlb.l1d.ldst.mpki" + }, + { + "MetricExpr": "tlb.l1i.miss * 1000 / uop.ret", + "PublicDescription": "L1 TLB misses caused by instruction fetch per 1000 instructions", + "BriefDescription": "L1 TLB misses caused by instruction fetch per 1000 instructions", + "MetricGroup": "Common;Per-instruction", + "MetricName": "tlb.l1i.code.mpki" + }, + { + "MetricExpr": "cache.l1d.rd.miss / cache.l1d.rd.access", + "PublicDescription": "l1 dcache access miss rate", + "BriefDescription": "l1 dcache access miss rate", + "MetricGroup": "Common", + "MetricName": "cache.l1d.rd.data.miss.rate" + }, + { + "MetricExpr": "cache.l1d.wr.miss / cache.l1d.wr.access", + "PublicDescription": "l1 dcache write access miss rate", + "BriefDescription": "l1 dcache write access miss rate", + "MetricGroup": "Common", + "MetricName": "cache.l1d.wr.data.miss.rate" + }, + { + "MetricExpr": "cache.l1i.rd.miss / cache.l1i.rd.access", + "PublicDescription": "l1 icache access miss rate", + "BriefDescription": "l1 icache access miss rate", + "MetricGroup": "Common", + "MetricName": "cache.l1i.rd.code.miss.rate" + }, + { + "MetricExpr": "cache.l2.miss / cache.l2.access", + "PublicDescription": "l2 cache access miss rate", + "BriefDescription": "l2 cache access miss rate", + "MetricGroup": "Common", + "MetricName": "cache.l2.rd.miss.rate" + }, + { + "MetricExpr": "1 - topdown.backend_bound.memory.demand_read.l3 / topdown.backend_bound.memory.demand_read", + "PublicDescription": "LLC access miss rate", + "BriefDescription": "lLC access miss rate", + "MetricGroup": "Common", + "MetricName": "cache.l3.rd.miss.rate" + }, + { + "MetricExpr": "tlb.l1d.miss / tlb.l1d.access", + "PublicDescription": "L1 TLB misses caused by data loads or stores rate", + "BriefDescription": "L1 TLB misses caused by data loads or stores rate", + "MetricGroup": "Common", + "MetricName": "tlb.l1d.ldst.miss.rate" + }, + { + "MetricExpr": "tlb.l1i.miss / tlb.l1i.access", + "PublicDescription": "L1 TLB misses caused by instruction fetch rate", + "BriefDescription": "L1 TLB misses caused by instruction fetch rate", + "MetricGroup": "Common", + "MetricName": "tlb.l1i.code.miss.rate" + }, + { + "MetricExpr": " bus.rd.access / bus.access", + "PublicDescription": "Bus read access rate", + "BriefDescription": "Bus read access rate", + "MetricGroup": "Common", + "MetricName": "bus.rd.rate" + }, + { + "MetricExpr": " bus.wr.access / bus.access", + "PublicDescription": "Bus write access rate", + "BriefDescription": "Bus write access rate", + "MetricGroup": "Common", + "MetricName": "bus.wr.rate" + } +]
Signature · 1 line
2.50.1
Re: [PATCH v2 4/4] perf vendor events riscv: Add XuanTie C930 metrics
Quoted 3 lines · On Fri, Nov 21, 2025 at 02:34:39PM +0800, [email protected] wrote:
From: Chen Pei <[email protected]>
This patch adds XuanTie C930 metrics, including topdown and some
Please do not use "This commit/patch/change", but imperative mood. See longer explanation here:
https://elixir.bootlin.com/linux/v6.16/source/Documentation/process/submitting-patches.rst#L94
Best regards,
Krzysztof