]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf probe: Finder fails to resolve function name to address
authorPrashanth Nageshappa <prashanth@linux.vnet.ibm.com>
Mon, 26 Mar 2012 10:06:49 +0000 (15:36 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Mar 2012 14:56:49 +0000 (11:56 -0300)
commitba28c59bc9ed8fb7b9a753cd88ee54a2c4f6265b
tree30f2e5d133173779284dfe4e11ecdfd22f6f20fb
parent1e2dd2f73afdc810cc7400b7036232fbdc416eeb
perf probe: Finder fails to resolve function name to address

If DIE entries corresponding to declarations appear before definition
entry, probe finder returns error instead of continuing to look further
for a definition entry.

This patch ensures we reach to the DIE entry corresponding to the
definition and get the function address.

V2: A simpler solution based on Masami's suggestion.

Signed-off-by: Prashanth Nageshappa <prashanth@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/4F703FB9.9020407@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-finder.c