I'm looking into a possible performance issue on a host, and would like to use perf to get some information. Everything I see online says I should be able to use "perf kvm stat live". However, I can't get stat to work at all. `perf kvm --host top` works, so it's not like everything is broken. The man page still has "perf kvm stat live" as an example.
Any ideas?
Any ideas?
Code:
root@elevator:~# uname -a
Linux elevator 6.8.12-10-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-10 (2025-04-18T07:39Z) x86_64 GNU/Linux
root@elevator:~# dpkg -l | grep linux-tools
ii linux-tools-6.8 6.8.12-10 amd64 Linux kernel version specific tools for version 6.8
root@elevator:~# perf_6.8 -v
perf version 6.8.12.10.pve.ga7bbcbe5de91
root@elevator:~# perf_6.8 kvm stat live
Usage: perf kvm [<options>] {top|record|report|diff|buildid-list|stat}
-i, --input <file> Input file name
-o, --output <file> Output file name
-v, --verbose be more verbose (show counter open errors, etc)
--guest Collect guest os data
--guest-code Guest code can be found in hypervisor process
--guestkallsyms <file>
file saving guest os /proc/kallsyms
--guestmodules <file>
file saving guest os /proc/modules
--guestmount <directory>
guest mount directory under which every guest os instance has a subdir
--guestvmlinux <file>
file saving guest os vmlinux
--host Collect host os data