From: Ingo Molnar Date: Wed, 9 Oct 2013 15:00:23 +0000 (+0200) Subject: tools/perf/build: Fix non-existent build directory handling X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~41^2~28^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fb66335e13ef7426affe9efa48c08857202c1cb;p=pandora-kernel.git tools/perf/build: Fix non-existent build directory handling Arnaldo reported that non-existent build directories were not recognized properly. The reason is readlink failure causing 'O' to become empty. Solve it by passing through the 'O' variable unmodified if readlink fails. Reported-by: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20131009150023.GA10167@gmail.com Signed-off-by: Ingo Molnar Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed