]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - tools/perf/builtin-kvm.c
perf tools: Check mmap pages value early
authorJiri Olsa <jolsa@redhat.com>
Sun, 1 Sep 2013 10:36:12 +0000 (12:36 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Oct 2013 14:24:10 +0000 (11:24 -0300)
commit994a1f78b191df0c9d6caca3f3afb03e247aff26
tree387ca6391f946bbbca73a579105ee0bc2ba76ad8
parentf37376cd721a539ac398cbb7718b72fce83cd49b
perf tools: Check mmap pages value early

Move the check of the mmap_pages value to the options parsing time, so
we could rely on this value on other parts of code.

Related changes come in the next patches.

Also changes perf_evlist::mmap_len to proper size_t type.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1378031796-17892-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/builtin-trace.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h