There are two ways to obtain cache usage profiling information:
Statistic profiling using the Performance Monitoring Unit (PMU). The processor can count cache accesses and misses over a period of time.
CP15 operations for accessing L1 and L2 cache tag and data arrays. These instructions provide greater visibility into the cache state at the cost of interrupting the program flow to execute them.