perf session: Move kmaps to perf_session
[linux-2.6-block.git] / tools / perf / builtin-top.c
index 0f7a4da2924c7e0edeb89b1b67dd1909a56e3f37..3b212bb2e4dfdfdb5fc86c5dfddc1b693f68decb 100644 (file)
@@ -1162,8 +1162,8 @@ static int __cmd_top(void)
         * FIXME: perf_session__new should allow passing a O_MMAP, so that all this
         * mmap reading, etc is encapsulated in it. Use O_WRONLY for now.
         */
-       struct perf_session *session = perf_session__new(NULL, O_WRONLY, false);
-
+       struct perf_session *session = perf_session__new(NULL, O_WRONLY, false,
+                                                        &symbol_conf);
        if (session == NULL)
                return -ENOMEM;