From: Mathieu Desnoyers Date: Mon, 27 Apr 2015 21:47:53 +0000 (-0400) Subject: Add mmu_valid_gen field to mmutrace events X-Git-Tag: v2.7.0-rc1~25 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=05b915ce72d2f0ce655375bfb57459cace6ac29b;p=lttng-modules.git Add mmu_valid_gen field to mmutrace events Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h index e0234ff5..6bf6beeb 100644 --- a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h +++ b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h @@ -8,12 +8,25 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_mmu +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) + +#define LTTNG_KVM_MMU_PAGE_FIELDS \ + ctf_integer(unsigned long, mmu_valid_gen, (sp)->mmu_valid_gen) \ + ctf_integer(__u64, gfn, (sp)->gfn) \ + ctf_integer(__u32, role, (sp)->role.word) \ + ctf_integer(__u32, root_count, (sp)->root_count) \ + ctf_integer(bool, unsync, (sp)->unsync) + +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) */ + #define LTTNG_KVM_MMU_PAGE_FIELDS \ ctf_integer(__u64, gfn, (sp)->gfn) \ ctf_integer(__u32, role, (sp)->role.word) \ ctf_integer(__u32, root_count, (sp)->root_count) \ ctf_integer(bool, unsync, (sp)->unsync) +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) */ + /* * A pagetable walk has started */