Skip to contentSkip to conversation

perf probe: Fix the missed parameter initialization in fastpath lookup

PATCH New Lin Ming 1 participant 1 message Apr 24, 2011 perf events

lore
Share & tools
lore

Lin Ming

author
#0 lore raw

PATCH 1/1 perf probe: Fix the missed parameter initialization in fastpath lookup

pubname_callback_param::found should be initialized to 0.

---
 tools/perf/util/probe-finder.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/util/probe-finder.c +1 -0
index a7c7145..3b9d0b8 100644
@@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
 			.file	  = pp->file,
 			.cu_die	  = &pf->cu_die,
 			.sp_die	  = &pf->sp_die,
+			.found	  = 0,
 		};
 		struct dwarf_callback_param probe_param = {
 			.data = pf,