Re: [PATCH RFC bpf-next 05/31] bpf: Add bpf_get_btf_vmlinux_inline function
From: Alexei Starovoitov
Date: Wed Dec 02 2026 - 20:50:31 EST
On Wed, Dec 02, 2026 at 04:30 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> + env->log.level = BPF_LOG_KERNEL;
> + btf = btf_parse_split(env, "vmlinux.inline", data,
> + data_size, vmlinux_btf);
btf_parse_split() does kvmemdup().
That's a 2nd copy of vmlinux.inline and it's never freed.
It was 9.2 Mbytes in Alan's numbers.
The original stays in memory for both =y and =m.
can we parse it in place like btf_parse_base() does ?