commit | add192f81ab21b58471577c75e7be9c9add98223 | [log] [tgz] |
---|---|---|
author | Alan Maguire <alan.maguire@oracle.com> | Fri Jul 16 23:46:57 2021 +0100 |
committer | Andrii Nakryiko <andrii@kernel.org> | Fri Jul 16 17:29:56 2021 -0700 |
tree | 6c8b85f1aef8f28ef64175e20b8fa09212d00cd6 | |
parent | 04eb4dff6a64d842f7f2c85c7cb1affc5ab3ebc9 [diff] |
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: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/1626475617-25984-4-git-send-email-alan.maguire@oracle.com