[PATCH] Add dependent headers to trace/skb.h

Previous thread: Re: BUG in 2.6.29 final: broken network connection by Ingo Molnar on Tuesday, March 24, 2009 - 12:42 pm. (1 message)

Next thread: [PATCH] drivers/net/dnet.c needs <linux/io.h> by Geert Uytterhoeven on Tuesday, March 24, 2009 - 12:43 pm. (2 messages)
From: Josh Stone
Date: Tuesday, March 24, 2009 - 12:44 pm

The tracing header needs to include definitions for the macros used and
the types referenced.  This lets automated tracing tools like SystemTap
make use of the tracepoint without any specific knowledge of its
meaning (leaving that to the user).

Signed-off-by: Josh Stone &lt;jistone@redhat.com&gt;
CC: Neil Horman &lt;nhorman@tuxdriver.com&gt;
---
 include/trace/skb.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/trace/skb.h b/include/trace/skb.h
index 3aa8646..a96610f 100644
--- a/include/trace/skb.h
+++ b/include/trace/skb.h
@@ -1,6 +1,9 @@
 #ifndef _TRACE_SKB_H_
 #define _TRACE_SKB_H_
 
+#include &lt;linux/skbuff.h&gt;
+#include &lt;linux/tracepoint.h&gt;
+
 DECLARE_TRACE(kfree_skb,
 	TPPROTO(struct sk_buff *skb, void *location),
 	TPARGS(skb, location));
-- 
1.6.0.6

--

Previous thread: Re: BUG in 2.6.29 final: broken network connection by Ingo Molnar on Tuesday, March 24, 2009 - 12:42 pm. (1 message)

Next thread: [PATCH] drivers/net/dnet.c needs <linux/io.h> by Geert Uytterhoeven on Tuesday, March 24, 2009 - 12:43 pm. (2 messages)