aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-record.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r--tools/perf/builtin-record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 66979a5553b8..1da48a8fe9cc 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -451,7 +451,7 @@ static int __cmd_record(int argc, const char **argv)
451 exit(-1); 451 exit(-1);
452 } 452 }
453 453
454 session = perf_session__new(output_name, O_WRONLY, force, NULL); 454 session = perf_session__new(output_name, O_WRONLY, force);
455 if (session == NULL) { 455 if (session == NULL) {
456 pr_err("Not enough memory for reading perf file header\n"); 456 pr_err("Not enough memory for reading perf file header\n");
457 return -1; 457 return -1;
@@ -632,7 +632,7 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
632{ 632{
633 int counter; 633 int counter;
634 634
635 symbol__init(0); 635 symbol__init();
636 636
637 argc = parse_options(argc, argv, options, record_usage, 637 argc = parse_options(argc, argv, options, record_usage,
638 PARSE_OPT_STOP_AT_NON_OPTION); 638 PARSE_OPT_STOP_AT_NON_OPTION);