Fix: net instrumentation for kernels 2.6.39 and below
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 Apr 2015 16:15:03 +0000 (12:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 Apr 2015 16:15:03 +0000 (12:15 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/net.h

index d91aac054b5c726d83c8d0d25fe7f34e0b67471a..01314ed56f1b1fb797d6d9bf584823ec9a1c55a4 100644 (file)
@@ -28,11 +28,12 @@ LTTNG_TRACEPOINT_EVENT(net_dev_xmit,
 
        TP_FIELDS(
                ctf_integer(void *, skbaddr, skb)
-               ctf_integer(unsigned int, len, skb_len)
                ctf_integer(int, rc, rc)
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
+               ctf_integer(unsigned int, len, skb_len)
                ctf_string(name, dev->name)
 #else
+               ctf_integer(unsigned int, len, skb->len)
                ctf_string(name, skb->dev->name)
 #endif
        )
This page took 0.024971 seconds and 4 git commands to generate.