Skip to content

Commit 6d662d7

Browse files
Leo Yanacmel
authored andcommitted
perf c2c: Organize metrics based on memory hierarchy
The metrics are not organized based on memory hierarchy, e.g. the tool doesn't organize the metrics order based on memory nodes from the close node (e.g. L1/L2 cache) to far node (e.g. L3 cache and DRAM). To output metrics with more friendly form, this patch refines the metrics order based on memory hierarchy: "Core Load Hit" => "LLC Load Hit" => "LLC Ld Miss" => "Load Dram" Signed-off-by: Leo Yan <leo.yan@linaro.org> Tested-by: Joe Mario <jmario@redhat.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20201014050921.5591-4-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 4f28641 commit 6d662d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/perf/builtin-c2c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,10 +2852,10 @@ static int perf_c2c__report(int argc, const char **argv)
28522852
"tot_loads,"
28532853
"tot_stores,"
28542854
"stores_l1hit,stores_l1miss,"
2855-
"dram_lcl,dram_rmt,"
2856-
"ld_llcmiss,"
28572855
"ld_fbhit,ld_l1hit,ld_l2hit,"
2858-
"ld_lclhit,ld_rmthit",
2856+
"ld_lclhit,ld_rmthit,"
2857+
"ld_llcmiss,"
2858+
"dram_lcl,dram_rmt",
28592859
c2c.display == DISPLAY_TOT ? "tot_hitm" :
28602860
c2c.display == DISPLAY_LCL ? "lcl_hitm" : "rmt_hitm"
28612861
);

0 commit comments

Comments
 (0)