aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 752bebeac3aa..d934f707ee74 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -929,15 +929,8 @@ static int __cmd_top(struct perf_top *top)
929 struct perf_record_opts *opts = &top->record_opts; 929 struct perf_record_opts *opts = &top->record_opts;
930 pthread_t thread; 930 pthread_t thread;
931 int ret; 931 int ret;
932 struct perf_data_file file = {
933 .mode = PERF_DATA_MODE_WRITE,
934 };
935 932
936 /* 933 top->session = perf_session__new(NULL, false, NULL);
937 * FIXME: perf_session__new should allow passing a O_MMAP, so that all this
938 * mmap reading, etc is encapsulated in it. Use O_WRONLY for now.
939 */
940 top->session = perf_session__new(&file, false, NULL);
941 if (top->session == NULL) 934 if (top->session == NULL)
942 return -ENOMEM; 935 return -ENOMEM;
943 936