-
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.
Network Drop Monitor: Add trace declaration for skb frees
Signed-off-by: Neil Horman <nhorman@tuxdriver.com> include/trace/skb.h | 8 ++++++++ net/core/Makefile | 2 ++ net/core/net-traces.c | 29 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Neil Horman
authored and
David S. Miller
committed
Mar 13, 2009
1 parent
26ccfc3
commit 4893d39
Showing
3 changed files
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef _TRACE_SKB_H_ | ||
#define _TRACE_SKB_H_ | ||
|
||
DECLARE_TRACE(kfree_skb, | ||
TPPROTO(struct sk_buff *skb, void *location), | ||
TPARGS(skb, location)); | ||
|
||
#endif |
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,29 @@ | ||
/* | ||
* consolidates trace point definitions | ||
* | ||
* Copyright (C) 2009 Neil Horman <nhorman@tuxdriver.com> | ||
*/ | ||
|
||
#include <linux/netdevice.h> | ||
#include <linux/etherdevice.h> | ||
#include <linux/string.h> | ||
#include <linux/if_arp.h> | ||
#include <linux/inetdevice.h> | ||
#include <linux/inet.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/netpoll.h> | ||
#include <linux/sched.h> | ||
#include <linux/delay.h> | ||
#include <linux/rcupdate.h> | ||
#include <linux/types.h> | ||
#include <linux/workqueue.h> | ||
#include <linux/netlink.h> | ||
#include <linux/net_dropmon.h> | ||
#include <trace/skb.h> | ||
|
||
#include <asm/unaligned.h> | ||
#include <asm/bitops.h> | ||
|
||
|
||
DEFINE_TRACE(kfree_skb); | ||
EXPORT_TRACEPOINT_SYMBOL_GPL(kfree_skb); |