summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch')
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch62
1 files changed, 0 insertions, 62 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch b/meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch
deleted file mode 100644
index 59d96dc22d..0000000000
--- a/meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From 12f43cab7daceff0c73c78276b5a5b9cc1d5056f Mon Sep 17 00:00:00 2001
2From: Michael Jeanson <mjeanson@efficios.com>
3Date: Tue, 7 Mar 2023 11:10:26 -0500
4Subject: [PATCH 4/4] fix: net: add location to trace_consume_skb() (v6.3)
5
6See upstream commit :
7
8 commit dd1b527831a3ed659afa01b672d8e1f7e6ca95a5
9 Author: Eric Dumazet <edumazet@google.com>
10 Date: Thu Feb 16 15:47:18 2023 +0000
11
12 net: add location to trace_consume_skb()
13
14 kfree_skb() includes the location, it makes sense
15 to add it to consume_skb() as well.
16
17Upstream-Status: Backport
18
19Change-Id: I8d871187d90e7fe113a63e209b00aebe0df475f3
20Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
21Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
22---
23 include/instrumentation/events/skb.h | 16 ++++++++++++++++
24 1 file changed, 16 insertions(+)
25
26diff --git a/include/instrumentation/events/skb.h b/include/instrumentation/events/skb.h
27index 186732ea..3c43f32d 100644
28--- a/include/instrumentation/events/skb.h
29+++ b/include/instrumentation/events/skb.h
30@@ -61,6 +61,21 @@ LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb,
31 )
32 #endif
33
34+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,3,0))
35+LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
36+
37+ skb_consume,
38+
39+ TP_PROTO(struct sk_buff *skb, void *location),
40+
41+ TP_ARGS(skb, location),
42+
43+ TP_FIELDS(
44+ ctf_integer_hex(void *, skbaddr, skb)
45+ ctf_integer_hex(void *, location, location)
46+ )
47+)
48+#else
49 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
50
51 skb_consume,
52@@ -73,6 +88,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
53 ctf_integer_hex(void *, skbaddr, skb)
54 )
55 )
56+#endif
57
58 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec,
59
60--
612.34.1
62