diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-09-27 20:23:38 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-27 10:56:40 -0300 |
commit | 4d29089c2b70ffeb61656ffd1b9c9c52602ddd44 (patch) | |
tree | 8452e449fe38baaaba5cba636e62f343b7cde8fb /tools/perf/perf.c | |
parent | 9ec60972a38011ad8a5676f4cd5e51ac508c36b6 (diff) | |
download | linux-3.10-4d29089c2b70ffeb61656ffd1b9c9c52602ddd44.tar.gz linux-3.10-4d29089c2b70ffeb61656ffd1b9c9c52602ddd44.tar.bz2 linux-3.10-4d29089c2b70ffeb61656ffd1b9c9c52602ddd44.zip |
perf tools: Check libaudit availability for perf-trace builtin
The newly added trace command requires an external audit library.
However it can cause a build error because it's not checked whether the
libaudit is installed on system:
CC builtin-trace.o
builtin-trace.c:7:22: fatal error: libaudit.h: No such file or directory
compilation terminated.
make: *** [builtin-trace.o] Error 1
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1348745018-21744-1-git-send-email-namhyung@kernel.org
[ committer note: Added ", disables 'trace tool' to the feature warning msg ]
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 3fb052c9a27..fc2f770e302 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -55,7 +55,9 @@ static struct cmd_struct commands[] = { { "lock", cmd_lock, 0 }, { "kvm", cmd_kvm, 0 }, { "test", cmd_test, 0 }, +#ifndef NO_LIBAUDIT_SUPPORT { "trace", cmd_trace, 0 }, +#endif { "inject", cmd_inject, 0 }, }; |