perf vendor events arm64: Add TLB metrics for neoverse-n2-v2

Add TLB related metrics.

Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrew Kilroy <andrew.kilroy@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuai Xue <xueshuai@linux.alibaba.com>
Cc: Will Deacon <will@kernel.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Cc: Zhuo Song <zhuo.song@linux.alibaba.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/1673940573-90503-6-git-send-email-renyu.zj@linux.alibaba.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Jing Zhang 2023-01-17 15:29:29 +08:00 committed by Arnaldo Carvalho de Melo
parent c1c685cee6
commit 6a60dd2e87
1 changed files with 49 additions and 0 deletions

View File

@ -13,5 +13,54 @@
},
{
"ArchStdEvent": "BACKEND_BOUND"
},
{
"MetricExpr": "L1D_TLB_REFILL / L1D_TLB",
"BriefDescription": "The rate of L1D TLB refill to the overall L1D TLB lookups",
"MetricGroup": "TLB",
"MetricName": "l1d_tlb_miss_rate",
"ScaleUnit": "100%"
},
{
"MetricExpr": "L1I_TLB_REFILL / L1I_TLB",
"BriefDescription": "The rate of L1I TLB refill to the overall L1I TLB lookups",
"MetricGroup": "TLB",
"MetricName": "l1i_tlb_miss_rate",
"ScaleUnit": "100%"
},
{
"MetricExpr": "L2D_TLB_REFILL / L2D_TLB",
"BriefDescription": "The rate of L2D TLB refill to the overall L2D TLB lookups",
"MetricGroup": "TLB",
"MetricName": "l2_tlb_miss_rate",
"ScaleUnit": "100%"
},
{
"MetricExpr": "DTLB_WALK / INST_RETIRED * 1000",
"BriefDescription": "The rate of TLB Walks per kilo instructions for data accesses",
"MetricGroup": "TLB",
"MetricName": "dtlb_mpki",
"ScaleUnit": "1MPKI"
},
{
"MetricExpr": "DTLB_WALK / L1D_TLB",
"BriefDescription": "The rate of DTLB Walks to the overall L1D TLB lookups",
"MetricGroup": "TLB",
"MetricName": "dtlb_walk_rate",
"ScaleUnit": "100%"
},
{
"MetricExpr": "ITLB_WALK / INST_RETIRED * 1000",
"BriefDescription": "The rate of TLB Walks per kilo instructions for instruction accesses",
"MetricGroup": "TLB",
"MetricName": "itlb_mpki",
"ScaleUnit": "1MPKI"
},
{
"MetricExpr": "ITLB_WALK / L1I_TLB",
"BriefDescription": "The rate of ITLB Walks to the overall L1I TLB lookups",
"MetricGroup": "TLB",
"MetricName": "itlb_walk_rate",
"ScaleUnit": "100%"
}
]