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

index 5693cf89c4685c7552fb91c31545622ea105447f..585731710b67eafbc9eab94e94f1aa1e175806c1 100644 (file)
@@ -52,7 +52,7 @@ LTTNG_TRACEPOINT_EVENT(workqueue_queue_work,
                ctf_integer(int, req_cpu, req_cpu)
        )
 )
-#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0))
+#else
 /**
  * workqueue_queue_work - called when a work gets queued
  * @req_cpu:   the requested cpu
@@ -76,30 +76,6 @@ LTTNG_TRACEPOINT_EVENT(workqueue_queue_work,
                ctf_integer(unsigned int, req_cpu, req_cpu)
        )
 )
-#else
-/**
- * workqueue_queue_work - called when a work gets queued
- * @req_cpu:   the requested cpu
- * @cwq:       pointer to struct cpu_workqueue_struct
- * @work:      pointer to struct work_struct
- *
- * This event occurs when a work is queued immediately or once a
- * delayed work is actually queued on a workqueue (ie: once the delay
- * has been reached).
- */
-LTTNG_TRACEPOINT_EVENT(workqueue_queue_work,
-
-       TP_PROTO(unsigned int req_cpu, struct cpu_workqueue_struct *cwq,
-                struct work_struct *work),
-
-       TP_ARGS(req_cpu, cwq, work),
-
-       TP_FIELDS(
-               ctf_integer_hex(void *, work, work)
-               ctf_integer_hex(void *, function, work->func)
-               ctf_integer(unsigned int, req_cpu, req_cpu)
-       )
-)
 #endif
 
 /**
This page took 0.025432 seconds and 4 git commands to generate.