diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 1da48a8fe9cc..65301c5ca1de 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -632,13 +632,13 @@ 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(); | ||
636 | |||
637 | argc = parse_options(argc, argv, options, record_usage, | 635 | argc = parse_options(argc, argv, options, record_usage, |
638 | PARSE_OPT_STOP_AT_NON_OPTION); | 636 | PARSE_OPT_STOP_AT_NON_OPTION); |
639 | if (!argc && target_pid == -1 && !system_wide) | 637 | if (!argc && target_pid == -1 && !system_wide) |
640 | usage_with_options(record_usage, options); | 638 | usage_with_options(record_usage, options); |
641 | 639 | ||
640 | symbol__init(); | ||
641 | |||
642 | if (!nr_counters) { | 642 | if (!nr_counters) { |
643 | nr_counters = 1; | 643 | nr_counters = 1; |
644 | attrs[0].type = PERF_TYPE_HARDWARE; | 644 | attrs[0].type = PERF_TYPE_HARDWARE; |