Fix build for RHEL 8.8 with linux 4.18.0-477.10.1+
authorKienan Stewart <kstewart@efficios.com>
Mon, 16 Oct 2023 14:10:09 +0000 (10:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 Oct 2023 15:43:28 +0000 (11:43 -0400)
4.18.0-477.10.1 introduces backports a change which updates the
`kfree_skb` trace event to the 3-argument version used in more recent
kernel versions.

Change-Id: I5a1071a59659b76e1499beae3388159ca8ced1f7
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/skb.h

index 039debc65a2fb44da361c800560a8b82efb154e1..08704b98a0ef1efd37872aa4528626ab7a0f6dd2 100644 (file)
@@ -14,7 +14,8 @@
  * Tracepoint for free an sk_buff:
  */
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
-       || LTTNG_KERNEL_RANGE(5,15,58, 5,16,0))
+       || LTTNG_KERNEL_RANGE(5,15,58, 5,16,0) \
+       || LTTNG_RHEL_KERNEL_RANGE(4,18,0,477,10,1, 4,19,0,0,0,0))
 LTTNG_TRACEPOINT_ENUM(skb_drop_reason,
        TP_ENUM_VALUES(
                ctf_enum_value("NOT_SPECIFIED", SKB_DROP_REASON_NOT_SPECIFIED)
@@ -41,7 +42,8 @@ LTTNG_TRACEPOINT_ENUM(skb_drop_reason,
 
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
        || LTTNG_KERNEL_RANGE(5,15,58, 5,16,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,70,0,0, 5,15,0,0,0,0))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,70,0,0, 5,15,0,0,0,0) \
+       || LTTNG_RHEL_KERNEL_RANGE(4,18,0,477,10,1, 4,19,0,0,0,0))
 LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb,
 
        skb_kfree,
This page took 0.026879 seconds and 4 git commands to generate.