diff options
author | Alan Maguire <alan.maguire@oracle.com> | 2021-07-16 23:46:57 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-07-16 17:29:56 -0700 |
commit | add192f81ab21b58471577c75e7be9c9add98223 (patch) | |
tree | 6c8b85f1aef8f28ef64175e20b8fa09212d00cd6 /tools/lib/bpf/bpf_prog_linfo.c | |
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
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions