[PATCH] perf unwind: Report error from dwfl_attach_state

2018-02-11 Thread Martin Vuille
In verbose level 2, errors returned by libdw are reported in most cases, but not when calling dwfl_attach_state. Since elfutils v 0.160 (2014), dwfl_attach_state sets the error code to report failure cause. On failure, log the reported error. --- tools/perf/util/unwind-libdw.c | 3 ++- 1 file

[PATCH] perf unwind: Report error from dwfl_attach_state

2018-02-11 Thread Martin Vuille
In verbose level 2, errors returned by libdw are reported in most cases, but not when calling dwfl_attach_state. Since elfutils v 0.160 (2014), dwfl_attach_state sets the error code to report failure cause. On failure, log the reported error. --- tools/perf/util/unwind-libdw.c | 3 ++- 1 file