X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fnet.h;fp=instrumentation%2Fevents%2Flttng-module%2Fnet.h;h=01314ed56f1b1fb797d6d9bf584823ec9a1c55a4;hb=974c096958f9b40839e3c7a02d3a34f19de0a7af;hp=d91aac054b5c726d83c8d0d25fe7f34e0b67471a;hpb=ca894351bef36c4fb1e65be82535bbb87392c1bd;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/net.h b/instrumentation/events/lttng-module/net.h index d91aac05..01314ed5 100644 --- a/instrumentation/events/lttng-module/net.h +++ b/instrumentation/events/lttng-module/net.h @@ -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 )