[PATCH 3/4] perf tools: Check return value of filename__read_debuglink()

2014-02-19 Thread Namhyung Kim
From: Stephane Eranian When dso__read_binary_type_filename() called, it doesn't check the return value of filename__read_debuglink() so that it'll try to open the debuglink file even if it doesn't exist. Also fix return value of the filename__read_debuglink() as it always return -1 regardless

[PATCH 3/4] perf tools: Check return value of filename__read_debuglink()

2014-02-19 Thread Namhyung Kim
From: Stephane Eranian eran...@google.com When dso__read_binary_type_filename() called, it doesn't check the return value of filename__read_debuglink() so that it'll try to open the debuglink file even if it doesn't exist. Also fix return value of the filename__read_debuglink() as it always