diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-record.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index b32a880ec473..962adcfc43a5 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -1573,23 +1573,23 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused) | |||
1573 | if (!rec->itr) { | 1573 | if (!rec->itr) { |
1574 | rec->itr = auxtrace_record__init(rec->evlist, &err); | 1574 | rec->itr = auxtrace_record__init(rec->evlist, &err); |
1575 | if (err) | 1575 | if (err) |
1576 | return err; | 1576 | goto out; |
1577 | } | 1577 | } |
1578 | 1578 | ||
1579 | err = auxtrace_parse_snapshot_options(rec->itr, &rec->opts, | 1579 | err = auxtrace_parse_snapshot_options(rec->itr, &rec->opts, |
1580 | rec->opts.auxtrace_snapshot_opts); | 1580 | rec->opts.auxtrace_snapshot_opts); |
1581 | if (err) | 1581 | if (err) |
1582 | return err; | 1582 | goto out; |
1583 | 1583 | ||
1584 | if (dry_run) | 1584 | if (dry_run) |
1585 | return 0; | 1585 | goto out; |
1586 | 1586 | ||
1587 | err = bpf__setup_stdout(rec->evlist); | 1587 | err = bpf__setup_stdout(rec->evlist); |
1588 | if (err) { | 1588 | if (err) { |
1589 | bpf__strerror_setup_stdout(rec->evlist, err, errbuf, sizeof(errbuf)); | 1589 | bpf__strerror_setup_stdout(rec->evlist, err, errbuf, sizeof(errbuf)); |
1590 | pr_err("ERROR: Setup BPF stdout failed: %s\n", | 1590 | pr_err("ERROR: Setup BPF stdout failed: %s\n", |
1591 | errbuf); | 1591 | errbuf); |
1592 | return err; | 1592 | goto out; |
1593 | } | 1593 | } |
1594 | 1594 | ||
1595 | err = -ENOMEM; | 1595 | err = -ENOMEM; |