Notes about KVM trace.
kvm trace point
1 2
| sudo cat /sys/kernel/debug/tracing/available_events | grep kvm: sudo cat /sys/kernel/debug/tracing/available_filter_functions | grep -i kvm
|
了解kvm 的trace event也是了解kvm的一个渠道。
Track kvm event
1 2
| sudo trace-cmd record -e kvm sudo trace-cmd report
|
Track kvm_cpuid
1 2
| sudo trace-cmd record -e kvm_cpuid sudo trace-cmd report
|
Track kvm_inj_virq
1 2
| sudo trace-cmd record -e kvm_inj_virq sudo trace-cmd report
|
Track kvm_inj_exception
1 2
| sudo trace-cmd record -e kvm_inj_exception sudo trace-cmd report
|
Track kvm_exit
1 2
| sudo trace-cmd record -e kvm_exit sudo trace-cmd report
|
参考资料:
- linux-kvm.org Tracing