X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.c;h=687e8bc1df1f2daa4a85152bf605c6966c115d0f;hb=ea5123bab7fd19c596fb2b5ce03be1c1de317f4a;hp=04df65c6af21829a4820636d43401cb96b46fe5c;hpb=1f4f5445b84cea1b78f48061507d0d4f112d7855;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 04df65c6..687e8bc1 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -87,7 +87,12 @@ int _lttng_field_statedump(struct lttng_session *session, void synchronize_trace(void) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0)) + synchronize_rcu(); +#else synchronize_sched(); +#endif + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) #ifdef CONFIG_PREEMPT_RT_FULL synchronize_rcu();