Re: [PATCH bpf-next 2/3] ftrace: Keep address offset in ftrace_lookup_symbols

From: Jiri Olsa
Date: Mon Jun 06 2022 - 13:56:36 EST


On Sun, Jun 05, 2022 at 12:51:22PM -0400, Steven Rostedt wrote:
> On Fri, 27 May 2022 22:56:10 +0200
> Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> > @@ -8017,6 +8025,7 @@ int ftrace_lookup_symbols(const char **sorted_syms, size_t cnt, unsigned long *a
> > struct kallsyms_data args;
> > int err;
> >
> > + memset(addrs, 0x0, sizeof(*addrs) * cnt);
>
> Nit, but you don't need the "0x".

ok, will remove

thanks,
jirka

>
> -- Steve
>
> > args.addrs = addrs;
> > args.syms = sorted_syms;
> > args.cnt = cnt;
> > --