• Pekka Paalanen's avatar
    x86, mmiotrace: fix buffer overrun detection · 7ee1768d
    Pekka Paalanen authored
    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 3928a8a2
    | 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: default avatarPekka Paalanen <pq@iki.fi>
    Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    7ee1768d
trace_mmiotrace.c 8.93 KB