libbpf: Btf typed dump does not need to allocate dump data
By using the stack for this small structure, we avoid the need for freeing memory in error paths. Suggested-by: NAndrii Nakryiko <andrii@kernel.org> Signed-off-by: NAlan Maguire <alan.maguire@oracle.com> Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/1626475617-25984-4-git-send-email-alan.maguire@oracle.com
Showing
想要评论请 注册 或 登录