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: before-upstreaming~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b2e8ba42a765741d1365fe39e3ad6c26690137b9;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 1cbbb893..ca10aa2b 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) \