X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-syscalls.c;h=97f1ba9444d758a0140652e09b98c239524048a2;hb=02f0c95cdc69859fa9b77e2458cf05352dad4d92;hp=7a2d02a9ef1ff6c8d4e41ea39c62918c3c2a77e7;hpb=6ad0e68b43c3e52fcb3d47c4d823a7b84aeb443a;p=lttng-modules.git diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 7a2d02a9..97f1ba94 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -73,6 +73,18 @@ struct mmap_arg_struct; struct file_handle; struct user_msghdr; +/* + * Forward declaration for kernels >= 5.6 + */ +struct timex; +struct timeval; +struct itimerval; +struct itimerspec; + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) +typedef __kernel_old_time_t time_t; +#endif + #ifdef IA32_NR_syscalls #define NR_compat_syscalls IA32_NR_syscalls #else @@ -748,7 +760,7 @@ int lttng_syscalls_register(struct lttng_channel *chan, void *filter) struct lttng_kernel_event ev; int ret; - wrapper_vmalloc_sync_all(); + wrapper_vmalloc_sync_mappings(); if (!chan->sc_table) { /* create syscall table mapping syscall to events */