mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
perf symbols: Fix vmlinux path when not using --symfs
Theec5761ecset introduced the symfs feature with a bug for loading vmlinux files that ended up causing this failure: [root@emilia v2.6.38-rc5+]# strace -e trace=open perf top --vmlinux ./vmlinux 2>&1 | tail -3 open("/./vmlinux", O_RDONLY) = -1 ENOENT (No such file or directory) ./vmlinux with build id b9266bf40e98dadb5d43a2f3e95d3c5d4aff46dc not found, continuing without symbols The ./vmlinux file can't be used [root@emilia v2.6.38-rc5+]# Remove the extra slash, just like is done in the DSO__ORIG_DSO handling in dso__load() and other parts of theec5761ecset. Reported-by: Ingo Molnar <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Tom Zanussi <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
54b08f5f90
commit
a639dc64e5
1 changed files with 1 additions and 1 deletions
|
|
@ -1836,7 +1836,7 @@ int dso__load_vmlinux(struct dso *self, struct map *map,
|
|||
int err = -1, fd;
|
||||
char symfs_vmlinux[PATH_MAX];
|
||||
|
||||
snprintf(symfs_vmlinux, sizeof(symfs_vmlinux), "%s/%s",
|
||||
snprintf(symfs_vmlinux, sizeof(symfs_vmlinux), "%s%s",
|
||||
symbol_conf.symfs, vmlinux);
|
||||
fd = open(symfs_vmlinux, O_RDONLY);
|
||||
if (fd < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue