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>
This commit is contained in:
Steven Rostedt
2008-05-12 21:21:01 +02:00
committed by Thomas Gleixner
parent 72b59d67f8
commit 53d0aa7730
2 changed files with 16 additions and 6 deletions
+5 -1
View File
@@ -97,6 +97,7 @@ struct trace_array_cpu {
void *trace_head; /* producer */
void *trace_tail; /* consumer */
unsigned long trace_idx;
unsigned long overrun;
unsigned long saved_latency;
unsigned long critical_start;
unsigned long critical_end;
@@ -157,10 +158,13 @@ struct trace_seq {
* results to users and which routines might sleep, etc:
*/
struct trace_iterator {
struct trace_seq seq;
struct trace_array *tr;
struct tracer *trace;
long last_overrun[NR_CPUS];
long overrun[NR_CPUS];
/* The below is zeroed out in pipe_read */
struct trace_seq seq;
struct trace_entry *ent;
int cpu;