lkml.org 
[lkml]   [2013]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/3] perf tools: Adding missing ifdef for cmd_trace call
Date
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 <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@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


\
 
 \ /
  Last update: 2013-09-27 17:01    [W:0.122 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site