From: Arnaldo Carvalho de Melo Date: Thu, 17 Oct 2013 19:33:43 +0000 (-0300) Subject: perf tools: Introduce filename__read_int helper X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~41^2~26^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97a07f10c38064dea492794c99445f6260afcdc1;p=pandora-kernel.git perf tools: Introduce filename__read_int helper Just opens a file and calls atoi() in at most its first 64 bytes. To read things like /proc/sys/kernel/perf_event_paranoid. Cc: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-669q04c5tou5pnt8jtiz6y2r@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed