#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/tracepoint.h>
#include <trace/define_trace.h>
Go to the source code of this file.
|
| TRACE_EVENT (kfree_skb, TP_PROTO(struct sk_buff *skb, void *location), TP_ARGS(skb, location), TP_STRUCT__entry(__field(void *, skbaddr) __field(void *, location) __field(unsigned short, protocol)), TP_fast_assign(__entry->skbaddr=skb;__entry->location=location;__entry->protocol=ntohs(skb->protocol);), TP_printk("skbaddr=%p protocol=%u location=%p", __entry->skbaddr, __entry->protocol, __entry->location)) |
|
| TRACE_EVENT (consume_skb, TP_PROTO(struct sk_buff *skb), TP_ARGS(skb), TP_STRUCT__entry(__field(void *, skbaddr)), TP_fast_assign(__entry->skbaddr=skb;), TP_printk("skbaddr=%p", __entry->skbaddr)) |
|
| TRACE_EVENT (skb_copy_datagram_iovec, TP_PROTO(const struct sk_buff *skb, int len), TP_ARGS(skb, len), TP_STRUCT__entry(__field(const void *, skbaddr) __field(int, len)), TP_fast_assign(__entry->skbaddr=skb;__entry->len=len;), TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len)) |
|
Definition at line 5 of file skb.h.
Definition at line 2 of file skb.h.
TRACE_EVENT |
( |
kfree_skb |
, |
|
|
TP_PROTO(struct sk_buff *skb, void *location) |
, |
|
|
TP_ARGS(skb, location) |
, |
|
|
TP_STRUCT__entry(__field(void *, skbaddr) __field(void *, location) __field(unsigned short, protocol)) |
, |
|
|
TP_fast_assign(__entry->skbaddr=skb;__entry->location=location;__entry->protocol=ntohs(skb->protocol);) |
, |
|
|
TP_printk("skbaddr=%p protocol=%u location=%p", __entry->skbaddr, __entry->protocol, __entry->location) |
|
|
) |
| |
TRACE_EVENT |
( |
skb_copy_datagram_iovec |
, |
|
|
TP_PROTO(const struct sk_buff *skb, int len) |
, |
|
|
TP_ARGS(skb, len) |
, |
|
|
TP_STRUCT__entry(__field(const void *, skbaddr) __field(int, len)) |
, |
|
|
TP_fast_assign(__entry->skbaddr=skb;__entry->len=len;) |
, |
|
|
TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len) |
|
|
) |
| |