Using perf to access hardware events in pre-launched VM


Paolo Crotti
 

Hi everyone,

I am working with ACRN in order to make some performance test on VMs in a pre-launched scenario. To take measurements i thought to use perf but it seems there is no way to access the hardware events i'm intrested in. In particular the events affecting the cache such as: cache-misses, LLC-stores, LLC-store-misses.
On the VMs runs Ubuntu 18.04 with kernel 5.4.0-100-generic.

Is there any way to allow perf to read these events? Or are there other tools I could use to access this information?

Software Versions:
ACRN Kernel v2.7
ACRN Hypervisor v2.7

Thanks in advance!

Join {acrn-users@lists.projectacrn.org to automatically receive all group messages.