]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Warn about missing libelf
authorNamhyung Kim <namhyung@kernel.org>
Mon, 29 Oct 2012 15:06:46 +0000 (00:06 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 31 Oct 2012 14:17:48 +0000 (12:17 -0200)
commit29e628c9c12058be0fc62830c0d85e3659341c0d
treed3c44fcf3169a5eb64fc77b2c9a3e186141ee75b
parented0613bd7bd5fd619f7d9326ed3f0e49c2a52f39
perf tools: Warn about missing libelf

When perf detects no libelf during the build, it'll use internal mini
elf parser instead of libelf.  But as it only supports minimal
functionalities, it also disables support to 'probe' builtin command.

Currently it didn't warned to user.  Fix it.

$ sudo apt-get remove libelf-dev
$ make
    CHK -fstack-protector-all
    CHK -Wstack-protector
    CHK -Wvolatile-register-var
    CHK bionic
    CHK libelf
    CHK glibc
Makefile:491: No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev
    CHK libunwind
    CHK libaudit

$ make NO_LIBELF=1
    CHK -fstack-protector-all
    CHK -Wstack-protector
    CHK -Wvolatile-register-var
    CHK bionic
    CHK libaudit

Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-8ww8zc4hhpxabfskxs3u5ede@git.kernel.org
[ committer note: The package needed is elfutils-libelf-devel, not elfutils-devel ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile