Home
last modified time | relevance | path

Searched refs:CHECK_FAIL (Results 1 – 25 of 31) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c20 if (CHECK_FAIL(err)) in test_tailcall_1()
24 if (CHECK_FAIL(!prog)) in test_tailcall_1()
28 if (CHECK_FAIL(main_fd < 0)) in test_tailcall_1()
32 if (CHECK_FAIL(!prog_array)) in test_tailcall_1()
36 if (CHECK_FAIL(map_fd < 0)) in test_tailcall_1()
43 if (CHECK_FAIL(!prog)) in test_tailcall_1()
47 if (CHECK_FAIL(prog_fd < 0)) in test_tailcall_1()
51 if (CHECK_FAIL(err)) in test_tailcall_1()
62 if (CHECK_FAIL(err)) in test_tailcall_1()
75 if (CHECK_FAIL(!prog)) in test_tailcall_1()
[all …]
Dmmap.c78 CHECK_FAIL(bss_data->in_val); in test_mmap()
79 CHECK_FAIL(bss_data->out_val); in test_mmap()
80 CHECK_FAIL(map_data->val[0]); in test_mmap()
81 CHECK_FAIL(map_data->val[1]); in test_mmap()
82 CHECK_FAIL(map_data->val[2]); in test_mmap()
83 CHECK_FAIL(map_data->val[far]); in test_mmap()
91 CHECK_FAIL(bpf_map_update_elem(data_map_fd, &zero, &val, 0)); in test_mmap()
95 CHECK_FAIL(bss_data->in_val != 123); in test_mmap()
96 CHECK_FAIL(bss_data->out_val != 123); in test_mmap()
97 CHECK_FAIL(map_data->val[0] != 111); in test_mmap()
[all …]
Dflow_dissector_reattach.c27 if (CHECK_FAIL(err)) { in is_attached()
45 if (CHECK_FAIL(fd < 0)) in load_prog()
65 if (CHECK_FAIL(err)) { in do_flow_dissector_reattach()
72 if (CHECK_FAIL(err)) { in do_flow_dissector_reattach()
79 if (CHECK_FAIL(!err || errno != EINVAL)) in do_flow_dissector_reattach()
84 if (CHECK_FAIL(err)) in do_flow_dissector_reattach()
97 if (CHECK_FAIL(self_net < 0)) { in test_flow_dissector_reattach()
103 if (CHECK_FAIL(init_net < 0)) { in test_flow_dissector_reattach()
109 if (CHECK_FAIL(err)) { in test_flow_dissector_reattach()
125 if (CHECK_FAIL(err)) { in test_flow_dissector_reattach()
[all …]
Dmap_lock.c11 if (CHECK_FAIL(err)) { in parallel_map_access()
15 if (CHECK_FAIL(vars[0] != 0)) { in parallel_map_access()
25 CHECK_FAIL(vars[j] != rnd); in parallel_map_access()
43 if (CHECK_FAIL(err)) { in test_map_lock()
48 if (CHECK_FAIL(map_fd[0] < 0)) in test_map_lock()
51 if (CHECK_FAIL(map_fd[1] < 0)) in test_map_lock()
57 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock()
61 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock()
66 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
70 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
Dsockopt_inherit.c79 if (CHECK_FAIL(err < 0)) { in server_thread()
89 if (CHECK_FAIL(client_fd < 0)) { in server_thread()
181 if (CHECK_FAIL(err)) in run_test()
185 if (CHECK_FAIL(err)) in run_test()
189 if (CHECK_FAIL(err)) in run_test()
193 if (CHECK_FAIL(server_fd < 0)) in run_test()
196 if (CHECK_FAIL(pthread_create(&tid, NULL, server_thread, in run_test()
205 if (CHECK_FAIL(client_fd < 0)) in run_test()
208 CHECK_FAIL(verify_sockopt(client_fd, CUSTOM_INHERIT1, "connect", 0)); in run_test()
209 CHECK_FAIL(verify_sockopt(client_fd, CUSTOM_INHERIT2, "connect", 0)); in run_test()
[all …]
Dtcp_rtt.c17 if (CHECK_FAIL(write(fd, &b, sizeof(b)) != 1)) in send_byte()
52 if (CHECK_FAIL(bpf_map_lookup_elem(map_fd, &client_fd, &val) < 0)) { in verify_sk()
223 if (CHECK_FAIL(err < 0)) { in server_thread()
229 if (CHECK_FAIL(client_fd < 0)) { in server_thread()
238 if (CHECK_FAIL(accept(fd, (struct sockaddr *)&addr, &len) >= 0)) { in server_thread()
254 if (CHECK_FAIL(cgroup_fd < 0)) in test_tcp_rtt()
258 if (CHECK_FAIL(server_fd < 0)) in test_tcp_rtt()
261 if (CHECK_FAIL(pthread_create(&tid, NULL, server_thread, in test_tcp_rtt()
269 CHECK_FAIL(run_test(cgroup_fd, server_fd)); in test_tcp_rtt()
Dstacktrace_map.c29 if (CHECK_FAIL(control_map_fd < 0)) in test_stacktrace_map()
33 if (CHECK_FAIL(stackid_hmap_fd < 0)) in test_stacktrace_map()
37 if (CHECK_FAIL(stackmap_fd < 0)) in test_stacktrace_map()
41 if (CHECK_FAIL(stack_amap_fd < 0)) in test_stacktrace_map()
Dspinlock.c14 if (CHECK_FAIL(err)) { in test_spinlock()
19 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_spinlock()
24 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_spinlock()
Dsockopt_sk.c173 if (CHECK_FAIL(err)) in run_test()
177 if (CHECK_FAIL(err)) in run_test()
181 if (CHECK_FAIL(err)) in run_test()
184 CHECK_FAIL(getsetsockopt()); in run_test()
195 if (CHECK_FAIL(cgroup_fd < 0)) in test_sockopt_sk()
Dglobal_data.c10 if (CHECK_FAIL(map_fd < 0)) in test_global_data_number()
45 if (CHECK_FAIL(map_fd < 0)) in test_global_data_string()
80 if (CHECK_FAIL(map_fd < 0)) in test_global_data_struct()
109 if (CHECK_FAIL(!map || !bpf_map__is_internal(map))) in test_global_data_rdonly()
113 if (CHECK_FAIL(map_fd < 0)) in test_global_data_rdonly()
Dsockopt_multi.c309 if (CHECK_FAIL(cg_parent < 0)) in test_sockopt_multi()
313 if (CHECK_FAIL(cg_child < 0)) in test_sockopt_multi()
317 if (CHECK_FAIL(err)) in test_sockopt_multi()
321 if (CHECK_FAIL(sock_fd < 0)) in test_sockopt_multi()
324 CHECK_FAIL(run_getsockopt_test(obj, cg_parent, cg_child, sock_fd)); in test_sockopt_multi()
325 CHECK_FAIL(run_setsockopt_test(obj, cg_parent, cg_child, sock_fd)); in test_sockopt_multi()
Dstacktrace_map_raw_tp.c29 if (CHECK_FAIL(control_map_fd < 0)) in test_stacktrace_map_raw_tp()
33 if (CHECK_FAIL(stackid_hmap_fd < 0)) in test_stacktrace_map_raw_tp()
37 if (CHECK_FAIL(stackmap_fd < 0)) in test_stacktrace_map_raw_tp()
Dbpf_obj_id.c51 if (CHECK_FAIL(err)) in test_bpf_obj_id()
56 if (CHECK_FAIL(map_fds[i] < 0)) in test_bpf_obj_id()
60 if (CHECK_FAIL(err)) in test_bpf_obj_id()
100 if (CHECK_FAIL(err)) in test_bpf_obj_id()
103 if (CHECK_FAIL(err)) in test_bpf_obj_id()
230 if (CHECK_FAIL(err)) in test_bpf_obj_id()
Dqueue_stack_map.c30 if (CHECK_FAIL(err)) in test_queue_stack_map_by_type()
44 if (CHECK_FAIL(err)) in test_queue_stack_map_by_type()
Dxdp_noinline.c34 if (CHECK_FAIL(err)) in test_xdp_noinline()
74 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || in test_xdp_noinline()
Dl4lb_all.c33 if (CHECK_FAIL(err)) in test_l4lb()
73 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || in test_l4lb()
Dstacktrace_build_id.c54 if (CHECK_FAIL(system("dd if=/dev/urandom of=/dev/zero count=4 2> /dev/null"))) in test_stacktrace_build_id()
56 if (CHECK_FAIL(system("./urandom_read"))) in test_stacktrace_build_id()
Dstacktrace_build_id_nmi.c85 if (CHECK_FAIL(system("dd if=/dev/urandom of=/dev/zero count=4 2> /dev/null"))) in test_stacktrace_build_id_nmi()
87 if (CHECK_FAIL(system("taskset 0x1 ./urandom_read 100000"))) in test_stacktrace_build_id_nmi()
Dkfree_skb.c136 CHECK_FAIL(!passed); in test_kfree_skb()
143 CHECK_FAIL(!test_ok[0] || !test_ok[1]); in test_kfree_skb()
Dpkt_md_access.c12 if (CHECK_FAIL(err)) in test_pkt_md_access()
Dpkt_access.c12 if (CHECK_FAIL(err)) in test_pkt_access()
Dxdp_adjust_tail.c13 if (CHECK_FAIL(err)) in test_xdp_adjust_tail()
Dpinning.c89 if (CHECK_FAIL(libbpf_get_error(obj))) { in test_pinning()
202 if (CHECK_FAIL(libbpf_get_error(obj))) { in test_pinning()
Dreference_tracking.c18 if (CHECK_FAIL(IS_ERR(obj))) in test_reference_tracking()
Dxdp.c19 if (CHECK_FAIL(err)) in test_xdp()

12