Re: [PATCH] Perf stat: Fix the ratio comments of miss-events

From: Andi Kleen
Date: Sat Nov 16 2019 - 09:45:30 EST


lqqq341 <liuqi115@xxxxxxxxxxxxx> writes:

> From: Qi Liu <liuqi115@xxxxxxxxxxxxx>
>
> Perf stat displays miss ratio of L1-dcache, L1-icache, dTLB cache,
> iTLB cache and LL-cache. Take L1-dcache for example, its miss ratio
> is caculated as "L1-dcache-load-misses/L1-dcache-loads". So "of all
> L1-dcache hits" is unsuitable to describe it, and "of all L1-dcache
> accesses" seems better. The comments of L1-icache, dTLB cache, iTLB
> cache and LL-cache are fixed in the same way.

Reviewed-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

-Andi