X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fvmalloc.h;h=c7538ae98e4f8238b35e36923ea576afc19d1ee1;hb=f419315f28a1da656c4faa8a852a2928ce38c72d;hp=d905f603379c33577490633da9d1986cd72e2379;hpb=23cfd7b53ec1521d3c23ceddfda49352c2d349dc;p=lttng-modules.git diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h index d905f603..c7538ae9 100644 --- a/wrapper/vmalloc.h +++ b/wrapper/vmalloc.h @@ -20,8 +20,15 @@ #include #include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \ + || LTTNG_KERNEL_RANGE(5,4,28, 5,5,0) \ + || LTTNG_KERNEL_RANGE(5,2,37, 5,3,0) \ + || LTTNG_KERNEL_RANGE(4,19,113, 4,20,0) \ + || LTTNG_KERNEL_RANGE(4,14,175, 4,15,0) \ + || LTTNG_KERNEL_RANGE(4,9,218, 4,10,0) \ + || LTTNG_KERNEL_RANGE(4,4,218, 4,5,0)) static inline void wrapper_vmalloc_sync_mappings(void) @@ -72,7 +79,13 @@ void wrapper_vmalloc_sync_mappings(void) #else -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \ + || LTTNG_KERNEL_RANGE(5,4,28, 5,5,0) \ + || LTTNG_KERNEL_RANGE(5,2,37, 5,3,0) \ + || LTTNG_KERNEL_RANGE(4,19,113, 4,20,0) \ + || LTTNG_KERNEL_RANGE(4,14,175, 4,15,0) \ + || LTTNG_KERNEL_RANGE(4,9,218, 4,10,0) \ + || LTTNG_KERNEL_RANGE(4,4,218, 4,5,0)) static inline void wrapper_vmalloc_sync_mappings(void)