/tools/testing/selftests/bpf/progs/ |
D | netns_cookie_prog.c | 34 int *cookie; in get_netns_cookie_sockops() local 45 cookie = bpf_sk_storage_get(&sockops_netns_cookies, sk, 0, in get_netns_cookie_sockops() 47 if (!cookie) in get_netns_cookie_sockops() 50 *cookie = bpf_get_netns_cookie(ctx); in get_netns_cookie_sockops() 66 int *cookie; in get_netns_cookie_sk_msg() local 74 cookie = bpf_sk_storage_get(&sk_msg_netns_cookies, sk, 0, in get_netns_cookie_sk_msg() 76 if (!cookie) in get_netns_cookie_sk_msg() 79 *cookie = bpf_get_netns_cookie(msg); in get_netns_cookie_sk_msg()
|
D | test_migrate_reuseport.c | 101 __u64 cookie; in migrate_reuseport() local 107 cookie = bpf_get_socket_cookie(reuse_md->sk); in migrate_reuseport() 109 key = bpf_map_lookup_elem(&migrate_map, &cookie); in migrate_reuseport()
|
D | test_tcp_check_syncookie_kern.c | 134 __u32 cookie = (__u32)seq_mss; in check_syncookie() local 137 bpf_map_update_elem(&results, &key_gen, &cookie, 0); in check_syncookie() 142 __u32 cookie = bpf_ntohl(tcph->ack_seq) - 1; in check_syncookie() local 144 bpf_map_update_elem(&results, &key, &cookie, 0); in check_syncookie()
|
/tools/bpf/bpftool/ |
D | net.c | 92 typedef int (*dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb); 94 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, void *cookie); 141 void *cookie) in netlink_recv() argument 186 ret = _fn(nh, fn, cookie); in netlink_recv() 199 void *cookie) in __dump_class_nlmsg() argument 210 return dump_class_nlmsg(cookie, t, tb); in __dump_class_nlmsg() 214 dump_nlmsg_t dump_class_nlmsg, void *cookie) in netlink_get_class() argument 233 dump_class_nlmsg, cookie); in netlink_get_class() 238 void *cookie) in __dump_qdisc_nlmsg() argument 249 return dump_qdisc_nlmsg(cookie, t, tb); in __dump_qdisc_nlmsg() [all …]
|
/tools/lib/bpf/ |
D | netlink.c | 25 typedef int (*libbpf_dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb); 28 void *cookie); 118 void *cookie) in libbpf_netlink_recv() argument 185 ret = _fn(nh, fn, cookie); in libbpf_netlink_recv() 209 void *cookie) in libbpf_netlink_send_recv() argument 227 parse_msg, parse_attr, cookie); in libbpf_netlink_send_recv() 295 libbpf_dump_nlmsg_t dump_link_nlmsg, void *cookie) in __dump_link_nlmsg() argument 307 return dump_link_nlmsg(cookie, ifi, tb); in __dump_link_nlmsg() 310 static int get_xdp_info(void *cookie, void *msg, struct nlattr **tb) in get_xdp_info() argument 313 struct xdp_id_md *xdp_id = cookie; in get_xdp_info() [all …]
|
/tools/testing/selftests/net/ |
D | msg_zerocopy.c | 170 static void add_zcopy_cookie(struct msghdr *msg, uint32_t cookie) in add_zcopy_cookie() argument 177 cm->cmsg_len = CMSG_LEN(sizeof(cookie)); in add_zcopy_cookie() 180 memcpy(CMSG_DATA(cm), &cookie, sizeof(cookie)); in add_zcopy_cookie() 186 static uint32_t cookie; in do_sendmsg() local 187 char ckbuf[CMSG_SPACE(sizeof(cookie))]; in do_sendmsg() 198 msg->msg_controllen = CMSG_SPACE(sizeof(cookie)); in do_sendmsg() 200 add_zcopy_cookie(msg, ++cookie); in do_sendmsg()
|
/tools/testing/selftests/sched/ |
D | cs_prctl_test.c | 113 unsigned long long cookie; in get_cs_cookie() local 117 (unsigned long)&cookie); in get_cs_cookie() 123 return cookie; in get_cs_cookie()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sk_lookup.c | 246 __u64 cookie; in socket_cookie() local 247 socklen_t cookie_len = sizeof(cookie); in socket_cookie() 249 if (CHECK(getsockopt(fd, SOL_SOCKET, SO_COOKIE, &cookie, &cookie_len) < 0, in socket_cookie() 252 return cookie; in socket_cookie() 1092 if (CHECK(ctx.cookie == 0, "ctx.cookie", "no socket selected\n")) in run_sk_assign() 1095 CHECK(ctx.cookie != server_cookie, "ctx.cookie", in run_sk_assign() 1096 "selected sk %llu instead of %llu\n", ctx.cookie, server_cookie); in run_sk_assign()
|
D | sockmap_listen.c | 447 u64 cookie, value; in test_lookup_after_insert() local 460 len = sizeof(cookie); in test_lookup_after_insert() 461 xgetsockopt(s, SOL_SOCKET, SO_COOKIE, &cookie, &len); in test_lookup_after_insert() 465 if (value != cookie) { in test_lookup_after_insert() 467 (unsigned long long)value, (unsigned long long)cookie); in test_lookup_after_insert()
|
/tools/perf/Documentation/ |
D | perf-script-perl.txt | 96 $context an opaque 'cookie' used in calls back into perf
|
D | perf-script-python.txt | 488 context an opaque 'cookie' used in calls back into perf
|
/tools/include/uapi/linux/ |
D | bpf.h | 6224 __u64 cookie; /* Non-zero if socket was selected in PROG_TEST_RUN */ member
|