Messages in this thread | | | From | Namhyung Kim <> | Subject | Re: [PATCHv3 4/5] perf tools: Add --debug optionto set debug variable | Date | Fri, 18 Jul 2014 14:04:51 +0900 |
| |
Hi Jiri,
On Thu, 17 Jul 2014 12:55:00 +0200, Jiri Olsa wrote: > yep, it's better, v3 attached
[SNIP] > --- a/tools/perf/Documentation/perf.txt > +++ b/tools/perf/Documentation/perf.txt > @@ -8,7 +8,15 @@ perf - Performance analysis tools for Linux > SYNOPSIS > -------- > [verse] > -'perf' [--version] [--help] COMMAND [ARGS] > +'perf' [--version] [--help] [OPTIONS] COMMAND [ARGS] > + > +OPTIONS > +------- > +--debug:: > + Setup debug variable (just verbose for now) in value > + range (0, 10). Use like: > + --debug verbose # sets verbose = 1 > + --debug verbose=2 # sets verbose = 2 > > DESCRIPTION > ----------- > diff --git a/tools/perf/perf.c b/tools/perf/perf.c > index 95c58fc15284..eed3fb2a3af0 100644 > --- a/tools/perf/perf.c > +++ b/tools/perf/perf.c > @@ -13,11 +13,12 @@ > #include "util/quote.h" > #include "util/run-command.h" > #include "util/parse-events.h" > +#include "util/debug.h" > #include <api/fs/debugfs.h> > #include <pthread.h> > > const char perf_usage_string[] = > - "perf [--version] [--help] COMMAND [ARGS]"; > + "perf [--version] [--debug variable[=VALUE]] [--help] COMMAND [ARGS]";
You missed to update here.. ;-)
Thanks, Namhyung
| |