aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 21:20:46 +0200
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 20:41:46 +0200
commit214023c3d13a71525e463b5e54e360b926b4dc90 (patch)
tree6fe6f3e513d976b32eb07f60810ccf336daf1f6b /kernel/trace/trace.h
parentftrace: change buffers to producer consumer (diff)
downloadlinux-dev-214023c3d13a71525e463b5e54e360b926b4dc90.tar.xz
linux-dev-214023c3d13a71525e463b5e54e360b926b4dc90.zip
ftrace: add a buffer for output
Later patches will need to print the same things as the seq output does. But those outputs will not use the seq utility. This patch adds a buffer to the iterator, that can be used by either the seq utility or other output. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 0ce127455b4b..f5b32ca0b457 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -111,11 +111,17 @@ struct tracer {
int print_max;
};
+struct trace_seq {
+ unsigned char buffer[PAGE_SIZE];
+ unsigned int len;
+};
+
/*
* Trace iterator - used by printout routines who present trace
* results to users and which routines might sleep, etc:
*/
struct trace_iterator {
+ struct trace_seq seq;
struct trace_array *tr;
struct tracer *trace;