From: Michael Jeanson Date: Thu, 2 Apr 2020 18:07:21 +0000 (-0400) Subject: fix: kvm instrumentation for CentOS >= 4.18.0-147 X-Git-Tag: v2.12.0~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=215b9e64b5b84b54823f835f29909cb94f78f311;p=lttng-modules.git fix: kvm instrumentation for CentOS >= 4.18.0-147 Fixes: #1253 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Ide20ebf51bec503866ffc96dda3e0b09ebeb14d6 --- diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h index 769dde25..73463d55 100644 --- a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h +++ b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h @@ -14,7 +14,8 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_mmu -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0) || \ + LTTNG_RHEL_KERNEL_RANGE(4,18,0,147,0,0, 4,19,0,0,0,0)) #define LTTNG_KVM_MMU_PAGE_FIELDS \ ctf_integer(__u64, gfn, (sp)->gfn) \