-
- TP_STRUCT__entry(
- __field( void *, skbaddr )
- __field( unsigned int, len )
- __field( int, rc )
- __string( name, dev->name )
- ),
-
- TP_fast_assign(
- tp_assign(skbaddr, skb);
- tp_assign(len, skb_len);
- tp_assign(rc, rc);
- tp_strcpy(name, dev->name);
- ),
-
- TP_printk("dev=%s skbaddr=%p len=%u rc=%d",
- __get_str(name), __entry->skbaddr, __entry->len, __entry->rc)
+#else
+ TP_PROTO(struct sk_buff *skb,
+ int rc),
+
+ TP_ARGS(skb, rc),
+#endif
+
+ TP_FIELDS(
+ ctf_integer_hex(void *, skbaddr, skb)
+ 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
+ )