instrumentation: rcu: remove compatibility code
[lttng-modules.git] / instrumentation / events / lttng-module / rcu.h
index 7760bd6e7673cc4cc9d63df4492fee0e77a51c84..be4a074c5865bcc6e22d449a36b0443cb9d63d8b 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM rcu
 
@@ -5,7 +6,6 @@
 #define LTTNG_TRACE_RCU_H
 
 #include <probes/lttng-tracepoint-event.h>
-#include <linux/version.h>
 
 /*
  * Tracepoint for start/end markers used for utilization calculations.
  */
 LTTNG_TRACEPOINT_EVENT(rcu_utilization,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *s),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *s),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
        TP_ARGS(s),
 
@@ -35,10 +31,7 @@ LTTNG_TRACEPOINT_EVENT(rcu_utilization,
 
 #ifdef CONFIG_RCU_TRACE
 
-#if defined(CONFIG_TREE_RCU) \
-       || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) \
-               && defined(CONFIG_PREEMPT_RCU)) \
-       || defined(CONFIG_TREE_PREEMPT_RCU)
+#if defined(CONFIG_TREE_RCU)
 
 /*
  * Tracepoint for grace-period events: starting and ending a grace
@@ -51,17 +44,13 @@ LTTNG_TRACEPOINT_EVENT(rcu_utilization,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_grace_period,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, unsigned long gpnum, const char *gpevent),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, unsigned long gpnum, char *gpevent),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
+       TP_PROTO(const char *rcuname, unsigned long gp_seq, const char *gpevent),
 
-       TP_ARGS(rcuname, gpnum, gpevent),
+       TP_ARGS(rcuname, gp_seq, gpevent),
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
-               ctf_integer(unsigned long, gpnum, gpnum)
+               ctf_integer(unsigned long, gp_seq, gp_seq)
                ctf_string(gpevent, gpevent)
        )
 )
@@ -75,19 +64,14 @@ LTTNG_TRACEPOINT_EVENT(rcu_grace_period,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_grace_period_init,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, unsigned long gpnum, u8 level,
+       TP_PROTO(const char *rcuname, unsigned long gp_seq, u8 level,
                 int grplo, int grphi, unsigned long qsmask),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, unsigned long gpnum, u8 level,
-                int grplo, int grphi, unsigned long qsmask),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
-       TP_ARGS(rcuname, gpnum, level, grplo, grphi, qsmask),
+       TP_ARGS(rcuname, gp_seq, level, grplo, grphi, qsmask),
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
-               ctf_integer(unsigned long, gpnum, gpnum)
+               ctf_integer(unsigned long, gp_seq, gp_seq)
                ctf_integer(u8, level, level)
                ctf_integer(int, grplo, grplo)
                ctf_integer(int, grphi, grphi)
@@ -103,17 +87,13 @@ LTTNG_TRACEPOINT_EVENT(rcu_grace_period_init,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_preempt_task,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, int pid, unsigned long gpnum),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, int pid, unsigned long gpnum),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
+       TP_PROTO(const char *rcuname, int pid, unsigned long gp_seq),
 
-       TP_ARGS(rcuname, pid, gpnum),
+       TP_ARGS(rcuname, pid, gp_seq),
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
-               ctf_integer(unsigned long, gpnum, gpnum)
+               ctf_integer(unsigned long, gp_seq, gp_seq)
                ctf_integer(int, pid, pid)
        )
 )
@@ -125,17 +105,13 @@ LTTNG_TRACEPOINT_EVENT(rcu_preempt_task,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_unlock_preempted_task,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, unsigned long gpnum, int pid),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, unsigned long gpnum, int pid),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
+       TP_PROTO(const char *rcuname, unsigned long gp_seq, int pid),
 
-       TP_ARGS(rcuname, gpnum, pid),
+       TP_ARGS(rcuname, gp_seq, pid),
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
-               ctf_integer(unsigned long, gpnum, gpnum)
+               ctf_integer(unsigned long, gp_seq, gp_seq)
                ctf_integer(int, pid, pid)
        )
 )
@@ -150,21 +126,15 @@ LTTNG_TRACEPOINT_EVENT(rcu_unlock_preempted_task,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_quiescent_state_report,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, unsigned long gpnum,
-                unsigned long mask, unsigned long qsmask,
-                u8 level, int grplo, int grphi, int gp_tasks),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, unsigned long gpnum,
+       TP_PROTO(const char *rcuname, unsigned long gp_seq,
                 unsigned long mask, unsigned long qsmask,
                 u8 level, int grplo, int grphi, int gp_tasks),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
-       TP_ARGS(rcuname, gpnum, mask, qsmask, level, grplo, grphi, gp_tasks),
+       TP_ARGS(rcuname, gp_seq, mask, qsmask, level, grplo, grphi, gp_tasks),
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
-               ctf_integer(unsigned long, gpnum, gpnum)
+               ctf_integer(unsigned long, gp_seq, gp_seq)
                ctf_integer(unsigned long, mask, mask)
                ctf_integer(unsigned long, qsmask, qsmask)
                ctf_integer(u8, level, level)
@@ -184,28 +154,19 @@ LTTNG_TRACEPOINT_EVENT(rcu_quiescent_state_report,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_fqs,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, unsigned long gpnum, int cpu, const char *qsevent),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, unsigned long gpnum, int cpu, char *qsevent),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
+       TP_PROTO(const char *rcuname, unsigned long gp_seq, int cpu, const char *qsevent),
 
-       TP_ARGS(rcuname, gpnum, cpu, qsevent),
+       TP_ARGS(rcuname, gp_seq, cpu, qsevent),
 
        TP_FIELDS(
-               ctf_integer(unsigned long, gpnum, gpnum)
+               ctf_integer(unsigned long, gp_seq, gp_seq)
                ctf_integer(int, cpu, cpu)
                ctf_string(rcuname, rcuname)
                ctf_string(qsevent, qsevent)
        )
 )
 
-#endif /*
-        * #if defined(CONFIG_TREE_RCU)
-        *      || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
-        *              && defined(CONFIG_PREEMPT_RCU))
-        *      || defined(CONFIG_TREE_PREEMPT_RCU)
-        */
+#endif
 
 /*
  * Tracepoint for dyntick-idle entry/exit events.  These take a string
@@ -220,10 +181,9 @@ LTTNG_TRACEPOINT_EVENT(rcu_fqs,
  * events use the upper bits of each number, while interrupt-related
  * events use the lower bits.
  */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,16,0))
 LTTNG_TRACEPOINT_EVENT(rcu_dyntick,
 
-       TP_PROTO(const char *polarity, long oldnesting, long newnesting, atomic_t dynticks),
+       TP_PROTO(const char *polarity, long oldnesting, long newnesting, int dynticks),
 
        TP_ARGS(polarity, oldnesting, newnesting, dynticks),
 
@@ -231,51 +191,10 @@ LTTNG_TRACEPOINT_EVENT(rcu_dyntick,
                ctf_string(polarity, polarity)
                ctf_integer(long, oldnesting, oldnesting)
                ctf_integer(long, newnesting, newnesting)
-               ctf_integer(int, dynticks, atomic_read(&dynticks))
-       )
-)
-
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-LTTNG_TRACEPOINT_EVENT(rcu_dyntick,
-
-       TP_PROTO(const char *polarity, long long oldnesting, long long newnesting),
-
-       TP_ARGS(polarity, oldnesting, newnesting),
-
-       TP_FIELDS(
-               ctf_string(polarity, polarity)
-               ctf_integer(long long, oldnesting, oldnesting)
-               ctf_integer(long long, newnesting, newnesting)
-       )
-)
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
-LTTNG_TRACEPOINT_EVENT(rcu_dyntick,
-
-       TP_PROTO(char *polarity, long long oldnesting, long long newnesting),
-
-       TP_ARGS(polarity, oldnesting, newnesting),
-
-       TP_FIELDS(
-               ctf_string(polarity, polarity)
-               ctf_integer(long long, oldnesting, oldnesting)
-               ctf_integer(long long, newnesting, newnesting)
-       )
-)
-#else
-LTTNG_TRACEPOINT_EVENT(rcu_dyntick,
-
-       TP_PROTO(char *polarity),
-
-       TP_ARGS(polarity),
-
-       TP_FIELDS(
-               ctf_string(polarity, polarity)
+               ctf_integer(int, dynticks, dynticks)
        )
 )
