diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-08-06 06:41:21 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-08-09 21:26:38 +0200 |
commit | 393be2e3747ea3ef0d2e724115a5f42b2fa50dbd (patch) | |
tree | 6cdc2568e3a6a485f8bbf3d0f94f83873daad3a7 /tools/perf/perf.c | |
parent | perf symbols: Split out util/symbol-elf.c (diff) | |
download | linux-393be2e3747ea3ef0d2e724115a5f42b2fa50dbd.tar.xz linux-393be2e3747ea3ef0d2e724115a5f42b2fa50dbd.zip |
perf symbols: Support minimal build without libelf
Now we have isolated all ELF-specific stuff, it's possible to build
without libelf. The output binary can do most of jobs but lacks (user
level) symbol information - kernel symbols are still accessable thanks
to the kallsyms.
To build perf without libelf (elfutils), give NO_LIBELF=1 to make.
For now, only 'perf probe' command is removed since it depends on
libelf/libdw heavily.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1344228082-15569-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.c')
-rw-r--r-- | tools/perf/perf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index db37ee3f29b8..e7840e500715 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -47,7 +47,9 @@ static struct cmd_struct commands[] = { { "version", cmd_version, 0 }, { "script", cmd_script, 0 }, { "sched", cmd_sched, 0 }, +#ifndef NO_LIBELF_SUPPORT { "probe", cmd_probe, 0 }, +#endif { "kmem", cmd_kmem, 0 }, { "lock", cmd_lock, 0 }, { "kvm", cmd_kvm, 0 }, |