[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160113104254.GA9854@gmail.com>
Date: Wed, 13 Jan 2016 11:42:55 +0100
From: Ingo Molnar <mingo@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Jiri Olsa <jolsa@...nel.org>, lkml <linux-kernel@...r.kernel.org>,
David Ahern <dsahern@...il.com>,
Namhyung Kim <namhyung@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: [PATCH] perf tools: Do not show trace command if it's not
compiled in
* Arnaldo Carvalho de Melo <acme@...nel.org> wrote:
> Em Tue, Jan 12, 2016 at 12:23:41PM +0100, Ingo Molnar escreveu:
> >
> > * Jiri Olsa <jolsa@...nel.org> wrote:
> >
> > > The trace command still appears in help message when you
> > > run simple 'perf' command.
> > >
> > > It's because the generate-cmdlist.sh does not care about the
> > > HAVE_LIBAUDIT_SUPPORT dependency of trace command and puts
> > > it into generated common_cmds array.
> > >
> > > Wrapping trace command under HAVE_LIBAUDIT_SUPPORT dependency,
> > > which will exclude it from common_cmds array if HAVE_LIBAUDIT_SUPPORT
> > > is not set.
> >
> > Btw., would it make sense to still list them, but denote them as '[NOT BUILT IN]':
>
> Yeah, just like we have:
>
> $ make NO_DWARF=1 O=/tmp/build/perf -C tools/perf/ install
> make: Entering directory '/home/git/linux/tools/perf'
> BUILD: Doing 'make -j4' parallel build
> config/Makefile:328: DWARF support is off, BPF prologue is disabled
> SUBDIR Documentation
> ASCIIDOC /tmp/build/perf/perf-diff.xml
> CC /tmp/build/perf/util/abspath.o
> <SNIP>
>
> $ perf record -h vm build
>
> Usage: perf record [<options>] [<command>]
> or: perf record [<options>] -- <command> [<options>]
>
> -B, --no-buildid do not collect buildids in perf.data
> -N, --no-buildid-cache do not update the buildid cache
> --vmlinux <file> vmlinux pathname
> (not built-in because NO_DWARF=1)
Very nice!
Thanks,
Ingo
Powered by blists - more mailing lists