Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252662
b: refs/heads/master
c: 646aaea
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 27, 2011
1 parent c51785e commit 187b5f3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6a72fe465f4c54654a1d5488daeb820b4ecf275
refs/heads/master: 646aaea615704010b5fd2c8c8891ff1a3a4b4f1a
19 changes: 8 additions & 11 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,17 +824,14 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
symbol__init();

if (symbol_conf.kptr_restrict)
pr_warning("WARNING: Kernel address maps "
"(/proc/{kallsyms,modules}) are restricted, "
"check /proc/sys/kernel/kptr_restrict.\n\n"
"Samples in kernel functions may not be resolved "
"if a suitable vmlinux file is not found in the "
"buildid cache or in the vmlinux path.\n\n"
"Samples in kernel modules won't be resolved "
"at all.\n\n"
"If some relocation was applied (e.g. kexec) "
"symbols may be misresolved even with a suitable "
"vmlinux or kallsyms file.\n\n");
pr_warning(
"WARNING: Kernel address maps (/proc/{kallsyms,modules}) are restricted,\n"
"check /proc/sys/kernel/kptr_restrict.\n\n"
"Samples in kernel functions may not be resolved if a suitable vmlinux\n"
"file is not found in the buildid cache or in the vmlinux path.\n\n"
"Samples in kernel modules won't be resolved at all.\n\n"
"If some relocation was applied (e.g. kexec) symbols may be misresolved\n"
"even with a suitable vmlinux or kallsyms file.\n\n");

if (no_buildid_cache || no_buildid)
disable_buildid_cache();
Expand Down
17 changes: 7 additions & 10 deletions trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,14 @@ static int __cmd_report(void)
kernel_kmap->ref_reloc_sym->addr == 0))) {
const struct dso *kdso = kernel_map->dso;

ui__warning("Kernel address maps "
"(/proc/{kallsyms,modules}) were restricted, "
"check /proc/sys/kernel/kptr_restrict before "
"running 'perf record'.\n\n%s\n\n"
"Samples in kernel modules can't be resolved "
"as well.\n\n",
ui__warning(
"Kernel address maps (/proc/{kallsyms,modules}) were restricted.\n\n"
"Check /proc/sys/kernel/kptr_restrict before running 'perf record'.\n\n%s\n\n"
"Samples in kernel modules can't be resolved as well.\n\n",
RB_EMPTY_ROOT(&kdso->symbols[MAP__FUNCTION]) ?
"As no suitable kallsyms nor vmlinux was found, "
"kernel samples can't be resolved." :
"If some relocation was applied (e.g. kexec) "
"symbols may be misresolved.");
"As no suitable kallsyms nor vmlinux was found, kernel samples\n"
"can't be resolved." :
"If some relocation was applied (e.g. kexec) symbols may be misresolved.");
}

if (dump_trace) {
Expand Down

0 comments on commit 187b5f3

Please sign in to comment.