perf unwind: Unwind with libdw doesn't take symfs into account
authorMartin Vuille <jpmv27@aim.com>
Sun, 11 Feb 2018 21:24:20 +0000 (16:24 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2018 16:55:51 +0000 (13:55 -0300)
commit3d20c6246690219881786de10d2dda93f616d0ac
tree1a5c2ac6a9ecbf9882d53d90533b95e2589336be
parenta8685f088819d21cd5aea5de4c184de427c3625d
perf unwind: Unwind with libdw doesn't take symfs into account

Path passed to libdw for unwinding doesn't include symfs path
if specified, so unwinding fails because ELF file is not found.

Similar to unwinding with libunwind, pass symsrc_filename instead
of long_name. If there is no symsrc_filename, fallback to long_name.

Signed-off-by: Martin Vuille <jpmv27@aim.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20180211212420.18388-1-jpmv27@aim.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/unwind-libdw.c