Re: [RESEND PATCH 1/2] perf probe: Fix the missed parameterinitialization

From: Arnaldo Carvalho de Melo
Date: Fri Apr 29 2011 - 13:33:41 EST


Em Fri, Apr 29, 2011 at 08:41:57AM +0000, Lin Ming escreveu:
> pubname_callback_param::found should be initialized to 0 in fastpath lookup.


Is this really needed? Or is this just to stress it, for documentational
purposes?

> Signed-off-by: Lin Ming <ming.m.lin@xxxxxxxxx>
> ---
> tools/perf/util/probe-finder.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> index a7c7145..3b9d0b8 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)
> .file = pp->file,
> .cu_die = &pf->cu_die,
> .sp_die = &pf->sp_die,
> + .found = 0,
> };
> struct dwarf_callback_param probe_param = {
> .data = pf,
> --
> 1.7.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/