/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | flow_dissector_reattach.c | 29 if (CHECK_FAIL(err)) { in query_attached_prog_id() 51 if (CHECK_FAIL(fd < 0)) in load_prog() 77 if (CHECK_FAIL(err)) { in unshare_net() 95 if (CHECK_FAIL(err)) { in test_prog_attach_prog_attach() 103 if (CHECK_FAIL(err)) { in test_prog_attach_prog_attach() 117 if (CHECK_FAIL(err)) in test_prog_attach_prog_attach() 153 if (CHECK_FAIL(err)) { in test_prog_attach_link_create() 169 if (CHECK_FAIL(err)) in test_prog_attach_link_create() 275 if (CHECK_FAIL(err)) in test_link_update_no_old_prog() 300 if (CHECK_FAIL(err)) in test_link_update_replace_old_prog() [all …]
|
A D | tailcalls.c | 21 if (CHECK_FAIL(err)) in test_tailcall_1() 25 if (CHECK_FAIL(!prog)) in test_tailcall_1() 44 if (CHECK_FAIL(!prog)) in test_tailcall_1() 52 if (CHECK_FAIL(err)) in test_tailcall_1() 63 if (CHECK_FAIL(err)) in test_tailcall_1() 84 if (CHECK_FAIL(err)) in test_tailcall_1() 106 if (CHECK_FAIL(err)) in test_tailcall_1() 119 if (CHECK_FAIL(err)) in test_tailcall_1() 159 if (CHECK_FAIL(err)) in test_tailcall_2() 201 if (CHECK_FAIL(err)) in test_tailcall_2() [all …]
|
A D | cgroup_attach_multi.c | 98 if (CHECK_FAIL(cg1 < 0)) in serial_test_cgroup_attach_multi() 101 if (CHECK_FAIL(cg2 < 0)) in serial_test_cgroup_attach_multi() 104 if (CHECK_FAIL(cg3 < 0)) in serial_test_cgroup_attach_multi() 107 if (CHECK_FAIL(cg4 < 0)) in serial_test_cgroup_attach_multi() 110 if (CHECK_FAIL(cg5 < 0)) in serial_test_cgroup_attach_multi() 157 CHECK_FAIL(prog_cnt != 4); in serial_test_cgroup_attach_multi() 162 CHECK_FAIL(prog_cnt != 4); in serial_test_cgroup_attach_multi() 172 CHECK_FAIL(prog_cnt != 4); in serial_test_cgroup_attach_multi() 179 CHECK_FAIL(prog_cnt != 1); in serial_test_cgroup_attach_multi() 276 CHECK_FAIL(prog_cnt != 3); in serial_test_cgroup_attach_multi() [all …]
|
A D | mmap.c | 92 CHECK_FAIL(bss_data->in_val); in test_mmap() 93 CHECK_FAIL(bss_data->out_val); in test_mmap() 94 CHECK_FAIL(skel->bss->in_val); in test_mmap() 96 CHECK_FAIL(map_data->val[0]); in test_mmap() 97 CHECK_FAIL(map_data->val[1]); in test_mmap() 98 CHECK_FAIL(map_data->val[2]); in test_mmap() 121 CHECK_FAIL(val != 111); in test_mmap() 123 CHECK_FAIL(val != 222); in test_mmap() 125 CHECK_FAIL(val != 123); in test_mmap() 127 CHECK_FAIL(val != 3 * 123); in test_mmap() [all …]
|
A D | sk_assign.c | 35 if (CHECK_FAIL(unshare(CLONE_NEWNET))) in configure_stack() 66 if (CHECK_FAIL(fd == -1)) in start_server() 71 if (CHECK_FAIL(bind(fd, addr, len) == -1)) in start_server() 90 if (CHECK_FAIL(fd == -1)) in connect_to_server() 95 if (CHECK_FAIL(connect(fd, addr, len))) in connect_to_server() 159 if (CHECK_FAIL(srv_client == -1)) { in run_test() 176 if (CHECK_FAIL(!port)) in run_test() 274 if (CHECK_FAIL(self_net < 0)) { in test_sk_assign() 285 if (CHECK_FAIL(server_map < 0)) { in test_sk_assign() 305 if (CHECK_FAIL(err)) { in test_sk_assign() [all …]
|
A D | sockmap_ktls.c | 17 if (CHECK_FAIL(s == -1)) { in tcp_server() 23 if (CHECK_FAIL(err)) { in tcp_server() 50 if (CHECK_FAIL(err)) { in test_sockmap_ktls_disconnect_after_delete() 56 if (CHECK_FAIL(cli == -1)) { in test_sockmap_ktls_disconnect_after_delete() 62 if (CHECK_FAIL(err)) { in test_sockmap_ktls_disconnect_after_delete() 68 if (CHECK_FAIL(err)) { in test_sockmap_ktls_disconnect_after_delete() 74 if (CHECK_FAIL(err)) { in test_sockmap_ktls_disconnect_after_delete() 80 if (CHECK_FAIL(err)) { in test_sockmap_ktls_disconnect_after_delete() 86 if (CHECK_FAIL(err)) in test_sockmap_ktls_disconnect_after_delete() 101 if (CHECK_FAIL(map < 0)) { in run_tests()
|
A D | map_lock.c | 25 if (CHECK_FAIL(err)) { in parallel_map_access() 29 if (CHECK_FAIL(vars[0] != 0)) { in parallel_map_access() 39 CHECK_FAIL(vars[j] != rnd); in parallel_map_access() 57 if (CHECK_FAIL(err)) { in test_map_lock() 62 if (CHECK_FAIL(map_fd[0] < 0)) in test_map_lock() 65 if (CHECK_FAIL(map_fd[1] < 0)) in test_map_lock() 71 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock() 75 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock() 80 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock() 84 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
|
A 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() 197 if (CHECK_FAIL(pthread_create(&tid, NULL, server_thread, in run_test() 206 if (CHECK_FAIL(client_fd < 0)) in run_test() 209 CHECK_FAIL(verify_sockopt(client_fd, CUSTOM_INHERIT1, "connect", 0)); in run_test() 216 CHECK_FAIL(err); in run_test() [all …]
|
A D | load_bytes_relative.c | 23 if (CHECK_FAIL(cgroup_fd < 0)) in test_load_bytes_relative() 27 if (CHECK_FAIL(server_fd < 0)) in test_load_bytes_relative() 32 if (CHECK_FAIL(err)) in test_load_bytes_relative() 36 if (CHECK_FAIL(!test_result)) in test_load_bytes_relative() 44 if (CHECK_FAIL(!prog)) in test_load_bytes_relative() 49 if (CHECK_FAIL(err)) in test_load_bytes_relative() 53 if (CHECK_FAIL(client_fd < 0)) in test_load_bytes_relative() 58 if (CHECK_FAIL(err)) in test_load_bytes_relative()
|
A D | connect_force_port.c | 137 if (CHECK_FAIL(cgroup_fd < 0)) in test_connect_force_port() 141 if (CHECK_FAIL(server_fd < 0)) in test_connect_force_port() 143 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_STREAM)); in test_connect_force_port() 147 if (CHECK_FAIL(server_fd < 0)) in test_connect_force_port() 149 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_STREAM)); in test_connect_force_port() 153 if (CHECK_FAIL(server_fd < 0)) in test_connect_force_port() 155 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_DGRAM)); in test_connect_force_port() 159 if (CHECK_FAIL(server_fd < 0)) in test_connect_force_port() 161 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM)); in test_connect_force_port()
|
A D | sockmap_basic.c | 29 if (CHECK_FAIL(s == -1)) in connected_socket_v4() 34 if (CHECK_FAIL(err)) in connected_socket_v4() 38 if (CHECK_FAIL(err)) in connected_socket_v4() 43 if (CHECK_FAIL(err)) in connected_socket_v4() 91 if (CHECK_FAIL(s < 0)) in test_sockmap_create_update_free() 101 if (CHECK_FAIL(err)) { in test_sockmap_create_update_free() 117 if (CHECK_FAIL(!skel)) { in test_skmsg_helpers() 126 if (CHECK_FAIL(err)) { in test_skmsg_helpers() 132 if (CHECK_FAIL(err)) { in test_skmsg_helpers() 301 if (CHECK_FAIL(err)) { in test_sockmap_skb_verdict_attach() [all …]
|
A D | cls_redirect.c | 40 if (CHECK_FAIL(fd == -1)) in start_server() 42 if (CHECK_FAIL(bind(fd, addr, len) == -1)) in start_server() 58 if (CHECK_FAIL(fd == -1)) in connect_to_server() 60 if (CHECK_FAIL(connect(fd, addr, len))) in connect_to_server() 104 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn() 115 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn() 122 if (CHECK_FAIL(getpeername(*conn, sa, &slen))) in set_up_conn() 383 if (CHECK_FAIL(!slen)) in test_cls_redirect_common() 415 if (CHECK_FAIL(!tattr.data_size_in)) in test_cls_redirect_common() 419 if (CHECK_FAIL(err)) in test_cls_redirect_common() [all …]
|
A D | cgroup_attach_autodetach.c | 40 if (CHECK_FAIL(setup_cgroup_environment())) in serial_test_cgroup_attach_autodetach() 45 if (CHECK_FAIL(cg < 0)) in serial_test_cgroup_attach_autodetach() 48 if (CHECK_FAIL(join_cgroup("/cg_autodetach"))) in serial_test_cgroup_attach_autodetach() 63 if (CHECK_FAIL(system(PING_CMD))) in serial_test_cgroup_attach_autodetach() 68 if (CHECK_FAIL(!ptr)) in serial_test_cgroup_attach_autodetach() 96 if (CHECK_FAIL(!attempts)) in serial_test_cgroup_attach_autodetach()
|
A D | global_data_init.c | 16 if (CHECK_FAIL(err)) in test_global_data_init() 20 if (CHECK_FAIL(!map || !bpf_map__is_internal(map))) in test_global_data_init() 25 if (CHECK_FAIL(!newval)) in test_global_data_init() 39 if (CHECK_FAIL(err)) in test_global_data_init() 43 if (CHECK_FAIL(map_fd < 0)) in test_global_data_init()
|
A D | xdp_attach.c | 20 if (CHECK_FAIL(err)) in serial_test_xdp_attach() 23 if (CHECK_FAIL(err)) in serial_test_xdp_attach() 28 if (CHECK_FAIL(err)) in serial_test_xdp_attach() 33 if (CHECK_FAIL(err)) in serial_test_xdp_attach() 38 if (CHECK_FAIL(err)) in serial_test_xdp_attach()
|
A D | tcp_rtt.c | 18 if (CHECK_FAIL(write(fd, &b, sizeof(b)) != 1)) in send_byte() 53 if (CHECK_FAIL(bpf_map_lookup_elem(map_fd, &client_fd, &val) < 0)) { in verify_sk() 161 if (CHECK_FAIL(cgroup_fd < 0)) in test_tcp_rtt() 165 if (CHECK_FAIL(server_fd < 0)) in test_tcp_rtt() 168 CHECK_FAIL(run_test(cgroup_fd, server_fd)); in test_tcp_rtt()
|
A 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()
|
A D | btf_skc_cls_ingress.c | 101 if (CHECK_FAIL(listen_fd == -1)) in test_conn() 112 if (CHECK_FAIL(cli_fd == -1)) in test_conn() 116 if (CHECK_FAIL(srv_fd == -1)) in test_conn() 156 if (CHECK_FAIL(listen_fd == -1)) in test_syncookie() 167 if (CHECK_FAIL(cli_fd == -1)) in test_syncookie() 171 if (CHECK_FAIL(srv_fd == -1)) in test_syncookie()
|
A D | cgroup_link.c | 17 CHECK_FAIL(system(PING_CMD)); in ping_and_check() 78 CHECK_FAIL(err); in serial_test_cgroup_link() 79 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in serial_test_cgroup_link() 87 CHECK_FAIL(err); in serial_test_cgroup_link() 88 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in serial_test_cgroup_link() 97 CHECK_FAIL(err); in serial_test_cgroup_link() 98 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in serial_test_cgroup_link()
|
A 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()
|
A D | spinlock.c | 28 if (CHECK_FAIL(err)) { in test_spinlock() 33 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_spinlock() 38 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_spinlock()
|
A 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()
|
A D | bpf_obj_id.c | 56 if (CHECK_FAIL(err)) in serial_test_bpf_obj_id() 61 if (CHECK_FAIL(map_fds[i] < 0)) in serial_test_bpf_obj_id() 65 if (CHECK_FAIL(err)) in serial_test_bpf_obj_id() 70 if (CHECK_FAIL(!prog)) in serial_test_bpf_obj_id() 116 if (CHECK_FAIL(err)) in serial_test_bpf_obj_id() 119 if (CHECK_FAIL(err)) in serial_test_bpf_obj_id() 277 if (CHECK_FAIL(err)) in serial_test_bpf_obj_id()
|
A D | global_data.c | 11 if (CHECK_FAIL(map_fd < 0)) in test_global_data_number() 46 if (CHECK_FAIL(map_fd < 0)) in test_global_data_string() 81 if (CHECK_FAIL(map_fd < 0)) in test_global_data_struct() 121 if (CHECK_FAIL(map_fd < 0)) in test_global_data_rdonly()
|
A D | trampoline_count.c | 111 if (CHECK_FAIL(prctl(PR_GET_NAME, comm, 0L, 0L, 0L))) in serial_test_trampoline_count() 113 CHECK_FAIL(test_task_rename()); in serial_test_trampoline_count() 114 CHECK_FAIL(prctl(PR_SET_NAME, comm, 0L, 0L, 0L)); in serial_test_trampoline_count()
|