]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf tools: Fix compile with libelf without get_phdrnum
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 13 Sep 2013 13:49:30 +0000 (16:49 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 19 Sep 2013 14:32:17 +0000 (11:32 -0300)
commite955d5c434009b661dbb200c601254b0c2d9940a
tree521348110e1dd5946a9bcb4501665f829770abf2
parent5b6a42fcb38f3230922239255698dd8c39382978
perf tools: Fix compile with libelf without get_phdrnum

Add a feature check for get_phdrnum() and implement a replacement if it
is not present.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1379080170-6608-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/config/Makefile
tools/perf/config/feature-tests.mak
tools/perf/util/symbol-elf.c