Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182368
b: refs/heads/master
c: 8d0591f
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Jan 16, 2010
1 parent ea8b6cb commit 07d6ce8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 1b75962e92d48a41019d4b440e221638aa2a7238
refs/heads/master: 8d0591f6ad9edf66697ce29de176fb6f3213b9e3
13 changes: 8 additions & 5 deletions trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1608,11 +1608,11 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map,
u8 kallsyms_build_id[BUILD_ID_SIZE];

if (sysfs__read_build_id("/sys/kernel/notes", kallsyms_build_id,
sizeof(kallsyms_build_id)) == 0)

is_kallsyms = dso__build_id_equal(self, kallsyms_build_id);
if (is_kallsyms)
goto do_kallsyms;
sizeof(kallsyms_build_id)) == 0) {
is_kallsyms = dso__build_id_equal(self, kallsyms_build_id);
if (is_kallsyms)
goto do_kallsyms;
}
goto do_vmlinux;
}

Expand All @@ -1623,6 +1623,9 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map,
do_vmlinux:
err = dso__load_vmlinux(self, map, session, self->long_name, filter);
if (err <= 0) {
if (self->has_build_id)
return -1;

pr_info("The file %s cannot be used, "
"trying to use /proc/kallsyms...", self->long_name);
do_kallsyms:
Expand Down

0 comments on commit 07d6ce8

Please sign in to comment.