-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 211810 b: refs/heads/master c: cf66ba5 h: refs/heads/master v: v3
- Loading branch information
Koki Sanagi
authored and
Frederic Weisbecker
committed
Sep 7, 2010
1 parent
3347567
commit ce02997
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 3e4b10d7a4d2a78af64f8096dc7cdb3bebd65adb | ||
refs/heads/master: cf66ba58b5cb8b1526e9dd2fb96ff8db048d4d44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM net | ||
|
||
#if !defined(_TRACE_NET_H) || defined(TRACE_HEADER_MULTI_READ) | ||
#define _TRACE_NET_H | ||
|
||
#include <linux/skbuff.h> | ||
#include <linux/netdevice.h> | ||
#include <linux/ip.h> | ||
#include <linux/tracepoint.h> | ||
|
||
TRACE_EVENT(net_dev_xmit, | ||
|
||
TP_PROTO(struct sk_buff *skb, | ||
int rc), | ||
|
||
TP_ARGS(skb, rc), | ||
|
||
TP_STRUCT__entry( | ||
__field( void *, skbaddr ) | ||
__field( unsigned int, len ) | ||
__field( int, rc ) | ||
__string( name, skb->dev->name ) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->skbaddr = skb; | ||
__entry->len = skb->len; | ||
__entry->rc = rc; | ||
__assign_str(name, skb->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, net_dev_queue, | ||
|
||
TP_PROTO(struct sk_buff *skb), | ||
|
||
TP_ARGS(skb) | ||
); | ||
|
||
DEFINE_EVENT(net_dev_template, netif_receive_skb, | ||
|
||
TP_PROTO(struct sk_buff *skb), | ||
|
||
TP_ARGS(skb) | ||
); | ||
|
||
DEFINE_EVENT(net_dev_template, netif_rx, | ||
|
||
TP_PROTO(struct sk_buff *skb), | ||
|
||
TP_ARGS(skb) | ||
); | ||
#endif /* _TRACE_NET_H */ | ||
|
||
/* This part must be outside protection */ | ||
#include <trace/define_trace.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters