perf evlist: Do not pass struct record_opts to perf_evlist__prepare_workload()
[linux-3.10.git] / tools / perf / tests / perf-record.c
index f6ba75a..a1c41b7 100644 (file)
@@ -93,7 +93,7 @@ int test__PERF_RECORD(void)
         * so that we have time to open the evlist (calling sys_perf_event_open
         * on all the fds) and then mmap them.
         */
-       err = perf_evlist__prepare_workload(evlist, &opts, argv);
+       err = perf_evlist__prepare_workload(evlist, &opts.target, argv, false);
        if (err < 0) {
                pr_debug("Couldn't run the workload!\n");
                goto out_delete_maps;