perf probe: Fix to ensure function declared file
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 30 Mar 2011 09:25:41 +0000 (18:25 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Apr 2011 18:34:53 +0000 (15:34 -0300)
commit7d21635ac5c78abe162fb3f56b37c30bcbfa019f
treed7c63e666d8df20ac395b557f738b37ac33764e3
parentfd1edb3aa2c1d92618d8f0c6d15d44ea41fcac6a
perf probe: Fix to ensure function declared file

Fix to ensure function declared file matches given file name. This fixes
a potential bug.

As I've commented on Lin Ming's fastpath enhancement, decl_file should
be checked on each probe point if user gives a probe point as func@file.

Cc: 2nddept-manager@sdl.hitachi.co.jp
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20110330092541.2132.3584.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