]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Adjust symbols in VDSO
authorVladimir Nikulichev <nvs@tbricks.com>
Thu, 17 Apr 2014 15:27:01 +0000 (08:27 -0700)
committerJiri Olsa <jolsa@redhat.com>
Sat, 19 Apr 2014 22:15:11 +0000 (00:15 +0200)
commitebe45de8014bfc952608b809a4f48b18b2ec8a5a
tree2902ece1897531ddd2c193ca5df8c690aea49c3d
parent99af461b46530ea4267b33af6a43e65058a702a5
perf tools: Adjust symbols in VDSO

pert-report doesn't resolve function names in VDSO:

$ perf report --stdio -g flat,0.0,15,callee --sort pid
...
            8.76%
               0x7fff6b1fe861
               __gettimeofday
               ACE_OS::gettimeofday()
...

In this case symbol values should be adjusted the same way as for executables,
relocatable objects and prelinked libraries.

After fix:

$ perf report --stdio -g flat,0.0,15,callee --sort pid
...
            8.76%
               __vdso_gettimeofday
               __gettimeofday
               ACE_OS::gettimeofday()

Signed-off-by: Vladimir Nikulichev <nvs@tbricks.com>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Link: http://lkml.kernel.org/r/969812.163009436-sendEmail@nvs
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/util/symbol-elf.c