]> asedeno.scripts.mit.edu Git - linux.git/commit
perf unwind: Report error from dwfl_attach_state
authorMartin Vuille <jpmv27@aim.com>
Sun, 18 Mar 2018 17:50:53 +0000 (13:50 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Mar 2018 16:16:09 +0000 (13:16 -0300)
commit555fc3b1ef4c850c635be333024dcf67bc1e7cb8
tree14ec58ecc34e44f6ea14d88e9e8989d74718cff5
parentecd380b8dead1bad67e3af87e2ddfe826c3da79d
perf unwind: Report error from dwfl_attach_state

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.

Signed-off-by: Martin Vuille <jpmv27@aim.com>
Reviewed-by: Kim Phillips <kim.phillips@arm.com>
Link: http://lkml.kernel.org/r/20180318175053.4222-1-jpmv27@aim.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/unwind-libdw.c