Skip to content

Commit fa9b357

Browse files
Yicong Yangacmel
authored andcommitted
perf mem: Count L2 HITM for c2c statistic
L2 HITM is not counted in c2c statistic decoding. Count it for lcl_hitm like how we handle L2 Peer snoop. Reviewed-by: Leo Yan <[email protected]> Signed-off-by: Yicong Yang <[email protected]> Cc: CaiJingtao <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Junhao He <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Will Deacon <[email protected]> Cc: Yushan Wang <[email protected]> Cc: Zeng Tao <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 846b62b commit fa9b357

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/perf/util/mem-events.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,10 @@ do { \
677677
if (lvl & P(LVL, LFB)) stats->ld_fbhit++;
678678
if (lvl & P(LVL, L1 )) stats->ld_l1hit++;
679679
if (lvl & P(LVL, L2)) {
680-
stats->ld_l2hit++;
680+
if (snoop & P(SNOOP, HITM))
681+
HITM_INC(lcl_hitm);
682+
else
683+
stats->ld_l2hit++;
681684

682685
if (snoopx & P(SNOOPX, PEER))
683686
PEER_INC(lcl_peer);

0 commit comments

Comments
 (0)