perf record: Make per-cpu mmaps the default.
[firefly-linux-kernel-4.4.55.git] / tools / perf / builtin-record.c
index 7c8020a32784abcd6d44223dc3a5586f7ba7f3f0..f5b18b8fe8c98020e0d90506fd12fb31be4cfbc1 100644 (file)
@@ -800,6 +800,7 @@ static struct perf_record record = {
                .freq                = 4000,
                .target              = {
                        .uses_mmap   = true,
+                       .default_per_cpu = true,
                },
        },
 };
@@ -888,8 +889,8 @@ const struct option record_options[] = {
                    "sample by weight (on special events only)"),
        OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction,
                    "sample transaction flags (special events only)"),
-       OPT_BOOLEAN(0, "force-per-cpu", &record.opts.target.force_per_cpu,
-                   "force the use of per-cpu mmaps"),
+       OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread,
+                   "use per-thread mmaps"),
        OPT_END()
 };