perf build: Add feature detection for libelf's elf_getshdrstrndx()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jul 2016 22:35:47 +0000 (19:35 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jul 2016 22:38:59 +0000 (19:38 -0300)
commit2492c465ad3ae6860ebfff1c9032865017835e70
tree3d90bb4516d8e7bfbff757a824954c8b91a046bd
parent4a0f65c102ec3a718b4a0b90981232b6cb019477
perf build: Add feature detection for libelf's elf_getshdrstrndx()

That appeared after 0.140, and will be used in the SDT code, so, to
avoid bisection break on older systems, add a feature detection and
provide a stub with a pr_debug() to keep it building.

Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-80y0eldgweorqnwha9rvfxjr@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-libelf-getshdrstrndx.c [new file with mode: 0644]
tools/perf/config/Makefile
tools/perf/util/symbol-elf.c