aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-record.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-08-01 14:02:35 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-08-02 15:33:29 -0400
commitb6f35ed774aeaf441e66cfa243fd1dff1321d69e (patch)
treea8cd6420e9bc852b23ebdc1303bc45b328c19164 /tools/perf/builtin-record.c
parent52c5cc363f2c5f50e88d2d340c039cc72797d69a (diff)
perf record: Add --sample-cpu option
Adding --sample-cpu option to be able to explicitly enable CPU sample type. Currently it's only enable implicitly in case the target is cpu related. It will be useful for following c2c record tool. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1470074555-24889-8-git-send-email-jolsa@kernel.org 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 8f2c16d9275f..6355902fbfc8 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -1434,6 +1434,7 @@ struct option __record_options[] = {
1434 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat, 1434 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat,
1435 "per thread counts"), 1435 "per thread counts"),
1436 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"), 1436 OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"),
1437 OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"),
1437 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time, 1438 OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time,
1438 &record.opts.sample_time_set, 1439 &record.opts.sample_time_set,
1439 "Record the sample timestamps"), 1440 "Record the sample timestamps"),