From: Jiri Olsa Date: Mon, 12 Nov 2012 17:34:02 +0000 (+0100) Subject: perf tools: Ensure single disable call per event in record comand X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~77^2~3^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2711926a416733b853977a0e014c713955ad0d8a;p=pandora-kernel.git perf tools: Ensure single disable call per event in record comand It's possible we issue the event disable ioctl multiple times until we read the final portion of the mmap buffer. Ensuring just single disable ioctl call for event, because there's no need to do that more than once. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1352741644-16809-4-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed