Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135170
b: refs/heads/master
c: 4893d39
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Mar 13, 2009
1 parent c33f0af commit decfb75
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26ccfc37da21e6f02d5e805c38ca7551c16b2fe0
refs/heads/master: 4893d39e865b2897bf9fcd329697d37032d853a1
8 changes: 8 additions & 0 deletions trunk/include/trace/skb.h
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
2 changes: 2 additions & 0 deletions trunk/net/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

29 changes: 29 additions & 0 deletions trunk/net/core/net-traces.c
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);

0 comments on commit decfb75

Please sign in to comment.