From: Robert Richter Date: Fri, 9 Oct 2009 01:17:44 +0000 (+0200) Subject: oprofile: warn on freeing event buffer too early X-Git-Tag: v2.6.32-rc5~21^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0868934e536e0ff508f2d359d006b25abc4970d;p=pandora-kernel.git oprofile: warn on freeing event buffer too early A race shouldn't happen since all workqueues or handlers are canceled or flushed before the event buffer is freed. A warning is triggered now if the buffer is freed too early. Also, this patch adds some comments about event buffer protection, reworks some code and adds code to clear buffer_pos during alloc and free of the event buffer. Cc: David Rientjes Cc: Stephane Eranian Signed-off-by: Robert Richter --- Reading git-diff-tree failed