perf record: Rename --initial-delay to --delay
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Jan 2014 20:58:12 +0000 (17:58 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Jan 2014 20:58:12 +0000 (17:58 -0300)
To be consistent with the equivalent option in 'stat', also, for the
same reason, use -D as the one letter alias.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-p5yjnopajb3a8x0xha7yl5w8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-record.txt
tools/perf/builtin-record.c

index 3a35a8523e6df03aa8a5e2a0777c540085403627..c71b0f36d9e8d45285a5b2b1256876f4d6f27799 100644 (file)
@@ -208,7 +208,8 @@ overrides that and uses per-thread mmaps.  A side-effect of that is that
 inheritance is automatically disabled.  --per-thread is ignored with a warning
 if combined with -a or -C options.
 
---initial-delay msecs::
+-D::
+--delay=::
 After starting the program, wait msecs before measuring. This is useful to
 filter out the startup phase of the program, which is often very different.
 
index 78e790f4c54f07aea3bd09fe9cd093f913fb6e5f..3c394bf16fa8cd86ce01d3d5852bab8a078f5ae4 100644 (file)
@@ -882,7 +882,7 @@ const struct option record_options[] = {
        OPT_CALLBACK('G', "cgroup", &record.evlist, "name",
                     "monitor event in cgroup name only",
                     parse_cgroups),
-       OPT_UINTEGER(0, "initial-delay", &record.opts.initial_delay,
+       OPT_UINTEGER('D', "delay", &record.opts.initial_delay,
                  "ms to wait before starting measurement after program start"),
        OPT_STRING('u', "uid", &record.opts.target.uid_str, "user",
                   "user to profile"),