Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
net.h File Reference
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/ip.h>
#include <linux/tracepoint.h>
#include <trace/define_trace.h>

Go to the source code of this file.

Macros

#define TRACE_SYSTEM   net
 
#define _TRACE_NET_H
 

Functions

 TRACE_EVENT (net_dev_xmit, TP_PROTO(struct sk_buff *skb, int rc, struct net_device *dev, unsigned int skb_len), TP_ARGS(skb, rc, dev, skb_len), TP_STRUCT__entry(__field(void *, skbaddr) __field(unsigned int, len) __field(int, rc) __string(name, dev->name)), TP_fast_assign(__entry->skbaddr=skb;__entry->len=skb_len;__entry->rc=rc;__assign_str(name, dev->name);), TP_printk("dev=%s skbaddr=%p len=%u rc=%d", __get_str(name), __entry->skbaddr, __entry->len, __entry->rc))
 
 DECLARE_EVENT_CLASS (net_dev_template, TP_PROTO(struct sk_buff *skb), TP_ARGS(skb), TP_STRUCT__entry(__field(void *, skbaddr) __field(unsigned int, len) __string(name, skb->dev->name)), TP_fast_assign(__entry->skbaddr=skb;__entry->len=skb->len;__assign_str(name, skb->dev->name);), TP_printk("dev=%s skbaddr=%p len=%u", __get_str(name), __entry->skbaddr, __entry->len)) DEFINE_EVENT(net_dev_template
 
 TP_PROTO (struct sk_buff *skb)
 
 DEFINE_EVENT (net_dev_template, netif_receive_skb, TP_PROTO(struct sk_buff *skb),)
 
 DEFINE_EVENT (net_dev_template, netif_rx, TP_PROTO(struct sk_buff *skb),)
 

Variables

 net_dev_queue
 

Macro Definition Documentation

#define _TRACE_NET_H

Definition at line 5 of file net.h.

#define TRACE_SYSTEM   net

Definition at line 2 of file net.h.

Function Documentation

DECLARE_EVENT_CLASS ( net_dev_template  ,
TP_PROTO(struct sk_buff *skb ,
TP_ARGS(skb ,
TP_STRUCT__entry(__field(void *,skbaddr)__field(unsigned int, len)__string(name,skb->dev->name))  ,
TP_fast_assign(__entry->skbaddr=skb;__entry->len=skb->len;__assign_str(name, skb->dev->name);)  ,
TP_printk("dev=%s skbaddr=%p len=%u",__get_str(name), __entry->skbaddr, __entry->len  
)
DEFINE_EVENT ( net_dev_template  ,
netif_receive_skb  ,
TP_PROTO(struct sk_buff *skb  
)
DEFINE_EVENT ( net_dev_template  ,
netif_rx  ,
TP_PROTO(struct sk_buff *skb  
)
TP_PROTO ( struct sk_buff skb)
TRACE_EVENT ( net_dev_xmit  ,
TP_PROTO(struct sk_buff *skb, int rc, struct net_device *dev, unsigned int skb_len)  ,
TP_ARGS(skb, rc, dev, skb_len)  ,
TP_STRUCT__entry(__field(void *, skbaddr) __field(unsigned int, len) __field(int, rc) __string(name, dev->name))  ,
TP_fast_assign(__entry->skbaddr=skb;__entry->len=skb_len;__entry->rc=rc;__assign_str(name, dev->name);)  ,
TP_printk("dev=%s skbaddr=%p len=%u rc=%d", __get_str(name), __entry->skbaddr, __entry->len, __entry->rc  
)

Variable Documentation

net_dev_queue

Definition at line 61 of file net.h.