-#endif
 
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
 /*
  * Tracepoint for RCU preparation for idle, the goal being to get RCU
  * processing done so that the current CPU can shut off its scheduling
@@ -300,11 +219,7 @@ LTTNG_TRACEPOINT_EVENT(rcu_dyntick,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_prep_idle,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *reason),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *reason),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
        TP_ARGS(reason),
 
@@ -312,7 +227,6 @@ LTTNG_TRACEPOINT_EVENT(rcu_prep_idle,
                ctf_string(reason, reason)
        )
 )
-#endif
 
 /*
  * Tracepoint for the registration of a single RCU callback function.
@@ -323,29 +237,14 @@ LTTNG_TRACEPOINT_EVENT(rcu_prep_idle,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_callback,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, struct rcu_head *rhp, long qlen_lazy,
-                long qlen),
-
-       TP_ARGS(rcuname, rhp, qlen_lazy, qlen),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-       TP_PROTO(char *rcuname, struct rcu_head *rhp, long qlen_lazy,
-                long qlen),
-
-       TP_ARGS(rcuname, rhp, qlen_lazy, qlen),
-#else
-       TP_PROTO(char *rcuname, struct rcu_head *rhp, long qlen),
+       TP_PROTO(const char *rcuname, struct rcu_head *rhp, long qlen),
 
        TP_ARGS(rcuname, rhp, qlen),
-#endif
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
                ctf_integer_hex(void *, rhp, rhp)
                ctf_integer_hex(void *, func, rhp->func)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-               ctf_integer(long, qlen_lazy, qlen_lazy)
-#endif
                ctf_integer(long, qlen, qlen)
        )
 )
@@ -360,31 +259,15 @@ LTTNG_TRACEPOINT_EVENT(rcu_callback,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_kfree_callback,
 
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *rcuname, struct rcu_head *rhp, unsigned long offset,
-                long qlen_lazy, long qlen),
-
-       TP_ARGS(rcuname, rhp, offset, qlen_lazy, qlen),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-       TP_PROTO(char *rcuname, struct rcu_head *rhp, unsigned long offset,
-                long qlen_lazy, long qlen),
-
-       TP_ARGS(rcuname, rhp, offset, qlen_lazy, qlen),
-#else
-       TP_PROTO(char *rcuname, struct rcu_head *rhp, unsigned long offset,
                 long qlen),
 
        TP_ARGS(rcuname, rhp, offset, qlen),
-#endif
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
                ctf_integer_hex(void *, rhp, rhp)
                ctf_integer_hex(unsigned long, offset, offset)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-               ctf_integer(long, qlen_lazy, qlen_lazy)
-#endif
                ctf_integer(long, qlen, qlen)
        )
 )
@@ -398,35 +281,14 @@ LTTNG_TRACEPOINT_EVENT(rcu_kfree_callback,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_batch_start,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, long qlen_lazy, long qlen, long blimit),
-
-       TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
-       TP_PROTO(char *rcuname, long qlen_lazy, long qlen, long blimit),
-
-       TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-       TP_PROTO(char *rcuname, long qlen_lazy, long qlen, int blimit),
-
-       TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
-#else
-       TP_PROTO(char *rcuname, long qlen, int blimit),
+       TP_PROTO(const char *rcuname, long qlen, long blimit),
 
        TP_ARGS(rcuname, qlen, blimit),
-#endif
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-               ctf_integer(long, qlen_lazy, qlen_lazy)
-#endif
                ctf_integer(long, qlen, qlen)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
                ctf_integer(long, blimit, blimit)
-#else
-               ctf_integer(int, blimit, blimit)
-#endif
        )
 )
 
@@ -437,11 +299,7 @@ LTTNG_TRACEPOINT_EVENT(rcu_batch_start,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_invoke_callback,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *rcuname, struct rcu_head *rhp),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, struct rcu_head *rhp),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
        TP_ARGS(rcuname, rhp),
 
@@ -461,11 +319,7 @@ LTTNG_TRACEPOINT_EVENT(rcu_invoke_callback,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_invoke_kfree_callback,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *rcuname, struct rcu_head *rhp, unsigned long offset),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, struct rcu_head *rhp, unsigned long offset),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
        TP_ARGS(rcuname, rhp, offset),
 
@@ -489,45 +343,21 @@ LTTNG_TRACEPOINT_EVENT(rcu_invoke_kfree_callback,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_batch_end,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
        TP_PROTO(const char *rcuname, int callbacks_invoked,
                 char cb, char nr, char iit, char risk),
 
        TP_ARGS(rcuname, callbacks_invoked, cb, nr, iit, risk),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
-       TP_PROTO(const char *rcuname, int callbacks_invoked,
-                bool cb, bool nr, bool iit, bool risk),
-
-       TP_ARGS(rcuname, callbacks_invoked, cb, nr, iit, risk),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
-       TP_PROTO(char *rcuname, int callbacks_invoked,
-                bool cb, bool nr, bool iit, bool risk),
-
-       TP_ARGS(rcuname, callbacks_invoked, cb, nr, iit, risk),
-#else
-       TP_PROTO(char *rcuname, int callbacks_invoked),
-
-       TP_ARGS(rcuname, callbacks_invoked),
-#endif
 
        TP_FIELDS(
                ctf_string(rcuname, rcuname)
                ctf_integer(int, callbacks_invoked, callbacks_invoked)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
                ctf_integer(char, cb, cb)
                ctf_integer(char, nr, nr)
                ctf_integer(char, iit, iit)
                ctf_integer(char, risk, risk)
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
-               ctf_integer(bool, cb, cb)
-               ctf_integer(bool, nr, nr)
-               ctf_integer(bool, iit, iit)
-               ctf_integer(bool, risk, risk)
-#endif
        )
 )
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
 /*
  * Tracepoint for rcutorture readers.  The first argument is the name
  * of the RCU flavor from rcutorture's viewpoint and the second argument
@@ -535,35 +365,20 @@ LTTNG_TRACEPOINT_EVENT(rcu_batch_end,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_torture_read,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *rcutorturename, struct rcu_head *rhp,
                 unsigned long secs, unsigned long c_old, unsigned long c),
 
        TP_ARGS(rcutorturename, rhp, secs, c_old, c),
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
-       TP_PROTO(char *rcutorturename, struct rcu_head *rhp,
-                unsigned long secs, unsigned long c_old, unsigned long c),
-
-       TP_ARGS(rcutorturename, rhp, secs, c_old, c),
-#else
-       TP_PROTO(char *rcutorturename, struct rcu_head *rhp),
-
-       TP_ARGS(rcutorturename, rhp),
-#endif
 
        TP_FIELDS(
                ctf_string(rcutorturename, rcutorturename)
                ctf_integer_hex(struct rcu_head *, rhp, rhp)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
                ctf_integer(unsigned long, secs, secs)
                ctf_integer(unsigned long, c_old, c_old)
                ctf_integer(unsigned long, c, c)
-#endif
        )
 )
-#endif
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
 /*
  * Tracepoint for _rcu_barrier() execution.  The string "s" describes
  * the _rcu_barrier phase:
@@ -583,11 +398,7 @@ LTTNG_TRACEPOINT_EVENT(rcu_torture_read,
  */
 LTTNG_TRACEPOINT_EVENT(rcu_barrier,
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
        TP_PROTO(const char *rcuname, const char *s, int cpu, int cnt, unsigned long done),
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
-       TP_PROTO(char *rcuname, char *s, int cpu, int cnt, unsigned long done),
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
 
        TP_ARGS(rcuname, s, cpu, cnt, done),
 
@@ -599,57 +410,33 @@ LTTNG_TRACEPOINT_EVENT(rcu_barrier,
                ctf_integer(unsigned long, done, done)
        )
 )
