perf probe: Fix to walk all inline instances
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 11 Aug 2011 11:02:47 +0000 (20:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Aug 2011 12:25:38 +0000 (09:25 -0300)
commit36c0c588b9ea979b619d6ddced410f9551e4c5fa
treea8a9ae6d431a1305d00d8e2e4044e41bd0253525
parentb0e9cb2802d4bf50955cca8a7d87cf94ebf750a5
perf probe: Fix to walk all inline instances

Fix line-range collector to walk all instances of inlined function,
because some execution paths can be optimized out depending on the
function argument of instances.

E.g.)
inline_func (arg) {
if (arg)
do_something;
else
do_another;
}

func_A() {
inline_func(1)
}

func_B() {
inline_func(0)
}

In this case, func_A may have only do_something code and func_B may have
only do_another.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <masami.hiramatsu@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: yrl.pp-manager.tt@hitachi.com
Link: http://lkml.kernel.org/r/20110811110247.19900.93702.stgit@fedora15
Signed-off-by: Masami Hiramatsu <masami.hiramatsu@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-finder.c