Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
skb.h File Reference
#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.

Macros

#define TRACE_SYSTEM   skb
 
#define _TRACE_SKB_H
 

Functions

 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))
 

Macro Definition Documentation

#define _TRACE_SKB_H

Definition at line 5 of file skb.h.

#define TRACE_SYSTEM   skb

Definition at line 2 of file skb.h.

Function Documentation

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  
)