From f442e68c1315670c036f242ce70e7b6f9fb9f838 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 1 May 2018 16:42:44 -0400 Subject: [PATCH] Fix: update RCU instrumentation for 4.17 Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/rcu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.34.1