/tools/testing/selftests/bpf/prog_tests/ |
D | map_lock.c | 11 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()
|
D | sockopt_inherit.c | 79 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 …]
|
D | sockmap_basic.c | 22 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()
|
D | tcp_rtt.c | 17 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()
|
D | spinlock.c | 14 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()
|
D | stacktrace_map.c | 29 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()
|
D | stacktrace_map_raw_tp.c | 29 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()
|
D | sockopt_sk.c | 173 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()
|
D | global_data.c | 10 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()
|
D | sockopt_multi.c | 310 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()
|
D | bpf_obj_id.c | 51 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()
|
D | xdp_noinline.c | 34 if (CHECK_FAIL(err)) in test_xdp_noinline() 74 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || in test_xdp_noinline()
|
D | l4lb_all.c | 33 if (CHECK_FAIL(err)) in test_l4lb() 73 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || in test_l4lb()
|
D | queue_stack_map.c | 30 if (CHECK_FAIL(err)) in test_queue_stack_map_by_type() 44 if (CHECK_FAIL(err)) in test_queue_stack_map_by_type()
|
D | pkt_md_access.c | 12 if (CHECK_FAIL(err)) in test_pkt_md_access()
|
D | reference_tracking.c | 13 if (CHECK_FAIL(IS_ERR(obj))) in test_reference_tracking()
|
D | stacktrace_build_id.c | 54 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()
|
D | pkt_access.c | 12 if (CHECK_FAIL(err)) in test_pkt_access()
|
D | xdp_adjust_tail.c | 13 if (CHECK_FAIL(err)) in test_xdp_adjust_tail()
|
D | stacktrace_build_id_nmi.c | 89 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()
|
D | xdp.c | 19 if (CHECK_FAIL(err)) in test_xdp()
|
D | bpf_verif_scale.c | 106 CHECK_FAIL(err && !test->fails); in test_bpf_verif_scale()
|
D | sockopt.c | 976 if (CHECK_FAIL(cgroup_fd < 0)) in test_sockopt() 981 CHECK_FAIL(run_test(cgroup_fd, &tests[i])); in test_sockopt()
|
D | flow_dissector.c | 454 if (CHECK_FAIL(err)) in test_flow_dissector()
|
/tools/testing/selftests/bpf/ |
D | test_progs.h | 108 #define CHECK_FAIL(condition) ({ \ macro
|