linux/tools/build/feature
Arnaldo Carvalho de Melo bd0419e2a5 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>
2016-04-06 10:44:28 -03:00
..
.gitignore perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
Makefile perf probe: Check if dwarf_getlocations() is available 2016-04-06 10:44:28 -03:00
test-all.c perf probe: Check if dwarf_getlocations() is available 2016-04-06 10:44:28 -03:00
test-backtrace.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-bionic.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-bpf.c perf tools: Fix PowerPC native building 2016-01-11 19:22:20 -03:00
test-compile.c tools build: Check basic headers for test-compile feature checker 2016-01-27 11:59:32 -03:00
test-cplus-demangle.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-dwarf.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-dwarf_getlocations.c perf probe: Check if dwarf_getlocations() is available 2016-04-06 10:44:28 -03:00
test-fortify-source.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-get_cpuid.c tools build: Add test for presence of __get_cpuid() gcc builtin 2015-09-17 13:14:35 -03:00
test-glibc.c perf tools: Fix build errors with mipsel-linux-uclibc compiler 2015-08-05 16:56:16 -03:00
test-gtk2-infobar.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-gtk2.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-hello.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libaudit.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libbabeltrace.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libbfd.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libcrypto.c perf build: Add libcrypto feature detection 2016-02-05 09:46:45 -03:00
test-libdw-dwarf-unwind.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libelf-getphdrnum.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libelf-mmap.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libelf.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libnuma.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libperl.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libpython-version.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libpython.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libslang.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libunwind-debug-frame.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libunwind.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-lzma.c tools build: Add feature check for lzma library 2015-03-21 14:53:39 -03:00
test-numa_num_possible_cpus.c tools build: Add test for presence of numa_num_possible_cpus() in libnuma 2015-09-17 13:14:35 -03:00
test-pthread-attr-setaffinity-np.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-stackprotector-all.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-sync-compare-and-swap.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-timerfd.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-zlib.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00