diff options
author | Song Liu <[email protected]> | 2023-12-06 14:40:48 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-12-06 17:17:20 -0800 |
commit | f08a1c658257c73697a819c4ded3a84b6f0ead74 (patch) | |
tree | 447d1a173b1f692cb45d232801e1d855adf315fc /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | 7065eefb38f16c91e9ace36fb7c873e4c9857c27 (diff) |
bpf: Let bpf_prog_pack_free handle any pointer
Currently, bpf_prog_pack_free only can only free pointer to struct
bpf_binary_header, which is not flexible. Add a size argument to
bpf_prog_pack_free so that it can handle any pointer.
Signed-off-by: Song Liu <[email protected]>
Acked-by: Ilya Leoshkevich <[email protected]>
Tested-by: Ilya Leoshkevich <[email protected]> # on s390x
Reviewed-by: Björn Töpel <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions