X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=include%2Fwrapper%2Fmm.h;h=4f603f5a1c63b3931c3dfeae07affc8de3a8c8a0;hb=f97f9d2ea3610304df75769c9106d0a8cf2ad3ec;hp=f7e8e87e6ee17fe8580ab598bd15309b40bd6eed;hpb=686eb00593241450a0bd19faa68c0725abd63b0c;p=lttng-modules.git diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h index f7e8e87e..4f603f5a 100644 --- a/include/wrapper/mm.h +++ b/include/wrapper/mm.h @@ -13,6 +13,23 @@ #include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,3,0) || \ + LTTNG_RHEL_KERNEL_RANGE(5,14,0,452,0,0, 5,15,0,0,0,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))