]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Auto-detect libbfd
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 5 Aug 2009 12:05:16 +0000 (14:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Aug 2009 12:12:08 +0000 (14:12 +0200)
commitce2f00f1e784fe6651129cd9dadc9fb25d9e7207
treef56deaa9e5c3c030d1a0c53a158a43a3212759d8
parentb884fcdc954192af74627c1019ce1ed35c16809b
perf: Auto-detect libbfd

Since the C++ demangling isn't needed for everybody and
bfd/iberty aren't widely/easily available on all machines, make
it optional.

It also allows you to forcefully disable demangling by using
NO_DEMANGLE=1 and otherwise tries to detect libbfd/libiberty
combinations that result in a compiling demangler.

Reported-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>
LKML-Reference: <20090801082048.GX12579@kernel.dk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Makefile
tools/perf/util/symbol.c