summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.c
diff options
context:
space:
mode:
authorDon Zickus2014-05-30 16:49:42 +0200
committerJiri Olsa2014-06-09 13:34:46 +0200
commita5a5ba72843dd05f991184d6cb9a4471acce1005 (patch)
treede974e4ab2d80e120d76ce1bb0cce1b83aa87500 /tools/perf/util/evsel.c
parentperf tools: Update mmap2 interface with protection and flag bits (diff)
downloadkernel-qcow2-linux-a5a5ba72843dd05f991184d6cb9a4471acce1005.tar.gz
kernel-qcow2-linux-a5a5ba72843dd05f991184d6cb9a4471acce1005.tar.xz
kernel-qcow2-linux-a5a5ba72843dd05f991184d6cb9a4471acce1005.zip
Revert "perf: Disable PERF_RECORD_MMAP2 support"
This reverts commit 3090ffb5a2515990182f3f55b0688a7817325488. Re-enable the mmap2 interface as we will have a user soon. Since things have changed since perf disabled mmap2, small tweaks to the revert had to be done: o commit 9d4ecc88 forced (n!=8) to become (n<7) o a new libunwind test needed updating to use mmap2 interface Signed-off-by: Don Zickus <dzickus@redhat.com> Link: http://lkml.kernel.org/r/1401461382-209586-1-git-send-email-dzickus@redhat.com Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r--tools/perf/util/evsel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c
index 5c28d82b76c4..21154dabc5fa 100644
--- a/tools/perf/util/evsel.c
+++ b/tools/perf/util/evsel.c
@@ -659,6 +659,7 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts)
perf_evsel__set_sample_bit(evsel, WEIGHT);
attr->mmap = track;
+ attr->mmap2 = track && !perf_missing_features.mmap2;
attr->comm = track;
if (opts->sample_transaction)