]> git.baikalelectronics.ru Git - kernel.git/commit
perf symbols: Do not apply symfs for an absolute vmlinux path
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 17 Jul 2013 08:08:15 +0000 (17:08 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Jul 2013 15:23:57 +0000 (12:23 -0300)
commit073df97c148387b79af8e568100c09ccb126a378
treef9eecbd1b5f2c2a7bc163d36716696442ed9f5d3
parent917f0d7790e5323305a7a3f9b37922ecf7e4c36d
perf symbols: Do not apply symfs for an absolute vmlinux path

If an user gives both of --symfs and --vmlinux option, the vmlinux will
be searched under the symfs directory.  This is somewhat confusing since
vmlinux often lives in kernel build directory or somewhere other than
user space binaries.

So it'd be better not adding symfs prefix for a vmlinux if it has an
absolute pathname.

Reported-by: Kwanghyun Yoo <ykh815.yoo@lge.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1374048495-3643-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c