summaryrefslogtreecommitdiff
path: root/tools/perf/builtin-record.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-05-15 19:41:00 +0200
committerIngo Molnar <mingo@elte.hu>2011-05-15 19:41:00 +0200
commit52004ea7ca4c52a219362f973bfd1eb86ff668ce (patch)
tree086b6920202cf1c7e014f829350848df71eb9a8c /tools/perf/builtin-record.c
parent9bbeacf52f66d165739a4bbe9c018d17493a74b5 (diff)
parentaece948f5ddd70d70df2f35855c706ef9a4f62e2 (diff)
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/urgent
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r--tools/perf/builtin-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 416538248a4b..0974f957b8fa 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -427,7 +427,7 @@ static void mmap_read_all(void)
{
int i;
- for (i = 0; i < evsel_list->cpus->nr; i++) {
+ for (i = 0; i < evsel_list->nr_mmaps; i++) {
if (evsel_list->mmap[i].base)
mmap_read(&evsel_list->mmap[i]);
}