summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2015-07-06 14:51:01 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-07-06 08:58:36 -0300
commit3abebc55d70b6e3247d1f0e34c0bb906e40d2a18 (patch)
tree9d7f2f7e55c24acfb74fd8ac92934aa1f6fb2bcc /tools/perf/perf.h
parent200802a4a79b3a7a1cf924ad870d3265023d0787 (diff)
downloadblackbird-op-linux-3abebc55d70b6e3247d1f0e34c0bb906e40d2a18.tar.gz
blackbird-op-linux-3abebc55d70b6e3247d1f0e34c0bb906e40d2a18.zip
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>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r--tools/perf/perf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 4a5827fff799..937b16aa0300 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -51,6 +51,7 @@ struct record_opts {
bool sample_address;
bool sample_weight;
bool sample_time;
+ bool sample_time_set;
bool period;
bool sample_intr_regs;
bool running_time;
OpenPOWER on IntegriCloud