]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mmiotrace: fix buffer overrun detection
authorPekka Paalanen <pq@iki.fi>
Sun, 23 Nov 2008 19:24:30 +0000 (21:24 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 19:33:23 +0000 (20:33 +0100)
commit7527c1712b9d4e9ec892556c21f846fe6a809c05
tree403dea91103838cbe56bca586a8f41a470e7a1e4
parent72a73882b1b20a29012f21bcd769ef84959ee742
x86, mmiotrace: fix buffer overrun detection

Impact: fix mmiotrace overrun tracing

When ftrace framework moved to use the ring buffer facility, the buffer
overrun detection was broken after 2.6.27 by commit

| commit 3970c74fac83114b4e9ca1221c345ec8fd9de84f
| Author: Steven Rostedt <rostedt@goodmis.org>
| Date:   Mon Sep 29 23:02:41 2008 -0400
|
|     ftrace: make work with new ring buffer
|
|     This patch ports ftrace over to the new ring buffer.

The detection is now fixed by using the ring buffer API.

When mmiotrace detects a buffer overrun, it will report the number of
lost events. People reading an mmiotrace log must know if something was
missed, otherwise the data may not make sense.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_mmiotrace.c