Drop support for kernels < 4.4 from timer instrumentation
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 21 Nov 2022 17:22:40 +0000 (12:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Nov 2022 20:07:27 +0000 (15:07 -0500)
Change-Id: I17bbdaf79a548d0b9f3247a705c44a753c19b26b
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/timer.h

index b4c6e945b60fc999c13260a2bdebca809ae917d1..843a3f6722d2a3ce9754659eab129123ede43976 100644 (file)
@@ -77,8 +77,6 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(timer_class, timer_init,
        TP_ARGS(timer)
 )
 
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,2,0) || \
-       LTTNG_RHEL_KERNEL_RANGE(3,10,0,957,0,0, 3,11,0,0,0,0))
 /**
  * timer_start - called when the timer is started
  * @timer:     pointer to struct timer_list
@@ -100,26 +98,6 @@ LTTNG_TRACEPOINT_EVENT(timer_start,
                ctf_integer(unsigned int, flags, flags)
        )
 )
-#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,2,0)) */
-/**
- * timer_start - called when the timer is started
- * @timer:     pointer to struct timer_list
- * @expires:   the timers expiry time
- */
-LTTNG_TRACEPOINT_EVENT(timer_start,
-
-       TP_PROTO(struct timer_list *timer, unsigned long expires),
-
-       TP_ARGS(timer, expires),
-
-       TP_FIELDS(
-               ctf_integer_hex(void *, timer, timer)
-               ctf_integer_hex(void *, function, timer->function)
-               ctf_integer(unsigned long, expires, expires)
-               ctf_integer(unsigned long, now, jiffies)
-       )
-)
-#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,2,0)) */
 
 #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.027214 seconds and 4 git commands to generate.