Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf test: Adjust case of test metrics

Icelake and later architectures have slots events and SLOTS metrics
meaning case sensitivity is important. Make the test metrics case
agree with the name of the metrics.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Ahmad Yasin <ahmad.yasin@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Caleb Biggers <caleb.biggers@intel.com>
Cc: Florian Fischer <florian.fischer@muhq.space>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Kshipra Bopardikar <kshipra.bopardikar@intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Miaoqian Lin <linmq006@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Perry Taylor <perry.taylor@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Samantha Alt <samantha.alt@intel.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: https://lore.kernel.org/r/20221004021612.325521-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
0e407915 4b65fc7b

+6 -6
+3 -3
tools/perf/pmu-events/arch/test/test_soc/cpu/metrics.json
··· 34 34 "MetricName": "DCache_L2_All_Miss" 35 35 }, 36 36 { 37 - "MetricExpr": "dcache_l2_all_hits + dcache_l2_all_miss", 37 + "MetricExpr": "DCache_L2_All_Hits + DCache_L2_All_Miss", 38 38 "MetricName": "DCache_L2_All" 39 39 }, 40 40 { 41 - "MetricExpr": "d_ratio(dcache_l2_all_hits, dcache_l2_all)", 41 + "MetricExpr": "d_ratio(DCache_L2_All_Hits, DCache_L2_All)", 42 42 "MetricName": "DCache_L2_Hits" 43 43 }, 44 44 { 45 - "MetricExpr": "d_ratio(dcache_l2_all_miss, dcache_l2_all)", 45 + "MetricExpr": "d_ratio(DCache_L2_All_Miss, DCache_L2_All)", 46 46 "MetricName": "DCache_L2_Misses" 47 47 }, 48 48 {
+3 -3
tools/perf/pmu-events/empty-pmu-events.c
··· 142 142 .metric_name = "DCache_L2_All_Miss", 143 143 }, 144 144 { 145 - .metric_expr = "dcache_l2_all_hits + dcache_l2_all_miss", 145 + .metric_expr = "DCache_L2_All_Hits + DCache_L2_All_Miss", 146 146 .metric_name = "DCache_L2_All", 147 147 }, 148 148 { 149 - .metric_expr = "d_ratio(dcache_l2_all_hits, dcache_l2_all)", 149 + .metric_expr = "d_ratio(DCache_L2_All_Hits, DCache_L2_All)", 150 150 .metric_name = "DCache_L2_Hits", 151 151 }, 152 152 { 153 - .metric_expr = "d_ratio(dcache_l2_all_miss, dcache_l2_all)", 153 + .metric_expr = "d_ratio(DCache_L2_All_Miss, DCache_L2_All)", 154 154 .metric_name = "DCache_L2_Misses", 155 155 }, 156 156 {