/freebsd/contrib/netbsd-tests/net/bpfjit/ |
H A D | t_bpfjit.c | 110 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 114 ATF_CHECK(prog_validate(insns, insn_count)); in ATF_TC_BODY() 115 ATF_CHECK(exec_prog(insns, insn_count, pkt, 1) == 17); in ATF_TC_BODY() 131 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 145 ATF_CHECK(!prog_validate(insns, insn_count)); in ATF_TC_BODY() 148 ATF_CHECK(exec_prog(insns, insn_count, pkt, 1) == 13); in ATF_TC_BODY() 168 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 172 ATF_CHECK(prog_validate(insns, insn_count)); in ATF_TC_BODY() 173 ATF_CHECK(exec_prog(insns, insn_count, pkt, 1) == 5); in ATF_TC_BODY() 193 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local [all …]
|
H A D | t_mbuf.c | 83 const size_t insn_count = sizeof(insns) / sizeof(insns[0]); in test_ldb_abs() local 85 if (!prog_validate(insns, insn_count)) in test_ldb_abs() 88 return exec_prog_mchain2(insns, insn_count, P, sizeof(P), split) == res; in test_ldb_abs() 114 const size_t insn_count = sizeof(insns) / sizeof(insns[0]); in test_ldh_abs() local 116 if (!prog_validate(insns, insn_count)) in test_ldh_abs() 119 return exec_prog_mchain2(insns, insn_count, P, sizeof(P), split) == res; in test_ldh_abs() 137 const size_t insn_count = sizeof(insns) / sizeof(insns[0]); in test_ldw_abs() local 139 if (!prog_validate(insns, insn_count)) in test_ldw_abs() 142 return exec_prog_mchain2(insns, insn_count, P, sizeof(P), split) == res; in test_ldw_abs() 179 const size_t insn_count = sizeof(insns) / sizeof(insns[0]); in test_ldb_ind() local [all …]
|
H A D | t_cop.c | 128 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 132 ATF_CHECK(!prog_validate(insns, insn_count)); in ATF_TC_BODY() 135 code = rumpns_bpfjit_generate_code(NULL, insns, insn_count); in ATF_TC_BODY() 163 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 168 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 202 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 207 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 241 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 246 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 280 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local [all …]
|
H A D | t_extmem.c | 101 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 106 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 132 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 137 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 177 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 182 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 235 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 240 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 271 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 276 code = rumpns_bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libbpfjit/ |
H A D | t_bpfjit.c | 90 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 92 ATF_CHECK(bpf_validate(insns, insn_count)); in ATF_TC_BODY() 94 code = bpfjit_generate_code(NULL, insns, insn_count); in ATF_TC_BODY() 118 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 128 ATF_CHECK(!bpf_validate(insns, insn_count)); in ATF_TC_BODY() 131 code = bpfjit_generate_code(NULL, insns, insn_count); in ATF_TC_BODY() 157 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 159 ATF_CHECK(bpf_validate(insns, insn_count)); in ATF_TC_BODY() 161 code = bpfjit_generate_code(NULL, insns, insn_count); in ATF_TC_BODY() 187 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local [all …]
|
H A D | t_cop.c | 120 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 122 ATF_CHECK(!bpf_validate(insns, insn_count)); in ATF_TC_BODY() 124 code = bpfjit_generate_code(NULL, insns, insn_count); in ATF_TC_BODY() 151 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 153 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 184 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 186 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 217 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 219 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 250 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local [all …]
|
H A D | t_extmem.c | 93 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 95 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 132 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 134 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 156 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 158 ATF_CHECK(bpfjit_generate_code(&ctx, insns, insn_count) == NULL); in ATF_TC_BODY() 196 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 198 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() 248 size_t insn_count = sizeof(insns) / sizeof(insns[0]); in ATF_TC_BODY() local 250 code = bpfjit_generate_code(&ctx, insns, insn_count); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/net/bpf/ |
H A D | h_bpf.h | 82 exec_prog(struct bpf_insn *insns, size_t insn_count, in exec_prog() argument 94 fn = rumpns_bpfjit_generate_code(NULL, insns, insn_count); in exec_prog() 134 exec_prog_mchain2(struct bpf_insn *insns, size_t insn_count, in exec_prog_mchain2() argument 147 fn = rumpns_bpfjit_generate_code(NULL, insns, insn_count); in exec_prog_mchain2() 160 prog_validate(struct bpf_insn *insns, size_t insn_count) in prog_validate() argument 165 res = rumpns_bpf_validate(insns, insn_count); in prog_validate()
|