diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 962adcfc43a5..67d2a9003294 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -1581,6 +1581,18 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused) | |||
1581 | if (err) | 1581 | if (err) |
1582 | goto out; | 1582 | goto out; |
1583 | 1583 | ||
1584 | /* | ||
1585 | * Allow aliases to facilitate the lookup of symbols for address | ||
1586 | * filters. Refer to auxtrace_parse_filters(). | ||
1587 | */ | ||
1588 | symbol_conf.allow_aliases = true; | ||
1589 | |||
1590 | symbol__init(NULL); | ||
1591 | |||
1592 | err = auxtrace_parse_filters(rec->evlist); | ||
1593 | if (err) | ||
1594 | goto out; | ||
1595 | |||
1584 | if (dry_run) | 1596 | if (dry_run) |
1585 | goto out; | 1597 | goto out; |
1586 | 1598 | ||
@@ -1594,8 +1606,6 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused) | |||
1594 | 1606 | ||
1595 | err = -ENOMEM; | 1607 | err = -ENOMEM; |
1596 | 1608 | ||
1597 | symbol__init(NULL); | ||
1598 | |||
1599 | if (symbol_conf.kptr_restrict) | 1609 | if (symbol_conf.kptr_restrict) |
1600 | pr_warning( | 1610 | pr_warning( |
1601 | "WARNING: Kernel address maps (/proc/{kallsyms,modules}) are restricted,\n" | 1611 | "WARNING: Kernel address maps (/proc/{kallsyms,modules}) are restricted,\n" |