/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | tailcalls.c | 20 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 …]
|
D | mmap.c | 78 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 …]
|
D | flow_dissector_reattach.c | 27 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 …]
|
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 | 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 | 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 | 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 | 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 | 309 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()
|
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 | 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 | 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 | 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 | 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 | stacktrace_build_id_nmi.c | 85 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()
|
D | kfree_skb.c | 136 CHECK_FAIL(!passed); in test_kfree_skb() 143 CHECK_FAIL(!test_ok[0] || !test_ok[1]); in test_kfree_skb()
|
D | pkt_md_access.c | 12 if (CHECK_FAIL(err)) in test_pkt_md_access()
|
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 | pinning.c | 89 if (CHECK_FAIL(libbpf_get_error(obj))) { in test_pinning() 202 if (CHECK_FAIL(libbpf_get_error(obj))) { in test_pinning()
|
D | reference_tracking.c | 18 if (CHECK_FAIL(IS_ERR(obj))) in test_reference_tracking()
|
D | xdp.c | 19 if (CHECK_FAIL(err)) in test_xdp()
|