perf evlist: Fix per thread mmap setup
[linux-2.6-block.git] / tools / perf / builtin-test.c
index 11e3c84583622bac20ed799cfab29e7066c6d6eb..2f9a337b182fe98e66a70128a6661c2be3e0342c 100644 (file)
@@ -549,7 +549,7 @@ static int test__basic_mmap(void)
                        ++foo;
                }
 
-       while ((event = perf_evlist__read_on_cpu(evlist, 0)) != NULL) {
+       while ((event = perf_evlist__mmap_read(evlist, 0)) != NULL) {
                struct perf_sample sample;
 
                if (event->header.type != PERF_RECORD_SAMPLE) {