X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fnet.h;h=e552cf7ba8a66487a49df424cb47af56e892b42c;hb=9a6800e3a7bed25af7a62d7e8cb2ad9a689e5877;hp=a444b07a201059058a1da9c8c81f5804463871f2;hpb=d3ac4d63d21c643df5b09d9d7888eb0c4122379c;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/net.h b/instrumentation/events/lttng-module/net.h index a444b07a..e552cf7b 100644 --- a/instrumentation/events/lttng-module/net.h +++ b/instrumentation/events/lttng-module/net.h @@ -12,7 +12,7 @@ TRACE_EVENT(net_dev_xmit, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40)) TP_PROTO(struct sk_buff *skb, int rc, struct net_device *dev, @@ -30,14 +30,14 @@ TRACE_EVENT(net_dev_xmit, __field( void *, skbaddr ) __field( unsigned int, len ) __field( int, rc ) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40)) __string( name, dev->name ) #else __string( name, skb->dev->name ) #endif ), -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40)) TP_fast_assign( tp_assign(skbaddr, skb) tp_assign(len, skb_len)