Home
last modified time | relevance | path

Searched refs:expected_ret (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dfib_lookup.c33 int expected_ret; member
41 .daddr = IPV6_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_NO_NEIGH, },
43 .daddr = IPV6_NUD_STALE_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
46 .daddr = IPV6_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
49 .daddr = IPV4_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_NO_NEIGH, },
51 .daddr = IPV4_NUD_STALE_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
54 .daddr = IPV4_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
57 .daddr = IPV4_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_NOT_FWDED,
61 .daddr = IPV4_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
65 .daddr = IPV6_TBID_DST, .expected_ret
[all...]
H A Dempty_skb.c117 int expected_ret; in test_empty_skb() local
120 expected_ret = at_egress && !at_tc ? tests[i].lwt_egress_ret : tests[i].ret; in test_empty_skb()
139 ASSERT_EQ(bpf_obj->bss->ret, expected_ret, buf); in test_empty_skb()
/kernel/linux/linux-5.10/tools/testing/vsock/
H A Dutil.c194 * expected_ret:
199 void send_byte(int fd, int expected_ret, int flags) in send_byte() argument
211 if (expected_ret < 0) { in send_byte()
217 if (errno != -expected_ret) { in send_byte()
229 if (expected_ret == 0) in send_byte()
243 * expected_ret:
248 void recv_byte(int fd, int expected_ret, int flags) in recv_byte() argument
260 if (expected_ret < 0) { in recv_byte()
266 if (errno != -expected_ret) { in recv_byte()
278 if (expected_ret in recv_byte()
[all...]
H A Dutil.h42 void send_byte(int fd, int expected_ret, int flags);
43 void recv_byte(int fd, int expected_ret, int flags);
/kernel/linux/linux-6.6/tools/testing/vsock/
H A Dutil.c216 * expected_ret:
221 void send_byte(int fd, int expected_ret, int flags) in send_byte() argument
233 if (expected_ret < 0) { in send_byte()
239 if (errno != -expected_ret) { in send_byte()
251 if (expected_ret == 0) in send_byte()
265 * expected_ret:
270 void recv_byte(int fd, int expected_ret, int flags) in recv_byte() argument
282 if (expected_ret < 0) { in recv_byte()
288 if (errno != -expected_ret) { in recv_byte()
300 if (expected_ret in recv_byte()
[all...]
H A Dutil.h45 void send_byte(int fd, int expected_ret, int flags);
46 void recv_byte(int fd, int expected_ret, int flags);
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_verifier.c942 int fd_prog, expected_ret, alignment_prevented_execution; in do_test_single() local
980 expected_ret = unpriv && test->result_unpriv != UNDEF ? in do_test_single()
992 else if (expected_ret == VERBOSE_ACCEPT) in do_test_single()
1023 if (expected_ret == ACCEPT || expected_ret == VERBOSE_ACCEPT) { in do_test_single()
1034 if (expected_ret == VERBOSE_ACCEPT && !cmp_str_seq(bpf_vlog, expected_err)) { in do_test_single()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_verifier.c1557 int fd_prog, btf_fd, expected_ret, alignment_prevented_execution; in do_test_single() local
1599 expected_ret = unpriv && test->result_unpriv != UNDEF ? in do_test_single()
1607 else if (expected_ret == VERBOSE_ACCEPT) in do_test_single()
1667 if (expected_ret == ACCEPT || expected_ret == VERBOSE_ACCEPT) { in do_test_single()
1678 if (expected_ret == VERBOSE_ACCEPT && !cmp_str_seq(bpf_vlog, expected_err)) { in do_test_single()

Completed in 7 milliseconds