[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1372342970.1734.16.camel@leonhard>
Date: Thu, 27 Jun 2013 23:22:50 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: David Ahern <dsahern@...il.com>
Cc: Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>,
Ingo Molnar <mingo@...nel.org>,
Namhyung Kim <namhyung.kim@....com>,
LKML <linux-kernel@...r.kernel.org>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Jiri Olsa <jolsa@...hat.com>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 05/19] perf tools: Introduce new 'ftrace' tool
2013-06-27 (목), 07:51 -0600, David Ahern:
> On 6/26/13 11:04 PM, Namhyung Kim wrote:
> > Hi David,
> >
> > On Wed, 26 Jun 2013 11:10:34 -0600, David Ahern wrote:
> >> On 6/26/13 1:14 AM, Namhyung Kim wrote:
> >>> + const char * const ftrace_usage[] = {
> >>> + "perf ftrace [<options>] [<command>]",
> >>> + "perf ftrace [<options>] -- <command> [<options>]",
> >>> + NULL
> >>> + };
> >>> + const struct option ftrace_options[] = {
> >>> + OPT_STRING('t', "tracer", &ftrace.tracer, "tracer",
> >>> + "tracer to use"),
> >>
> >> How does a user know what is a valid tracer string?
> >
> > The helpline should look like (at least):
> >
> > "tracer to use: function_graph or function"
>
> exactly. I would suggest making that OPT_CALLBACK as well to validate
> the string content when options are parsed.
Did you mean it by checking /sys/kernel/debug/tracing/available_tracers?
Yes, I can do that. But current code does not support other tracers and
it'd anyway emit warning on an invalid tracer argument.
Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists