aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 15:20:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:41:46 -0400
commit214023c3d13a71525e463b5e54e360b926b4dc90 (patch)
tree6fe6f3e513d976b32eb07f60810ccf336daf1f6b /kernel/trace/trace.h
parent93a588f459da134be6ab17c4104e28441beb0d22 (diff)
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 {
111 int print_max; 111 int print_max;
112}; 112};
113 113
114struct trace_seq {
115 unsigned char buffer[PAGE_SIZE];
116 unsigned int len;
117};
118
114/* 119/*
115 * Trace iterator - used by printout routines who present trace 120 * Trace iterator - used by printout routines who present trace
116 * results to users and which routines might sleep, etc: 121 * results to users and which routines might sleep, etc:
117 */ 122 */
118struct trace_iterator { 123struct trace_iterator {
124 struct trace_seq seq;
119 struct trace_array *tr; 125 struct trace_array *tr;
120 struct tracer *trace; 126 struct tracer *trace;
121 127