diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-11-15 08:52:29 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-11-27 12:58:36 -0500 |
commit | 3aa5939d71fa22a947808ba9c798b8537c35097a (patch) | |
tree | b127f8c885ade7568c24230d0c9e68a693877eae /tools/perf/Documentation | |
parent | e944d3d7d151eea149c62310eaff7b92c7732f58 (diff) |
perf record: Make per-cpu mmaps the default.
This affects the -p, -t and -u options that previously defaulted to
per-thread mmaps.
Consequently add an option to select per-thread mmaps to support the old
behaviour.
Note that per-thread can be used with a workload-only (i.e. none of -p,
-t, -u, -a or -C is selected) to get a per-thread mmap with no
inheritance.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/5286271D.3020808@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/perf-record.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt index 43b42c4f4a91..6ac867e7667f 100644 --- a/tools/perf/Documentation/perf-record.txt +++ b/tools/perf/Documentation/perf-record.txt | |||
@@ -201,11 +201,11 @@ abort events and some memory events in precise mode on modern Intel CPUs. | |||
201 | --transaction:: | 201 | --transaction:: |
202 | Record transaction flags for transaction related events. | 202 | Record transaction flags for transaction related events. |
203 | 203 | ||
204 | --force-per-cpu:: | 204 | --per-thread:: |
205 | Force the use of per-cpu mmaps. By default, when tasks are specified (i.e. -p, | 205 | Use per-thread mmaps. By default per-cpu mmaps are created. This option |
206 | -t or -u options) per-thread mmaps are created. This option overrides that and | 206 | overrides that and uses per-thread mmaps. A side-effect of that is that |
207 | forces per-cpu mmaps. A side-effect of that is that inheritance is | 207 | inheritance is automatically disabled. --per-thread is ignored with a warning |
208 | automatically enabled. Add the -i option also to disable inheritance. | 208 | if combined with -a or -C options. |
209 | 209 | ||
210 | SEE ALSO | 210 | SEE ALSO |
211 | -------- | 211 | -------- |