]> git.baikalelectronics.ru Git - kernel.git/commit
perf top: Fix userspace sample addr map offset
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Sep 2011 18:54:30 +0000 (15:54 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Sep 2011 17:37:54 +0000 (14:37 -0300)
commitad7e9f2f4b9624c9c7a1d95ed2fb26226e2ff0fb
treead71a13f3fa386c50fc1b0f3b50b20a0b3ce4b0e
parentf08e5a2b9c749ace4e439e61d60abad4d8173d2b
perf top: Fix userspace sample addr map offset

The 'perf top' tool came from the kernel where we had each DSO (vmlinux,
modules) loaded just once at a time.

But userspace may have DSOs loaded in multiple addresses (shared
libraries), requiring that we use the just resolved map instead of the
first one found.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ag53wz0yllpgers0n2w7hchp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c