I am using perf for checking the cache performance I am using the following command in ubuntu but it does not give the required output. I want to check cache references and cache-misses. this command is working on core i5 but it does not work on the virtual machine.

$ perf stat -r 5 -B perf stat -r 5 -B -e cache-references,cache-misses, ./cmiss

the output of the above command on virtual machine is:

Performance counter stats for './cmiss' (5 runs):

cache-references

cache-misses

66.994228 cpu-clock ( +- 0.14% )

0.067178350 seconds time elapsed ( +- 0.13% )

Similar questions and discussions