-#endif
 
 #else /* #ifdef CONFIG_RCU_TRACE */
 
-#define trace_rcu_grace_period(rcuname, gpnum, gpevent) do { } while (0)
-#define trace_rcu_grace_period_init(rcuname, gpnum, level, grplo, grphi, \
+#define trace_rcu_grace_period(rcuname, gp_seq, gpevent) do { } while (0)
+#define trace_rcu_grace_period_init(rcuname, gp_seq, level, grplo, grphi, \
                                    qsmask) do { } while (0)
-#define trace_rcu_preempt_task(rcuname, pid, gpnum) do { } while (0)
-#define trace_rcu_unlock_preempted_task(rcuname, gpnum, pid) do { } while (0)
-#define trace_rcu_quiescent_state_report(rcuname, gpnum, mask, qsmask, level, \
+#define trace_rcu_preempt_task(rcuname, pid, gp_seq) do { } while (0)
+#define trace_rcu_unlock_preempted_task(rcuname, gp_seq, pid) do { } while (0)
+#define trace_rcu_quiescent_state_report(rcuname, gp_seq, mask, qsmask, level, \
                                         grplo, grphi, gp_tasks) do { } \
        while (0)
-#define trace_rcu_fqs(rcuname, gpnum, cpu, qsevent) do { } while (0)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0))
+#define trace_rcu_fqs(rcuname, gp_seq, cpu, qsevent) do { } while (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)
-#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
 #define trace_rcu_prep_idle(reason) do { } while (0)
