From: Mathieu Desnoyers Date: Tue, 1 May 2018 20:42:44 +0000 (-0400) Subject: Fix: update RCU instrumentation for 4.17 X-Git-Tag: v2.11.0-rc1~52 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f442e68c1315670c036f242ce70e7b6f9fb9f838;p=lttng-modules.git Fix: update RCU instrumentation for 4.17 Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/rcu.h b/instrumentation/events/lttng-module/rcu.h index 4528a79b..7760bd6e 100644 --- a/instrumentation/events/lttng-module/rcu.h +++ b/instrumentation/events/lttng-module/rcu.h @@ -612,7 +612,9 @@ LTTNG_TRACEPOINT_EVENT(rcu_barrier, grplo, grphi, gp_tasks) do { } \ while (0) #define trace_rcu_fqs(rcuname, gpnum, cpu, qsevent) do { } while (0) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)) +#define trace_rcu_dyntick(polarity, oldnesting, newnesting, dyntick) do { } while (0) +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) #define trace_rcu_dyntick(polarity, oldnesting, newnesting) do { } while (0) #else #define trace_rcu_dyntick(polarity) do { } while (0)