arm

Disable CPU caches (L1/L2) on ARMv8-A Linux

烂漫一生 提交于 2020-08-25 04:59:51
问题 I want to disable the low level cache on an ARMv8-A platform running Linux, in order to measure performance of optimized code, independent of cache access. For Intel systems I found the following resource (Is there a way to disable CPU cache (L1/L2) on a Linux system?), but I can not directly be applied directly due to a different instruction set. So far I have a kernel module which alters the corresponding system register to disable instruction and data cache. #include <linux/module.h> int

Disable CPU caches (L1/L2) on ARMv8-A Linux

淺唱寂寞╮ 提交于 2020-08-25 04:59:18
问题 I want to disable the low level cache on an ARMv8-A platform running Linux, in order to measure performance of optimized code, independent of cache access. For Intel systems I found the following resource (Is there a way to disable CPU cache (L1/L2) on a Linux system?), but I can not directly be applied directly due to a different instruction set. So far I have a kernel module which alters the corresponding system register to disable instruction and data cache. #include <linux/module.h> int