diff options
author | Andi Kleen <ak@linux.intel.com> | 2014-07-31 14:45:04 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-12 12:00:03 -0300 |
commit | 8affc2b8c27bfc2d6e70827b746f490b62c44eaa (patch) | |
tree | 5fee2c062b02c41e27a19d88c00525b551357c24 /tools/perf/builtin-record.c | |
parent | b048a24cc8f29dce1bad564aaeb8680020d3701c (diff) | |
download | linux-8affc2b8c27bfc2d6e70827b746f490b62c44eaa.tar.gz linux-8affc2b8c27bfc2d6e70827b746f490b62c44eaa.tar.bz2 linux-8affc2b8c27bfc2d6e70827b746f490b62c44eaa.zip |
perf record: Honour --no-time command line option
Time stamps are always implicitely enabled for record currently. The
old --time/-T option is a nop.
Allow the user to disable timestamps by using --no-time, honouring the
existing option.
The defaults are unchanged.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1406789104-25863-10-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 4869050e7194..ca0251e8470d 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -781,6 +781,7 @@ static const char * const record_usage[] = { */ static struct record record = { .opts = { + .sample_time = true, .mmap_pages = UINT_MAX, .user_freq = UINT_MAX, .user_interval = ULLONG_MAX, |