From: Steven Rostedt Date: Fri, 31 Oct 2008 13:58:35 +0000 (-0400) Subject: tracing, ring-buffer: add paranoid checks for loops X-Git-Tag: v2.6.28-rc4~90^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818e3dd30a4ff34fff6d90e87ae59c73f6a53691;p=pandora-kernel.git tracing, ring-buffer: add paranoid checks for loops While writing a new tracer, I had a bug where I caused the ring-buffer to recurse in a bad way. The bug was with the tracer I was writing and not the ring-buffer itself. But it took a long time to find the problem. This patch adds paranoid checks into the ring-buffer infrastructure that will catch bugs of this nature. Note: I put the bug back in the tracer and this patch showed the error nicely and prevented the lockup. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed