]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Deprecate bpf_program__get_prog_info_linear
authorDave Marchevsky <davemarchevsky@fb.com>
Mon, 1 Nov 2021 22:43:57 +0000 (15:43 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 3 Nov 2021 18:25:36 +0000 (11:25 -0700)
commit9cd19d49bd2690ccefe58090ac27ff8c227ec995
tree11ccb65751be2f2a531ba9336e02a9ff9ab02437
parent7e2d0aa604cf9f6f8c189267e83515f12e47e150
libbpf: Deprecate bpf_program__get_prog_info_linear

As part of the road to libbpf 1.0, and discussed in libbpf issue tracker
[0], bpf_program__get_prog_info_linear and its associated structs and
helper functions should be deprecated. The functionality is too specific
to the needs of 'perf', and there's little/no out-of-tree usage to
preclude introduction of a more general helper in the future.

  [0] Closes: https://github.com/libbpf/libbpf/issues/313

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211101224357.2651181-5-davemarchevsky@fb.com
tools/lib/bpf/libbpf.h