Skip to content

Port KVM-trace to tracepoints

Mathieu Desnoyers kvm linux-btrace lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kvm move VMCS Encodings to system headersarch/x86/kvm/vmx.h include/asm-x86/kvm_host.h+142 -1420 replies
2/4kvm move VMCS read to system headersarch/x86/kvm/vmx.c include/asm-x86/kvm_host.h+30 -280 replies
3/4KVM move register read-write to system headersarch/x86/kvm/kvm_cache_regs.h arch/x86/kvm/lapic.c arch/x86/kvm/svm.c +4 more+37 -370 replies
4/4KVM-trace port to tracepointsarch/x86/kvm/vmx.c arch/x86/kvm/x86.c include/trace/kvm.h +1 more+398 -10216 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/4] Port KVM-trace to tracepoints

Hi,

Here is a port of KVM-trace, currently using macros on top of the Linux Markers, to tracepoints. Note that I cleaned up the instrumentation too, so stuff like

KVMTRACE_3D(CR_WRITE, vcpu, (u32)cr,
(u32)kvm_register_read(vcpu, reg),
(u32)((u64)kvm_register_read(vcpu, reg) >> 32),
handler);

Sprinkled all across the KVM C code becomes :

trace_kvm_cr_write(vcpu, cr, reg);

Which looks much nicer, IMHO.

It applies on top of linux-next patch-v2.6.26-next-20080715.

Mathieu

Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68