]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Network Drop Monitor: Add trace declaration for skb frees
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 11 Mar 2009 09:48:26 +0000 (09:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2009 19:09:27 +0000 (12:09 -0700)
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>
include/trace/skb.h [new file with mode: 0644]
net/core/Makefile
net/core/net-traces.c [new file with mode: 0644]

diff --git a/include/trace/skb.h b/include/trace/skb.h
new file mode 100644 (file)
index 0000000..3aa8646
--- /dev/null
@@ -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
index 26a37cb3192316a715f7128bb717a3346d8ae76c..d47092bc525c5666e716c481fa0edb16d980a83c 100644 (file)
@@ -17,3 +17,5 @@ obj-$(CONFIG_NET_PKTGEN) += pktgen.o
 obj-$(CONFIG_NETPOLL) += netpoll.o
 obj-$(CONFIG_NET_DMA) += user_dma.o
 obj-$(CONFIG_FIB_RULES) += fib_rules.o
+obj-$(CONFIG_TRACEPOINTS) += net-traces.o
+
diff --git a/net/core/net-traces.c b/net/core/net-traces.c
new file mode 100644 (file)
index 0000000..c8fb456
--- /dev/null
@@ -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);