perf record: Fix continue profiling after draining the buffer
[linux-2.6-microblaze.git] / tools / perf / builtin-record.c
index 8a0127d..29abc04 100644 (file)
@@ -1664,7 +1664,7 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
                status = -1;
                goto out_delete_session;
        }
-       err = evlist__add_pollfd(rec->evlist, done_fd);
+       err = evlist__add_wakeup_eventfd(rec->evlist, done_fd);
        if (err < 0) {
                pr_err("Failed to add wakeup eventfd to poll list\n");
                status = err;