perf probe: Fix local variable searching loop
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 21 Oct 2010 10:13:09 +0000 (19:13 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 21 Oct 2010 17:58:05 +0000 (15:58 -0200)
commit378eeaad3e1cfea7f6614018fb335de93df2ba1f
treeb087b3b760bfb000d5a6a2ae58f77d984a2f9365
parent4046b8bb5ffae9ee916e504cdadee804f10e0c56
perf probe: Fix local variable searching loop

Fix to check the die's address and search into the die only if it has given
address.

This will avoid finding wrong variables in wrong basic block.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20101021101309.3542.46434.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-finder.c