We're missing ifdef LIBAUDIT_SUPPORT condition check
for calling cmd_trace, otherwise the NO_LIBAUDIT=1
build fails.

Introduced by commit:
  perf trace: Add 'trace' alias to 'perf trace'

Signed-off-by: Jiri Olsa <jo...@redhat.com>
Cc: Corey Ashford <cjash...@linux.vnet.ibm.com>
Cc: Ingo Molnar <mi...@elte.hu>
Cc: Namhyung Kim <namhy...@kernel.org>
Cc: Paul Mackerras <pau...@samba.org>
Cc: Peter Zijlstra <a.p.zijls...@chello.nl>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: David Ahern <dsah...@gmail.com>
---
 tools/perf/perf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index 48d3be6..d8460fe 100644
--- a/tools/perf/perf.c
+++ b/tools/perf/perf.c
@@ -482,12 +482,14 @@ int main(int argc, const char **argv)
                goto out;
        }
 
+#ifdef LIBAUDIT_SUPPORT
        if (!prefixcmp(cmd, "trace")) {
                set_buildid_dir();
                setup_path();
                argv[0] = "trace";
                return cmd_trace(argc, argv, NULL);
        }
+#endif
 
        /* Look for flags.. */
        argv++;
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to