Lines Matching refs:tattr
30 struct bpf_prog_test_run_attr tattr = { in test_prog_run_xattr() local
46 tattr.prog_fd = bpf_program__fd(skel->progs.test_pkt_access); in test_prog_run_xattr()
48 err = bpf_prog_test_run_xattr(&tattr); in test_prog_run_xattr()
49 CHECK_ATTR(err >= 0 || errno != ENOSPC || tattr.retval, "run", in test_prog_run_xattr()
50 "err %d errno %d retval %d\n", err, errno, tattr.retval); in test_prog_run_xattr()
52 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr()
54 sizeof(pkt_v4), tattr.data_size_out); in test_prog_run_xattr()
59 run_cnt += tattr.repeat; in test_prog_run_xattr()
60 check_run_cnt(tattr.prog_fd, run_cnt); in test_prog_run_xattr()
62 tattr.data_out = NULL; in test_prog_run_xattr()
63 tattr.data_size_out = 0; in test_prog_run_xattr()
64 tattr.repeat = 2; in test_prog_run_xattr()
67 err = bpf_prog_test_run_xattr(&tattr); in test_prog_run_xattr()
68 CHECK_ATTR(err || errno || tattr.retval, "run_no_output", in test_prog_run_xattr()
69 "err %d errno %d retval %d\n", err, errno, tattr.retval); in test_prog_run_xattr()
71 tattr.data_size_out = 1; in test_prog_run_xattr()
72 err = bpf_prog_test_run_xattr(&tattr); in test_prog_run_xattr()
75 run_cnt += tattr.repeat; in test_prog_run_xattr()
76 check_run_cnt(tattr.prog_fd, run_cnt); in test_prog_run_xattr()