Lines Matching refs:tattr
23 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_skb_ctx()
41 tattr.ctx_size_in = 0; in test_skb_ctx()
42 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
44 tattr.ctx_size_in = sizeof(skb); in test_skb_ctx()
48 tattr.ctx_size_out = 0; in test_skb_ctx()
49 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
51 tattr.ctx_size_out = sizeof(skb); in test_skb_ctx()
56 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
61 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
68 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
73 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
77 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx()
79 ASSERT_OK(tattr.retval, "test_run retval"); in test_skb_ctx()
80 ASSERT_EQ(tattr.ctx_size_out, sizeof(skb), "ctx_size_out"); in test_skb_ctx()