tracing: make trace_seq_reset global and rename to trace_seq_init
[linux-2.6.git] / kernel / trace / trace.h
index f6fa0b9..cf6ba41 100644 (file)
@@ -395,6 +395,14 @@ struct trace_seq {
        unsigned int            readpos;
 };
 
+static inline void
+trace_seq_init(struct trace_seq *s)
+{
+       s->len = 0;
+       s->readpos = 0;
+}
+
+
 #define TRACE_PIPE_ALL_CPU     -1
 
 /*