-
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: 145991 b: refs/heads/master c: 5cb3d1d h: refs/heads/master i: 145989: 4ad5229 145987: af68652 145983: 7c4841e v: v3
- Loading branch information
Zhaolei
authored and
Ingo Molnar
committed
Apr 10, 2009
1 parent
fdb87d2
commit 3d005cf
Showing
5 changed files
with
42 additions
and
4 deletions.
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: e71e99c294058a61b7a8b9bb6da2f745ac51aa4f | ||
refs/heads/master: 5cb3d1d9d34ac04bcaa2034139345b2a5fea54c1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
/* use <trace/skb.h> instead */ | ||
#ifndef TRACE_EVENT | ||
# error Do not include this file directly. | ||
# error Unless you know what you are doing. | ||
#endif | ||
|
||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM skb | ||
|
||
/* | ||
* Tracepoint for free an sk_buff: | ||
*/ | ||
TRACE_EVENT(kfree_skb, | ||
|
||
TP_PROTO(struct sk_buff *skb, void *location), | ||
|
||
TP_ARGS(skb, location), | ||
|
||
TP_STRUCT__entry( | ||
__field( void *, skbaddr ) | ||
__field( unsigned short, protocol ) | ||
__field( void *, location ) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->skbaddr = skb; | ||
if (skb) { | ||
__entry->protocol = ntohs(skb->protocol); | ||
} | ||
__entry->location = location; | ||
), | ||
|
||
TP_printk("skbaddr=%p protocol=%u location=%p", | ||
__entry->skbaddr, __entry->protocol, __entry->location) | ||
); | ||
|
||
#undef TRACE_SYSTEM |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
#include <trace/sched.h> | ||
#include <trace/irq.h> | ||
#include <trace/lockdep.h> | ||
#include <trace/skb.h> |