Patchwork Add dependent headers to trace/skb.h

login
register
mail settings
Submitter Josh Stone
Date March 24, 2009, 7:44 p.m.
Message ID <1237923868-31095-1-git-send-email-jistone@redhat.com>
Download mbox | patch
Permalink /patch/25025/
State Accepted
Delegated to: David Miller
Headers show

Comments

Josh Stone - March 24, 2009, 7:44 p.m.
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 <jistone@redhat.com>
CC: Neil Horman <nhorman@tuxdriver.com>
---
 include/trace/skb.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

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 <linux/skbuff.h>
+#include <linux/tracepoint.h>
+
 DECLARE_TRACE(kfree_skb,
 	TPPROTO(struct sk_buff *skb, void *location),
 	TPARGS(skb, location));