From: Jiri Olsa Date: Wed, 7 May 2014 16:51:41 +0000 (+0200) Subject: perf tools: Add file size check and factor dso__data_read_offset X-Git-Tag: omap-for-v3.16/fixes-rc4~70^2^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3fbd2a606c5f88de0079b027727a1fb0ae27b65;p=pandora-kernel.git perf tools: Add file size check and factor dso__data_read_offset Adding file size check, because the lseek will succeed for any offset behind file size and thus succeed when it was expected to fail. Factoring the code to check the offset against file size earlier in the flow. Acked-by: Namhyung Kim Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jean Pihet Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1401892622-30848-8-git-send-email-jolsa@kernel.org Signed-off-by: Jiri Olsa --- Reading git-diff-tree failed