03-04-2011 04:36 PM
I'm trying to count cache misses on Atom processors. Ideally, I would like to count cache miss in L1. But after I searched the manualhttp://software.intel.com/sites/products/documentation/hpc/amplifierxe/en-us/win/ug_docs/index.htm, I couldn't find any events that exactly count cache misses.
The closest one I found is MEM_LOAD_RETIRED.L2_MISS, which counts the number of cache misses caused by the load instruction.MEM_LOAD_RETIRED.L2_HIT also implies the number of cache misses in L1. However, it only counts cache misses caused by the load instruction. For example, if my program runs memset or memcpy, which doesn't use the load instruction but loads data to the cache, the two events don't work.
Now the question is how to count all cache misses on Atom processors no matter what causes them.