]> git.lttng.org Git - lttng-modules.git/commitdiff
fix: net: add location to trace_consume_skb() (v6.3)
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Mar 2023 16:10:26 +0000 (11:10 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 8 Mar 2023 18:57:46 +0000 (13:57 -0500)
See upstream commit :

  commit dd1b527831a3ed659afa01b672d8e1f7e6ca95a5
  Author: Eric Dumazet <edumazet@google.com>
  Date:   Thu Feb 16 15:47:18 2023 +0000

    net: add location to trace_consume_skb()

    kfree_skb() includes the location, it makes sense
    to add it to consume_skb() as well.

Change-Id: I8d871187d90e7fe113a63e209b00aebe0df475f3
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/skb.h

index 186732eac189a61206f8994e928670ebc4b9381b..3c43f32d229edaa50f7d0ad66a8eed029b6dce8c 100644 (file)
@@ -61,6 +61,21 @@ LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb,
 )
 #endif
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,3,0))
+LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
+
+       skb_consume,
+
+       TP_PROTO(struct sk_buff *skb, void *location),
+
+       TP_ARGS(skb, location),
+
+       TP_FIELDS(
+               ctf_integer_hex(void *, skbaddr, skb)
+               ctf_integer_hex(void *, location, location)
+       )
+)
+#else
 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
 
        skb_consume,
@@ -73,6 +88,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
                ctf_integer_hex(void *, skbaddr, skb)
        )
 )
+#endif
 
 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec,
 
This page took 0.030848 seconds and 4 git commands to generate.