]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Add feature detection for gelf_getnote()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 15:19:09 +0000 (12:19 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 18:20:41 +0000 (15:20 -0300)
commita4a1900269bac5a6c30ead97c05e6b9a2ab0b1a6
tree62fd90d09b08cf1a48eaa85ea8a21d7b2cc55b5d
parent9c7ad87fd2f7cdc3af918933f25cc3fe7de2242e
perf tools: Add feature detection for gelf_getnote()

That is not present on some libelf implementations, such as the one used
in Alpine Linux: libelf-0.8.13.

This ends up disabling the SDT code, that relies on this function.

One alternative would be to provide an weak fallback implementation or
the open coded variant used by the buildid sysfs notes reading code.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-82lh22ybedy9b9lych8xj12g@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-gelf_getnote.c [new file with mode: 0644]
tools/perf/config/Makefile
tools/perf/util/build-id.c
tools/perf/util/probe-file.c
tools/perf/util/symbol-elf.c