Merge branch 'next' into for-linus
[linux-2.6-microblaze.git] / tools / perf / tests / backward-ring-buffer.c
index 3073a68..338cd9f 100644 (file)
@@ -10,6 +10,7 @@
 #include "tests.h"
 #include "debug.h"
 #include "parse-events.h"
+#include "util/mmap.h"
 #include <errno.h>
 #include <linux/string.h>
 
@@ -32,7 +33,7 @@ static int count_samples(struct evlist *evlist, int *sample_count,
 {
        int i;
 
-       for (i = 0; i < evlist->nr_mmaps; i++) {
+       for (i = 0; i < evlist->core.nr_mmaps; i++) {
                struct mmap *map = &evlist->overwrite_mmap[i];
                union perf_event *event;