perf record: Let user have timestamps with per-thread recording
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 6 Jul 2015 11:51:01 +0000 (14:51 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jul 2015 11:58:36 +0000 (08:58 -0300)
commit3abebc55d70b6e3247d1f0e34c0bb906e40d2a18
tree9d7f2f7e55c24acfb74fd8ac92934aa1f6fb2bcc
parent200802a4a79b3a7a1cf924ad870d3265023d0787
perf record: Let user have timestamps with per-thread recording

If the option -T is used with option --per-thread, then time is still
not sampled.  Fix that by using OPT_BOOLEAN_SET to distinguish when the
user used the -T option as opposed to the default case when timestamps
are enabled but only for per-cpu recording.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1436183461-1918-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/perf.h
tools/perf/util/evsel.c