diff options
| author | Dave Marchevsky <[email protected]> | 2022-02-01 01:46:10 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-02-01 08:55:19 +0000 |
| commit | 5ee32ea24ce7075736e03b4b0b5954a8a323cd73 (patch) | |
| tree | 66584aaa121ea83b1470eae96aa9665e598b5c4d /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | bpf: make bpf_copy_from_user_task() gpl only (diff) | |
| download | kernel-5ee32ea24ce7075736e03b4b0b5954a8a323cd73.tar.gz kernel-5ee32ea24ce7075736e03b4b0b5954a8a323cd73.zip | |
libbpf: Deprecate btf_ext rec_size APIs
btf_ext__{func,line}_info_rec_size functions are used in conjunction
with already-deprecated btf_ext__reloc_{func,line}_info functions. Since
struct btf_ext is opaque to the user it was necessary to expose rec_size
getters in the past.
btf_ext__reloc_{func,line}_info were deprecated in commit 8505e8709b5ee
("libbpf: Implement generalized .BTF.ext func/line info adjustment")
as they're not compatible with support for multiple programs per
section. It was decided[0] that users of these APIs should implement their
own .btf.ext parsing to access this data, in which case the rec_size
getters are unnecessary. So deprecate them from libbpf 0.7.0 onwards.
[0] Closes: https://github.com/libbpf/libbpf/issues/277
Signed-off-by: Dave Marchevsky <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
