diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 0974f957b8fa..2ca107f3efdf 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -823,6 +823,19 @@ int cmd_record(int argc, const char **argv, const char *prefix __used) | |||
823 | 823 | ||
824 | symbol__init(); | 824 | symbol__init(); |
825 | 825 | ||
826 | if (symbol_conf.kptr_restrict) | ||
827 | pr_warning("WARNING: Kernel address maps " | ||
828 | "(/proc/{kallsyms,modules}) are restricted, " | ||
829 | "check /proc/sys/kernel/kptr_restrict.\n\n" | ||
830 | "Samples in kernel functions may not be resolved " | ||
831 | "if a suitable vmlinux file is not found in the " | ||
832 | "buildid cache or in the vmlinux path.\n\n" | ||
833 | "Samples in kernel modules won't be resolved " | ||
834 | "at all.\n\n" | ||
835 | "If some relocation was applied (e.g. kexec) " | ||
836 | "symbols may be misresolved even with a suitable " | ||
837 | "vmlinux or kallsyms file.\n\n"); | ||
838 | |||
826 | if (no_buildid_cache || no_buildid) | 839 | if (no_buildid_cache || no_buildid) |
827 | disable_buildid_cache(); | 840 | disable_buildid_cache(); |
828 | 841 | ||