diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 15:21:01 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:56:02 -0400 |
commit | 53d0aa773053ab18287781e25d52c5faf9e0e09e (patch) | |
tree | c0e268cb22a0416efca8709c677d41b513af04d3 /kernel/trace/trace.h | |
parent | 72b59d67f80983f7bb587b086fb4cb1bc95263a4 (diff) |
ftrace: add logic to record overruns
This patch sets up the infrastructure to record overruns of the tracing
buffer.
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 8991c5efcc74..c1ec134ac356 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -97,6 +97,7 @@ struct trace_array_cpu { | |||
97 | void *trace_head; /* producer */ | 97 | void *trace_head; /* producer */ |
98 | void *trace_tail; /* consumer */ | 98 | void *trace_tail; /* consumer */ |
99 | unsigned long trace_idx; | 99 | unsigned long trace_idx; |
100 | unsigned long overrun; | ||
100 | unsigned long saved_latency; | 101 | unsigned long saved_latency; |
101 | unsigned long critical_start; | 102 | unsigned long critical_start; |
102 | unsigned long critical_end; | 103 | unsigned long critical_end; |
@@ -157,10 +158,13 @@ struct trace_seq { | |||
157 | * results to users and which routines might sleep, etc: | 158 | * results to users and which routines might sleep, etc: |
158 | */ | 159 | */ |
159 | struct trace_iterator { | 160 | struct trace_iterator { |
160 | struct trace_seq seq; | ||
161 | struct trace_array *tr; | 161 | struct trace_array *tr; |
162 | struct tracer *trace; | 162 | struct tracer *trace; |
163 | long last_overrun[NR_CPUS]; | ||
164 | long overrun[NR_CPUS]; | ||
163 | 165 | ||
166 | /* The below is zeroed out in pipe_read */ | ||
167 | struct trace_seq seq; | ||
164 | struct trace_entry *ent; | 168 | struct trace_entry *ent; |
165 | int cpu; | 169 | int cpu; |
166 | 170 | ||