]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/builtin-top.c
perf tools: Add perf_data_file__open interface to data object
[karo-tx-linux.git] / tools / perf / builtin-top.c
index 752bebeac3aa8086488225ba81d22226ddb03e51..d934f707ee742719a90537e072c8d56939bb8eaf 100644 (file)
@@ -929,15 +929,8 @@ static int __cmd_top(struct perf_top *top)
        struct perf_record_opts *opts = &top->record_opts;
        pthread_t thread;
        int ret;
-       struct perf_data_file file = {
-               .mode = PERF_DATA_MODE_WRITE,
-       };
 
-       /*
-        * 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.
-        */
-       top->session = perf_session__new(&file, false, NULL);
+       top->session = perf_session__new(NULL, false, NULL);
        if (top->session == NULL)
                return -ENOMEM;