use perf to get LLC-loads count in Guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a problem when I used perf in Guest, the count of LLC-loads
almost always returns 0.

LLC-loads was a hardware cache event, besides the setting of general
PMU MSR, need to set MSR_OFFCORE_RSP_0 as well, in perf, it would be
the extra_reg and extra_config in "hw_perf_event". I add some
debuginfo in function "read_pmc" and found that when measuring
LLC-loads, pmc->perf_event->hw.extra_reg is 0x0, and the counter's
number was always the same. I think this is the reason, but I can't
find when and where the value changed.

Anybody has some idea for this?

my environment:
CPU was Xeon E5620, 2.4GHz
centos 6.3 for both Host and Guest and "-cpu host" option was added
when start qemu.
I tried both the original kernel of centos6.3 and the latest stable
version 3.7.1

Thanks
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux