I am doing some benchmarking and I need to clear the cache before each test. I have this example here:
Caches and Self-Modifying Code
However, I just want to clean the whole cache. Is there an easy way to do that? I do not need to know the start and end address of the functions. I just want some simple code
Thanks.
So, essentially, I have to use that clean_cache function as in the link in my OP? You wouldn't know of any documentation for that function? Also, I guess I cannot just pass the result of malloc? As discussed here:
How clear and invalidate ARM v7 processor cache from User Mode on Linux 2.6.35 - Stack Overflow
Why is that?