Searched refs:sk_fd (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sk_storage_omem_uncharge.c | 12 int sk_fd = -1, map_fd, err, value; in test_sk_storage_omem_uncharge() local 23 sk_fd = socket(AF_INET6, SOCK_STREAM, 0); in test_sk_storage_omem_uncharge() 24 if (!ASSERT_GE(sk_fd, 0, "socket")) in test_sk_storage_omem_uncharge() 28 err = getsockopt(sk_fd, SOL_SOCKET, SO_COOKIE, &skel->bss->cookie, &optlen); in test_sk_storage_omem_uncharge() 33 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in test_sk_storage_omem_uncharge() 38 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in test_sk_storage_omem_uncharge() 46 close(sk_fd); in test_sk_storage_omem_uncharge() 47 sk_fd = -1; in test_sk_storage_omem_uncharge() 54 if (sk_fd != -1) in test_sk_storage_omem_uncharge() 55 close(sk_fd); in test_sk_storage_omem_uncharge()
|
D | sk_storage_tracing.c | 25 static int check_sk_stg(int sk_fd, __u32 expected_state) in check_sk_stg() argument 30 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.sk_stg_map), &sk_fd, in check_sk_stg()
|
D | sock_fields.c | 253 static int init_sk_storage(int sk_fd, __u32 pkt_out_cnt) in init_sk_storage() argument 259 err = bpf_map_update_elem(sk_pkt_out_cnt_fd, &sk_fd, &scnt, in init_sk_storage() 265 err = bpf_map_update_elem(sk_pkt_out_cnt10_fd, &sk_fd, &scnt, in init_sk_storage()
|
/linux-6.12.1/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 284 int sk_fd = *(int *)arg; in update_thread() local 288 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in update_thread() 308 int sk_fd = *(int *)arg; in delete_thread() local 312 err = bpf_map_delete_elem(map_fd, &sk_fd); in delete_thread() 331 int i, sk_fd, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_change() local 341 sk_fd = socket(AF_INET6, SOCK_STREAM, 0); in do_sk_storage_map_stress_change() 342 if (sk_fd == -1) { in do_sk_storage_map_stress_change() 353 update_thread, &sk_fd); in do_sk_storage_map_stress_change() 356 delete_thread, &sk_fd); in do_sk_storage_map_stress_change() 377 if (sk_fd != -1) in do_sk_storage_map_stress_change() [all …]
|
/linux-6.12.1/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 79 int sk_fd, ret; in uevent_listener() local 92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener() 94 if (sk_fd < 0) { in uevent_listener() 99 ret = setsockopt(sk_fd, SOL_SOCKET, SO_RCVBUF, &rcv_buf_sz, in uevent_listener() 110 ret = bind(sk_fd, (struct sockaddr *)&sk_addr, sk_addr_len); in uevent_listener() 116 ret = getsockname(sk_fd, (struct sockaddr *)&sk_addr, &sk_addr_len); in uevent_listener() 160 r = recvmsg(sk_fd, &hdr, 0); in uevent_listener() 190 close(sk_fd); in uevent_listener()
|