X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fwrapper%2Fmm.h;fp=include%2Fwrapper%2Fmm.h;h=047d9368971527e68b1c7d7e15cc2dae383cdb41;hb=23d91ab1f33370551feceddd93a1ecac7213e692;hp=f7e8e87e6ee17fe8580ab598bd15309b40bd6eed;hpb=612c99eb24bf72f4d47d02025e92de8c35ece14e;p=lttng-modules.git diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h index f7e8e87e..047d9368 100644 --- a/include/wrapper/mm.h +++ b/include/wrapper/mm.h @@ -13,6 +13,22 @@ #include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,3,0)) +static inline +void wrapper_vm_flags_set(struct vm_area_struct *vma, + vm_flags_t flags) +{ + vm_flags_set(vma, flags); +} +#else +static inline +void wrapper_vm_flags_set(struct vm_area_struct *vma, + vm_flags_t flags) +{ + vma->vm_flags |= flags; +} +#endif + #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0) \ || LTTNG_UBUNTU_KERNEL_RANGE(4,4,25,44, 4,5,0,0))