Re: [PATCH bpf-next 2/3] ftrace: Keep address offset in ftrace_lookup_symbols
From: Steven Rostedt
Date: Sun Jun 05 2022 - 12:51:34 EST
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".
-- Steve
> args.addrs = addrs;
> args.syms = sorted_syms;
> args.cnt = cnt;
> --