X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=lttng-events.c;fp=lttng-events.c;h=f4206c549c39f7f0d6f62e5a668ad7706b2877ba;hb=92da05ce1f73488a57e7fd79e9c03113cefdb76f;hp=566080a3a4c1be92ea01e9e6b2af497fd040d007;hpb=2ca0c84f0b4a915c555a0b83102d94ac941619ca;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 566080a3..f4206c54 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -75,7 +75,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();