X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.c;h=742bec4da9418bb856574068922dfa38daf14796;hb=812026fcebce14e489749c44ad601a072588e51b;hp=3964df5fbb2f55b8d98fdb8501023a2c37a2dbab;hpb=3aed4dca825a63757a3c95b9d41019660f83e02d;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 3964df5f..742bec4d 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -76,7 +76,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();