Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 7 of 7) sorted by relevance

/tools/lib/bpf/
Dnetlink.c22 void *cookie);
75 void *cookie) in bpf_netlink_recv() argument
120 ret = _fn(nh, fn, cookie); in bpf_netlink_recv()
191 libbpf_dump_nlmsg_t dump_link_nlmsg, void *cookie) in __dump_link_nlmsg() argument
202 return dump_link_nlmsg(cookie, ifi, tb); in __dump_link_nlmsg()
219 static int get_xdp_id(void *cookie, void *msg, struct nlattr **tb) in get_xdp_id() argument
222 struct xdp_id_md *xdp_id = cookie; in get_xdp_id()
285 libbpf_dump_nlmsg_t dump_link_nlmsg, void *cookie) in libbpf_nl_get_link() argument
303 dump_link_nlmsg, cookie); in libbpf_nl_get_link()
308 void *cookie) in __dump_class_nlmsg() argument
[all …]
Dlibbpf.h427 typedef int (*libbpf_dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb);
430 libbpf_dump_nlmsg_t dump_link_nlmsg, void *cookie);
432 libbpf_dump_nlmsg_t dump_class_nlmsg, void *cookie);
434 libbpf_dump_nlmsg_t dump_qdisc_nlmsg, void *cookie);
436 libbpf_dump_nlmsg_t dump_filter_nlmsg, void *cookie);
/tools/testing/selftests/bpf/progs/
Dtest_tcp_check_syncookie_kern.c134 __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/
Dnet.c86 static int dump_link_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_link_nlmsg() argument
88 struct bpf_netdev_t *netinfo = cookie; in dump_link_nlmsg()
115 static int dump_class_qdisc_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_class_qdisc_nlmsg() argument
117 struct bpf_tcinfo_t *tcinfo = cookie; in dump_class_qdisc_nlmsg()
149 static int dump_filter_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_filter_nlmsg() argument
151 const struct bpf_filter_t *filter_info = cookie; in dump_filter_nlmsg()
/tools/testing/selftests/net/
Dmsg_zerocopy.c170 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/perf/Documentation/
Dperf-script-perl.txt96 $context an opaque 'cookie' used in calls back into perf
Dperf-script-python.txt488 context an opaque 'cookie' used in calls back into perf