aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/btf_endian.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-10-25 15:45:31 -0700
committerAlexei Starovoitov <ast@kernel.org>2021-10-25 18:37:21 -0700
commitc4813e969ac471af730902377a2656b6b1b92c4d (patch)
tree20e332370af87375b7a5675cd45e7a0705decfb6 /tools/testing/selftests/bpf/prog_tests/btf_endian.c
parente21d585cb3db65a207cd338c74b9886090ef1ceb (diff)
libbpf: Deprecate ambiguously-named bpf_program__size() API
The name of the API doesn't convey clearly that this size is in number of bytes (there needed to be a separate comment to make this clear in libbpf.h). Further, measuring the size of BPF program in bytes is not exactly the best fit, because BPF programs always consist of 8-byte instructions. As such, bpf_program__insn_cnt() is a better alternative in pretty much any imaginable case. So schedule bpf_program__size() deprecation starting from v0.7 and it will be removed in libbpf 1.0. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211025224531.1088894-5-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf_endian.c')
0 files changed, 0 insertions, 0 deletions