From: Zhouyi Zhou Date: Thu, 24 Oct 2013 07:43:33 +0000 (+0800) Subject: perf tools: Fixup mmap event consumption X-Git-Tag: v3.12~30^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e50d384cc1d5afd2989cf0f7093756ed7164eb2;p=pandora-kernel.git perf tools: Fixup mmap event consumption The tail position of the event buffer should only be modified after actually use that event. If not the event buffer could be invalid before use, and segment fault occurs when invoking perf top -G. Signed-off-by: Zhouyi Zhou Cc: David Ahern Cc: Zhouyi Zhou Link: http://lkml.kernel.org/r/1382600613-32177-1-git-send-email-zhouzhouyi@gmail.com [ Simplified the logic using exit gotos and renamed write_tail method to mmap_consume ] Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed