perf probe: Init struct probe_point and set counter correctly
authorMasami Hiramatsu <mhiramat@redhat.com>
Thu, 18 Feb 2010 18:16:52 +0000 (13:16 -0500)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Feb 2010 10:42:27 +0000 (11:42 +0100)
commit388c3aab5d4f1b0bbfe2d5f47e7cd681866bc573
tree99024d3b3807219c3713babcf2077f59b7847475
parent326264a02448b0ac51f78f178b78e830aa077a0b
perf probe: Init struct probe_point and set counter correctly

Clear struct probe_point before using it in
show_perf_probe_events(), and set pp->found counter correctly in
synthesize_perf_probe_point(). Without this initialization,
clear_probe_point() will free random addresses.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
LKML-Reference: <20100218181652.26547.57790.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/probe-event.c