提交 3e1ab843 编写于 作者: D Delyan Kratunov 提交者: Andrii Nakryiko

libbpf: Deprecate bpf_prog_test_run_xattr and bpf_prog_test_run

Deprecate non-extendable bpf_prog_test_run{,_xattr} in favor of
OPTS-based bpf_prog_test_run_opts ([0]).

  [0] Closes: https://github.com/libbpf/libbpf/issues/286Signed-off-by: NDelyan Kratunov <delyank@fb.com>
Signed-off-by: NAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220202235423.1097270-5-delyank@fb.com
上级 9cce5313
...@@ -453,12 +453,14 @@ struct bpf_prog_test_run_attr { ...@@ -453,12 +453,14 @@ struct bpf_prog_test_run_attr {
* out: length of cxt_out */ * out: length of cxt_out */
}; };
LIBBPF_DEPRECATED_SINCE(0, 7, "use bpf_prog_test_run_opts() instead")
LIBBPF_API int bpf_prog_test_run_xattr(struct bpf_prog_test_run_attr *test_attr); LIBBPF_API int bpf_prog_test_run_xattr(struct bpf_prog_test_run_attr *test_attr);
/* /*
* bpf_prog_test_run does not check that data_out is large enough. Consider * bpf_prog_test_run does not check that data_out is large enough. Consider
* using bpf_prog_test_run_xattr instead. * using bpf_prog_test_run_opts instead.
*/ */
LIBBPF_DEPRECATED_SINCE(0, 7, "use bpf_prog_test_run_opts() instead")
LIBBPF_API int bpf_prog_test_run(int prog_fd, int repeat, void *data, LIBBPF_API int bpf_prog_test_run(int prog_fd, int repeat, void *data,
__u32 size, void *data_out, __u32 *size_out, __u32 size, void *data_out, __u32 *size_out,
__u32 *retval, __u32 *duration); __u32 *retval, __u32 *duration);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册