Messages in this thread Patch in this message | | | From | Jiri Olsa <> | Subject | [PATCH 2/3] perf tools: Adding missing ifdef for cmd_trace call | Date | Fri, 27 Sep 2013 16:32:11 +0200 |
| |
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
| |