aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-02 14:04:40 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-03-02 14:08:51 -0500
commitf9520750c4c9924c14325cd951efae5fae58104c (patch)
treeb6958c13894816db9388f856f101e9f67b3bf1a4 /kernel/trace/trace.h
parent11a241a3302277db05561e01477528629d806c4e (diff)
tracing: make trace_seq_reset global and rename to trace_seq_init
Impact: clean up The trace_seq functions may be used separately outside of the ftrace iterator. The trace_seq_reset is needed for these operations. This patch also renames trace_seq_reset to the more appropriate trace_seq_init. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index f6fa0b9f83a8..cf6ba4181b14 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -395,6 +395,14 @@ struct trace_seq {
395 unsigned int readpos; 395 unsigned int readpos;
396}; 396};
397 397
398static inline void
399trace_seq_init(struct trace_seq *s)
400{
401 s->len = 0;
402 s->readpos = 0;
403}
404
405
398#define TRACE_PIPE_ALL_CPU -1 406#define TRACE_PIPE_ALL_CPU -1
399 407
400/* 408/*