I am trying to profile my program using perf tool in Ubuntu on my Odroid XU4 hardware. In the perf list
, I can see that cache-references
and cache-misses
are listed but when I use the following command to profile a "Hello, World" program I am getting for cache-reference and cache-misses in the output.
perf stat -e task-clock,cache-references,cache-misses ./hello_test
Output:
Performance counter stats for './hello_test':
2.148792 task-clock # 0.507 CPUs utilized
<not supported> cache-reference
<not supported> cache-misses
0.004239260 seconds time elapsed
I went through this solution: Why doesn't perf report cache misses? but I didn't get my answer on why cache-reference and cache-misses are not available for my hardware? And, how I can make them available?