aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2011-04-29 04:41:57 -0400
committerIngo Molnar <mingo@elte.hu>2011-05-10 11:06:23 -0400
commit2b348a77981227c6b64fb9cf19f7c711a6806bc9 (patch)
treea9ef01298f686f979f4ed37d18d39b89ddbb85a8 /tools/perf/util
parent932fed4e2e42c3d730c01bb63b1c4f812c533d5b (diff)
perf probe: Fix the missed parameter initialization
pubname_callback_param::found should be initialized to 0 in fastpath lookup, the structure is on the stack and uninitialized otherwise. Signed-off-by: Lin Ming <ming.m.lin@intel.com> Cc: Arnaldo Carvalho de Melo <acme@infradead.org> Link: http://lkml.kernel.org/r/1304066518-30420-2-git-send-email-ming.m.lin@intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/probe-finder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index a7c7145a8d4f..3b9d0b800d5c 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
1538 .file = pp->file, 1538 .file = pp->file,
1539 .cu_die = &pf->cu_die, 1539 .cu_die = &pf->cu_die,
1540 .sp_die = &pf->sp_die, 1540 .sp_die = &pf->sp_die,
1541 .found = 0,
1541 }; 1542 };
1542 struct dwarf_callback_param probe_param = { 1543 struct dwarf_callback_param probe_param = {
1543 .data = pf, 1544 .data = pf,