From e2ea881152a730f3a1ae9dca443dbdbe851ef682 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 16 Oct 2023 10:10:09 -0400 Subject: [PATCH] Fix build for RHEL 8.8 with linux 4.18.0-477.10.1+ 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 Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/skb.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/instrumentation/events/lttng-module/skb.h b/instrumentation/events/lttng-module/skb.h index fdb0fc7b..b52cf682 100644 --- a/instrumentation/events/lttng-module/skb.h +++ b/instrumentation/events/lttng-module/skb.h @@ -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, -- 2.39.5