perf vendor events arm64: Add Hisi hip08 L2 metrics
[linux-block.git] / tools / perf / pmu-events / arch / arm64 / hisilicon / hip08 / metrics.json
1 [
2     {
3         "MetricExpr": "FETCH_BUBBLE / (4 * CPU_CYCLES)",
4         "PublicDescription": "Frontend bound L1 topdown metric",
5         "BriefDescription": "Frontend bound L1 topdown metric",
6         "MetricGroup": "TopDownL1",
7         "MetricName": "frontend_bound"
8     },
9     {
10         "MetricExpr": "(INST_SPEC - INST_RETIRED) / (4 * CPU_CYCLES)",
11         "PublicDescription": "Bad Speculation L1 topdown metric",
12         "BriefDescription": "Bad Speculation L1 topdown metric",
13         "MetricGroup": "TopDownL1",
14         "MetricName": "bad_speculation"
15     },
16     {
17         "MetricExpr": "INST_RETIRED / (CPU_CYCLES * 4)",
18         "PublicDescription": "Retiring L1 topdown metric",
19         "BriefDescription": "Retiring L1 topdown metric",
20         "MetricGroup": "TopDownL1",
21         "MetricName": "retiring"
22     },
23     {
24         "MetricExpr": "1 - (frontend_bound + bad_speculation + retiring)",
25         "PublicDescription": "Backend Bound L1 topdown metric",
26         "BriefDescription": "Backend Bound L1 topdown metric",
27         "MetricGroup": "TopDownL1",
28         "MetricName": "backend_bound"
29     },
30     {
31         "MetricExpr": "armv8_pmuv3_0@event\\=0x201d@ / CPU_CYCLES",
32         "PublicDescription": "Fetch latency bound L2 topdown metric",
33         "BriefDescription": "Fetch latency bound L2 topdown metric",
34         "MetricGroup": "TopDownL2",
35         "MetricName": "fetch_latency_bound"
36     },
37     {
38         "MetricExpr": "frontend_bound - fetch_latency_bound",
39         "PublicDescription": "Fetch bandwidth bound L2 topdown metric",
40         "BriefDescription": "Fetch bandwidth bound L2 topdown metric",
41         "MetricGroup": "TopDownL2",
42         "MetricName": "fetch_bandwidth_bound"
43     },
44     {
45         "MetricExpr": "(bad_speculation * BR_MIS_PRED) / (BR_MIS_PRED + armv8_pmuv3_0@event\\=0x2013@)",
46         "PublicDescription": "Branch mispredicts L2 topdown metric",
47         "BriefDescription": "Branch mispredicts L2 topdown metric",
48         "MetricGroup": "TopDownL2",
49         "MetricName": "branch_mispredicts"
50     },
51     {
52         "MetricExpr": "bad_speculation - branch_mispredicts",
53         "PublicDescription": "Machine clears L2 topdown metric",
54         "BriefDescription": "Machine clears L2 topdown metric",
55         "MetricGroup": "TopDownL2",
56         "MetricName": "machine_clears"
57     },
58     {
59         "MetricExpr": "(EXE_STALL_CYCLE - (MEM_STALL_ANYLOAD + armv8_pmuv3_0@event\\=0x7005@)) / CPU_CYCLES",
60         "PublicDescription": "Core bound L2 topdown metric",
61         "BriefDescription": "Core bound L2 topdown metric",
62         "MetricGroup": "TopDownL2",
63         "MetricName": "core_bound"
64     },
65     {
66         "MetricExpr": "(MEM_STALL_ANYLOAD + armv8_pmuv3_0@event\\=0x7005@) / CPU_CYCLES",
67         "PublicDescription": "Memory bound L2 topdown metric",
68         "BriefDescription": "Memory bound L2 topdown metric",
69         "MetricGroup": "TopDownL2",
70         "MetricName": "memory_bound"
71     },
72 ]