X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fvmalloc.h;h=21e9bda2fbfd63fcdd05591b01f56173b716631e;hb=02f0c95cdc69859fa9b77e2458cf05352dad4d92;hp=362054b162b9e80eab799ca9be66298a697bb068;hpb=9e52289bbd4698c76a4c6bf66d92ce04accdd54a;p=lttng-modules.git diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h index 362054b1..21e9bda2 100644 --- a/wrapper/vmalloc.h +++ b/wrapper/vmalloc.h @@ -117,9 +117,19 @@ void __canary__vmalloc_sync_all(void) #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) */ -#else +#else /* CONFIG_KALLSYMS */ + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) + +/* + * wrapper_vmalloc_sync_mappings was removed in v5.8, the vmalloc mappings + * are now synchronized when they are created or torn down. + */ +static inline +void wrapper_vmalloc_sync_mappings(void) +{} -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \ +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \ || LTTNG_KERNEL_RANGE(5,5,12, 5,6,0) \ || LTTNG_KERNEL_RANGE(5,4,28, 5,5,0) \ || LTTNG_KERNEL_RANGE(5,2,37, 5,3,0) \