Fix: timer_start changed in linux 6.8.0-rc1
[lttng-modules.git] / include / instrumentation / events / timer.h
index 843a3f6722d2a3ce9754659eab129123ede43976..193650bb3780d5755fd7d8878afba027ec9ef81a 100644 (file)
@@ -77,6 +77,29 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(timer_class, timer_init,
        TP_ARGS(timer)
 )
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0))
+/**
+ * timer_start - called when the timer is started
+ * @timer:     pointer to struct timer_list
+ * @expires:   the timers expiry time
+ * @flags:     the timers expiry time
+ */
+LTTNG_TRACEPOINT_EVENT(timer_start,
+
+       TP_PROTO(struct timer_list *timer, unsigned long bucket_expiry),
+
+       TP_ARGS(timer, bucket_expiry),
+
+       TP_FIELDS(
+               ctf_integer_hex(void *, timer, timer)
+               ctf_integer_hex(void *, function, timer->function)
+               ctf_integer(unsigned long, expires, timer->expires)
+               ctf_integer(unsigned long, bucket_expiry, bucket_expiry)
+               ctf_integer(unsigned long, now, jiffies)
+               ctf_integer(unsigned int, flags, timer->flags)
+       )
+)
+#else
 /**
  * timer_start - called when the timer is started
  * @timer:     pointer to struct timer_list
@@ -98,6 +121,7 @@ LTTNG_TRACEPOINT_EVENT(timer_start,
                ctf_integer(unsigned int, flags, flags)
        )
 )
+#endif
 
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0) || \
        LTTNG_RHEL_KERNEL_RANGE(4,18,0,193,0,0, 4,19,0,0,0,0))
This page took 0.025001 seconds and 4 git commands to generate.