linux/tools/perf
David Ahern 9639837e95 perf evlist: Round mmap pages to power 2 - v2
Currently perf requires the -m / --mmap_pages option to be a power of 2.

To be more user friendly perf should automatically round this up to the
next power of 2.

Currently:
  $ perf record -m 3 -a -- sleep 1
  --mmap_pages/-m value must be a power of two.sleep: Terminated

With patch:
  $ perf record -m 3 -a -- sleep 1
  rounding mmap pages size to 16384 (4 pages)
  ...

v2: Add bytes units to rounding message per Ingo's request. Other
    suggestions (e.g., prefixing INFO) should be addressed by wrapping
    pr_info to catch all instances.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1384267617-3446-3-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-11-12 16:31:53 -03:00
..
arch
bench perf bench: Fix two warnings 2013-11-01 10:41:54 -03:00
config tools/perf/build: Fix detection of non-core features 2013-11-05 10:08:03 -03:00
Documentation perf trace: Add summary only option 2013-11-12 16:24:38 -03:00
python
scripts perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
tests perf tests: Compensate lower sample freq with longer test loop 2013-11-12 13:00:37 -03:00
ui perf ui tui progress: Don't force a refresh during progress update 2013-11-11 15:56:39 -03:00
util perf evlist: Round mmap pages to power 2 - v2 2013-11-12 16:31:53 -03:00
.gitignore perf tools: Ignore 'perf timechart' output file 2013-10-11 12:17:37 -03:00
bash_completion perf completion: Use more comp words 2013-10-09 11:12:31 -03:00
builtin-annotate.c perf hists: Consolidate __hists__add_*entry() 2013-11-04 20:59:09 -03:00
builtin-bench.c perf bench: Change the procps visible command-name of invididual benchmark tests plus cleanups 2013-10-23 09:57:34 -03:00
builtin-buildid-cache.c perf tools: Add data object to handle perf data file 2013-10-21 17:33:24 -03:00
builtin-buildid-list.c perf session: Separating data file properties from session 2013-10-21 17:33:25 -03:00
builtin-diff.c perf hists: Consolidate __hists__add_*entry() 2013-11-04 20:59:09 -03:00
builtin-evlist.c perf tools: Add data object to handle perf data file 2013-10-21 17:33:24 -03:00
builtin-help.c
builtin-inject.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-kmem.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-kvm.c perf machine: Simplify synthesize_threads method 2013-11-11 15:56:40 -03:00
builtin-list.c perf list: Add usage 2013-11-05 14:26:41 -03:00
builtin-lock.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-mem.c perf tools: Add data object to handle perf data file 2013-10-21 17:33:24 -03:00
builtin-probe.c
builtin-record.c perf record: Move existing write_output into helper function 2013-11-11 15:56:40 -03:00
builtin-report.c perf hists: Consolidate __hists__add_*entry() 2013-11-04 20:59:09 -03:00
builtin-sched.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-script.c perf script: Set up output options for in-stream attributes 2013-11-04 12:19:26 -03:00
builtin-stat.c perf stat: Enhance option parse error message 2013-11-04 12:57:36 -03:00
builtin-timechart.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-top.c perf machine: Simplify synthesize_threads method 2013-11-11 15:56:40 -03:00
builtin-trace.c perf trace: Add summary only option 2013-11-12 16:24:38 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile tools/perf/build: Pass through DEBUG parameter 2013-10-14 10:29:07 -03:00
Makefile.perf perf tools: Factor sysfs code into generic fs object 2013-11-05 14:44:26 -03:00
MANIFEST
perf-archive.sh
perf.c perf trace: Add 'trace' alias to 'perf trace' 2013-10-11 12:17:10 -03:00
perf.h tools/perf: Add required memory barriers 2013-11-06 12:34:26 +01:00