X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-syscalls.c;h=97f1ba9444d758a0140652e09b98c239524048a2;hb=94285cfb24d26f615423f7961da7c26cef534e10;hp=6d232d53831b889b758e4195a9898406516c1b6a;hpb=393f0993ab569b8cdbc3c80166be2d1b84dc038e;p=lttng-modules.git diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 6d232d53..97f1ba94 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -77,6 +77,13 @@ 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 @@ -753,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 */