]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf probe: Check if dwarf_getlocations() is available
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Apr 2016 14:33:41 +0000 (11:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 May 2016 14:26:59 +0000 (11:26 -0300)
commit4924734570a073049450b11f7c59ce5992b03343
tree7fbf3af95e3702b0dca4a0cb213f2ebbba44671f
parent62aa0e177d278462145a29c30d3c8501ae57e200
perf probe: Check if dwarf_getlocations() is available

If not, tell the user that:

  config/Makefile:273: Old libdw.h, finding variables at given 'perf probe' point will not work, install elfutils-devel/libdw-dev >= 0.157

And return -ENOTSUPP in die_get_var_range(), failing features that
need it, like the one pointed out above.

This fixes the build on older systems, such as Ubuntu 12.04.5.

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: Vinson Lee <vlee@freedesktop.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-9l7luqkq4gfnx7vrklkq4obs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Makefile.feature
tools/build/feature/Makefile
tools/build/feature/test-all.c
tools/build/feature/test-dwarf_getlocations.c [new file with mode: 0644]
tools/perf/config/Makefile
tools/perf/util/dwarf-aux.c