Obtaining cache information in ARM processors - Linux

On Intel processors

Linux linux-epq2.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64 x86_64 x86_64 GNU/Linux 

to get cache information:

 cat /sys/devices/system/cpu/cpu*/cache/index*/ 

Where * are the corresponding processor and cache index numbers

However, this file / folder is not available on ARM processors. Is there any way to get this data?

 Linux arndale 3.9.0-rc5+ #8 SMP Tue Apr 9 12:40:32 CEST 2013 armv7l GNU/Linux 
+1
linux arm cpu-cache
Jun 18 '13 at 13:52
source share
1 answer

From ARMv8A (64 bit), cache information can be obtained from the CLIDR register. Thus, cache information can be populated in the / sys file system on Linux. Check the details from the kernel / arch / arm64 / kernel / cacheinfo.c.

0
Jun 24 '16 at 6:43
source share
— -



All Articles