Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
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 …]
Dsockmap_basic.c22 if (CHECK_FAIL(s == -1)) in connected_socket_v4()
27 if (CHECK_FAIL(err)) in connected_socket_v4()
31 if (CHECK_FAIL(err)) in connected_socket_v4()
36 if (CHECK_FAIL(err)) in connected_socket_v4()
53 if (CHECK_FAIL(s == -1)) in test_sockmap_create_update_free()
57 if (CHECK_FAIL(map == -1)) { in test_sockmap_create_update_free()
63 if (CHECK_FAIL(err)) { in test_sockmap_create_update_free()
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()
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()
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()
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()
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.c310 if (CHECK_FAIL(cg_parent < 0)) in test_sockopt_multi()
314 if (CHECK_FAIL(cg_child < 0)) in test_sockopt_multi()
318 if (CHECK_FAIL(err)) in test_sockopt_multi()
322 if (CHECK_FAIL(sock_fd < 0)) in test_sockopt_multi()
325 CHECK_FAIL(run_getsockopt_test(obj, cg_parent, cg_child, sock_fd)); in test_sockopt_multi()
326 CHECK_FAIL(run_setsockopt_test(obj, cg_parent, cg_child, sock_fd)); in test_sockopt_multi()
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()
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()
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()
Dpkt_md_access.c12 if (CHECK_FAIL(err)) in test_pkt_md_access()
Dreference_tracking.c13 if (CHECK_FAIL(IS_ERR(obj))) in test_reference_tracking()
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()
Dpkt_access.c12 if (CHECK_FAIL(err)) in test_pkt_access()
Dxdp_adjust_tail.c13 if (CHECK_FAIL(err)) in test_xdp_adjust_tail()
Dstacktrace_build_id_nmi.c89 if (CHECK_FAIL(system("dd if=/dev/urandom of=/dev/zero count=4 2> /dev/null"))) in test_stacktrace_build_id_nmi()
91 if (CHECK_FAIL(system("taskset 0x1 ./urandom_read 100000"))) in test_stacktrace_build_id_nmi()
Dxdp.c19 if (CHECK_FAIL(err)) in test_xdp()
Dbpf_verif_scale.c106 CHECK_FAIL(err && !test->fails); in test_bpf_verif_scale()
Dsockopt.c976 if (CHECK_FAIL(cgroup_fd < 0)) in test_sockopt()
981 CHECK_FAIL(run_test(cgroup_fd, &tests[i])); in test_sockopt()
Dflow_dissector.c454 if (CHECK_FAIL(err)) in test_flow_dissector()
/tools/testing/selftests/bpf/
Dtest_progs.h108 #define CHECK_FAIL(condition) ({ \ macro