- TP_STRUCT__entry(
- __field( void *, skbaddr )
- __field( void *, location )
- __field( unsigned short, protocol )
- ),
-
- TP_fast_assign(
- tp_assign(skbaddr, skb);
- tp_assign(location, location);
- tp_assign(protocol, ntohs(skb->protocol));
- ),
-
- TP_printk("skbaddr=%p protocol=%u location=%p",
- __entry->skbaddr, __entry->protocol, __entry->location)
+ TP_FIELDS(
+ ctf_integer(void *, skbaddr, skb)
+ ctf_integer(void *, location, location)
+ ctf_integer_network(unsigned short, protocol, skb->protocol)
+ )