Skip to content

Commit 77c1586

Browse files
Leo Yanacmel
authored andcommitted
perf c2c: Correct LLC load hit metrics
"rmt_hit" is accounted into two metrics: one is accounted into the metrics "LLC Ld Miss" (see the function llc_miss() for calculation "llcmiss"); and it's accounted into metrics "LLC Load Hit". Thus, for the literal meaning, it is contradictory that "rmt_hit" is accounted for both "LLC Ld Miss" (LLC miss) and "LLC Load Hit" (LLC hit). Thus this is easily to introduce confusion: "LLC Load Hit" gives impression that all items belong to it are LLC hit; in fact "rmt_hit" is LLC miss and remote cache hit. To give out clear semantics for metric "LLC Load Hit", "rmt_hit" is moved out from it and changes "LLC Load Hit" to contain two items: LLC Load Hit = LLC's hit ("ld_llchit") + LLC's hitm ("lcl_hitm") For output alignment, adjusts the header for "LLC Load Hit". 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-8-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent ed626a3 commit 77c1586

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/perf/builtin-c2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ static struct c2c_dimension dim_ld_l2hit = {
14321432
};
14331433

14341434
static struct c2c_dimension dim_ld_llchit = {
1435-
.header = HEADER_SPAN("-- LLC Load Hit --", "LclHit", 1),
1435+
.header = HEADER_SPAN("- LLC Load Hit --", "LclHit", 1),
14361436
.name = "ld_lclhit",
14371437
.cmp = ld_llchit_cmp,
14381438
.entry = ld_llchit_entry,
@@ -2853,7 +2853,7 @@ static int perf_c2c__report(int argc, const char **argv)
28532853
"tot_stores,"
28542854
"stores_l1hit,stores_l1miss,"
28552855
"ld_fbhit,ld_l1hit,ld_l2hit,"
2856-
"ld_lclhit,ld_rmthit,"
2856+
"ld_lclhit,lcl_hitm,"
28572857
"ld_llcmiss,"
28582858
"dram_lcl,dram_rmt",
28592859
c2c.display == DISPLAY_TOT ? "tot_hitm" :

0 commit comments

Comments
 (0)