]> Pileus Git - ~andy/linux/blobdiff - tools/perf/builtin-top.c
perf diff: Improve the help text
[~andy/linux] / tools / perf / builtin-top.c
index 0f7a4da2924c7e0edeb89b1b67dd1909a56e3f37..296e809c2538a7bc333dd82b2082d285629c0331 100644 (file)
@@ -80,7 +80,7 @@ static int                    dump_symtab                     =      0;
 static bool                    hide_kernel_symbols             =  false;
 static bool                    hide_user_symbols               =  false;
 static struct winsize          winsize;
-struct symbol_conf             symbol_conf;
+static struct symbol_conf      symbol_conf;
 
 /*
  * Source
@@ -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;