X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.c;h=3481bd41b73812e5b2188afd2c173e860374beab;hb=8af1abdc9576e807a15766e8faaadd7010c906ab;hp=47431ca9360532d755083c38040ad1087c458188;hpb=2df5d4b71ac1b5f2ad3d66cc5b1413ffd8897bd3;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 47431ca9..3481bd41 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -89,7 +89,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();