From: Sonny Rao Date: Thu, 14 Jul 2011 03:34:43 +0000 (+1000) Subject: perf: Robustify proc and debugfs file recording X-Git-Tag: v3.1-rc1~299^2~10^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=259032bfe379281bf7cba512b7705bdb4ce41db5;p=pandora-kernel.git perf: Robustify proc and debugfs file recording While attempting to create a timechart of boot up I found perf didn't tolerate modules being loaded/unloaded. This patch fixes this by reading the file once and then writing the size read at the correct point in the file. It also simplifies the code somewhat. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Signed-off-by: Sonny Rao Signed-off-by: Michael Neuling Link: http://lkml.kernel.org/r/10011.1310614483@neuling.org Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed