Hi,
I want to know the hit rate of L1 cache and L2 cache, is there any way? Are there related registers that can be read? Or is there a relevant manual to read.
Hi @Zhiming_Liu , how do I get these events working on the IMX6SX, pls?
DCP2-98:/mnt/mmc# perf stat -e L1-dcache-load-misses,L1-dcache-store-misses,L1-icache-load-misses,cycles,cache-misses sleep 5
Performance counter stats for 'sleep 5':
0 L1-dcache-load-misses
0 L1-dcache-store-misses
0 L1-icache-load-misses
4145419 cycles
0 cache-misses
5.007459334 seconds time elapsed
0.008648000 seconds user
0.000000000 seconds sys