-#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
 #define trace_rcu_callback(rcuname, rhp, qlen_lazy, qlen) do { } while (0)
 #define trace_rcu_kfree_callback(rcuname, rhp, offset, qlen_lazy, qlen) \
        do { } while (0)
 #define trace_rcu_batch_start(rcuname, qlen_lazy, qlen, blimit) \
        do { } while (0)
-#else
-#define trace_rcu_callback(rcuname, rhp, qlen) do { } while (0)
-#define trace_rcu_kfree_callback(rcuname, rhp, offset, qlen) do { } while (0)
-#define trace_rcu_batch_start(rcuname, qlen, blimit) do { } while (0)
-#endif
 #define trace_rcu_invoke_callback(rcuname, rhp) do { } while (0)
 #define trace_rcu_invoke_kfree_callback(rcuname, rhp, offset) do { } while (0)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
 #define trace_rcu_batch_end(rcuname, callbacks_invoked, cb, nr, iit, risk) \
        do { } while (0)
-#else
-#define trace_rcu_batch_end(rcuname, callbacks_invoked) do { } while (0)
-#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
 #define trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \
        do { } while (0)
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
-#define trace_rcu_torture_read(rcutorturename, rhp) do { } while (0)
-#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
 #define trace_rcu_barrier(name, s, cpu, cnt, done) do { } while (0)
-#endif
 #endif /* #else #ifdef CONFIG_RCU_TRACE */
 
 #endif /* LTTNG_TRACE_RCU_H */
This page took 0.029849 seconds and 4 git commands to generate.