Searched refs:attach_type (Results 1 - 25 of 38) sorted by path

12

/linux-master/drivers/net/
H A Dnetkit.c506 attr->attach_type);
546 attr->attach_type);
578 attr->query.attach_type);
704 seq_printf(seq, "attach_type:\t%u (%s)\n",
721 info->netkit.attach_type = nkl->location;
748 nkl->location = attr->link_create.attach_type;
763 attr->link_create.attach_type);
/linux-master/include/linux/
H A Dbpf-cgroup.h39 to_cgroup_bpf_attach_type(enum bpf_attach_type attach_type) argument
41 switch (attach_type) {
H A Dbpf-netns.h10 to_netns_bpf_attach_type(enum bpf_attach_type attach_type) argument
12 switch (attach_type) {
H A Dbpf.h1620 enum bpf_attach_type attach_type; member in struct:bpf_tracing_link
2350 enum bpf_attach_type attach_type);
/linux-master/include/uapi/linux/
H A Dbpf.h110 __u32 attach_type; /* program attach type (enum bpf_attach_type) */ member in struct:bpf_cgroup_storage_key
302 * *attach_type* hook.
304 * The *attach_type* specifies the eBPF attachment point to
310 * or sock_ops type corresponding to the specified *attach_type*.
348 * hook specified by *attach_type*. The program must have been
458 * specified *attach_type* hook.
780 * *attach_type* hook and return a file descriptor handle for
1589 __u32 attach_type; member in struct:bpf_attr::__anon2596
1646 __u32 attach_type; member in struct:bpf_attr::__anon2603
1712 __u32 attach_type; /* attac member in struct:bpf_attr::__anon2609
6616 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2665
6622 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2666
6650 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2673
6715 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2685
6719 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2686
[all...]
/linux-master/kernel/bpf/
H A Dbtf.c5802 enum bpf_attach_type attach_type)
5863 switch (attach_type) {
5799 btf_validate_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, const struct btf_type *t, int arg, enum bpf_prog_type prog_type, enum bpf_attach_type attach_type) argument
H A Dcgroup.c138 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) argument
144 if (attach_type != BPF_LSM_CGROUP)
145 return to_cgroup_bpf_attach_type(attach_type);
184 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) argument
186 if (attach_type != BPF_LSM_CGROUP)
187 return to_cgroup_bpf_attach_type(attach_type);
217 key.attach_type = type;
251 enum bpf_attach_type attach_type)
256 bpf_cgroup_storage_link(storages[stype], cgrp, attach_type);
1026 enum bpf_attach_type type = attr->query.attach_type;
249 bpf_cgroup_storages_link(struct bpf_cgroup_storage *storages[], struct cgroup *cgrp, enum bpf_attach_type attach_type) argument
[all...]
H A Dlocal_storage.c50 else if (key1->attach_type < key2->attach_type)
52 else if (key1->attach_type > key2->attach_type)
369 * __u32 attach_type;
392 offset = offsetof(struct bpf_cgroup_storage_key, attach_type);
393 size = sizeof_field(struct bpf_cgroup_storage_key, attach_type);
583 storage->key.attach_type = type;
H A Dnet_namespace.c219 info->netns.attach_type = net_link->type;
231 "attach_type:\t%u\n",
233 info.netns.attach_type);
281 type = to_netns_bpf_attach_type(attr->query.attach_type);
308 type = to_netns_bpf_attach_type(attr->attach_type);
392 type = to_netns_bpf_attach_type(attr->attach_type);
489 type = attr->link_create.attach_type;
H A Dsyscall.c2447 enum bpf_prog_type *attach_type, bool attach_drv)
2450 if (!attach_type)
2453 if (prog->type != *attach_type)
2461 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, argument
2470 if (!bpf_prog_get_ok(prog, attach_type, attach_drv)) {
3275 "attach_type:\t%d\n"
3278 tr_link->attach_type,
3289 info->tracing.attach_type = tr_link->attach_type;
3376 link->attach_type
2446 bpf_prog_get_ok(struct bpf_prog *prog, enum bpf_prog_type *attach_type, bool attach_drv) argument
3899 attach_type_to_prog_type(enum bpf_attach_type attach_type) argument
3971 bpf_prog_attach_check_attach_type(const struct bpf_prog *prog, enum bpf_attach_type attach_type) argument
[all...]
H A Dtcx.c12 bool created, ingress = attr->attach_type == BPF_TCX_INGRESS;
61 bool ingress = attr->attach_type == BPF_TCX_INGRESS;
124 bool ingress = attr->query.attach_type == BPF_TCX_INGRESS;
262 seq_printf(seq, "attach_type:\t%u (%s)\n",
279 info->tcx.attach_type = tcx->location;
305 tcx->location = attr->link_create.attach_type;
H A Dtoken.c271 enum bpf_attach_type attach_type)
273 if (!token || prog_type >= __MAX_BPF_PROG_TYPE || attach_type >= __MAX_BPF_ATTACH_TYPE)
277 (token->allowed_attachs & BIT_ULL(attach_type));
269 bpf_token_allow_prog_type(const struct bpf_token *token, enum bpf_prog_type prog_type, enum bpf_attach_type attach_type) argument
/linux-master/net/core/
H A Dfilter.c8710 enum bpf_attach_type attach_type)
8716 switch (attach_type) {
8724 switch (attach_type) {
8731 switch (attach_type) {
8738 switch (attach_type) {
8708 __sock_filter_check_attach_type(int off, enum bpf_access_type access_type, enum bpf_attach_type attach_type) argument
H A Dsock_map.c74 ret = sock_map_prog_update(map, prog, NULL, attr->attach_type);
106 ret = sock_map_prog_update(map, NULL, prog, attr->attach_type);
1536 ret = sock_map_prog_lookup(map, &pprog, attr->query.attach_type);
/linux-master/tools/bpf/bpftool/
H A Dcgroup.c98 static int show_bpf_prog(int id, enum bpf_attach_type attach_type, argument
118 attach_type_str = libbpf_bpf_attach_type_str(attach_type);
138 jsonw_string_field(json_wtr, "attach_type", attach_type_str);
140 jsonw_uint_field(json_wtr, "attach_type", attach_type);
154 printf("type %-10u", attach_type);
514 enum bpf_attach_type attach_type; local
531 attach_type = parse_attach_type(argv[1]);
532 if (attach_type == __MAX_BPF_ATTACH_TYPE) {
554 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flag
574 enum bpf_attach_type attach_type; local
[all...]
H A Dlink.c142 static void show_link_attach_type_json(__u32 attach_type, json_writer_t *wtr) argument
146 attach_type_str = libbpf_bpf_attach_type_str(attach_type);
148 jsonw_string_field(wtr, "attach_type", attach_type_str);
150 jsonw_uint_field(wtr, "attach_type", attach_type);
500 show_link_attach_type_json(info->tracing.attach_type,
508 show_link_attach_type_json(info->cgroup.attach_type, json_wtr);
516 show_link_attach_type_json(info->netns.attach_type, json_wtr);
523 show_link_attach_type_json(info->tcx.attach_type, json_wtr);
527 show_link_attach_type_json(info->netkit.attach_type, json_wt
600 show_link_attach_type_plain(__u32 attach_type) argument
[all...]
H A Dnet.c633 static int do_attach_detach_xdp(int progfd, enum net_attach_type attach_type, argument
640 if (attach_type == NET_ATTACH_TYPE_XDP_GENERIC)
642 if (attach_type == NET_ATTACH_TYPE_XDP_DRIVER)
644 if (attach_type == NET_ATTACH_TYPE_XDP_OFFLOAD)
652 enum net_attach_type attach_type; local
660 attach_type = parse_attach_type(*argv);
661 if (attach_type == net_attach_type_size) {
688 if (is_prefix("xdp", attach_type_strings[attach_type]))
689 err = do_attach_detach_xdp(progfd, attach_type, ifindex,
693 attach_type_strings[attach_type], strerro
706 enum net_attach_type attach_type; local
[all...]
H A Dprog.c1033 enum bpf_attach_type *attach_type,
1043 *attach_type = parse_attach_type(*argv);
1044 if (*attach_type == __MAX_BPF_ATTACH_TYPE) {
1049 if (*attach_type == BPF_FLOW_DISSECTOR) {
1067 enum bpf_attach_type attach_type; local
1072 &progfd, &attach_type, &mapfd);
1076 err = bpf_prog_attach(progfd, mapfd, attach_type, 0);
1089 enum bpf_attach_type attach_type; local
1094 &progfd, &attach_type, &mapfd);
1098 err = bpf_prog_detach2(progfd, mapfd, attach_type);
1032 parse_attach_detach_args(int argc, char **argv, int *progfd, enum bpf_attach_type *attach_type, int *mapfd) argument
[all...]
/linux-master/tools/include/uapi/linux/
H A Dbpf.h110 __u32 attach_type; /* program attach type (enum bpf_attach_type) */ member in struct:bpf_cgroup_storage_key
302 * *attach_type* hook.
304 * The *attach_type* specifies the eBPF attachment point to
310 * or sock_ops type corresponding to the specified *attach_type*.
348 * hook specified by *attach_type*. The program must have been
458 * specified *attach_type* hook.
780 * *attach_type* hook and return a file descriptor handle for
1589 __u32 attach_type; member in struct:bpf_attr::__anon3137
1646 __u32 attach_type; member in struct:bpf_attr::__anon3144
1712 __u32 attach_type; /* attac member in struct:bpf_attr::__anon3150
6616 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3206
6622 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3207
6650 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3214
6715 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3226
6719 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3227
[all...]
/linux-master/tools/lib/bpf/
H A Dbpf.c661 attr.attach_type = type;
699 attr.attach_type = type;
725 enum bpf_attach_type attach_type,
750 attr.link_create.attach_type = attach_type;
758 switch (attach_type) {
864 switch (attach_type) {
940 attr.query.attach_type = type;
724 bpf_link_create(int prog_fd, int target_fd, enum bpf_attach_type attach_type, const struct bpf_link_create_opts *opts) argument
H A Dbpf.h444 enum bpf_attach_type attach_type,
H A Dlibbpf.c9484 static char *libbpf_get_type_names(bool attach_type) argument
9498 if (attach_type) {
9708 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type, argument
9711 switch (attach_type) {
9749 enum bpf_attach_type attach_type)
9754 btf_get_kernel_prefix_kind(attach_type, &prefix, &kind);
9759 enum bpf_attach_type attach_type)
9771 err = find_attach_btf_id(btf, name, attach_type);
9816 enum bpf_attach_type attach_type,
9821 ret = find_attach_btf_id(obj->btf_vmlinux, attach_name, attach_type);
9748 find_attach_btf_id(struct btf *btf, const char *name, enum bpf_attach_type attach_type) argument
9758 libbpf_find_vmlinux_btf_id(const char *name, enum bpf_attach_type attach_type) argument
9815 find_kernel_btf_id(struct bpf_object *obj, const char *attach_name, enum bpf_attach_type attach_type, int *btf_obj_fd, int *btf_type_id) argument
9855 enum bpf_attach_type attach_type = prog->expected_attach_type; local
9894 libbpf_attach_type_by_name(const char *name, enum bpf_attach_type *attach_type) argument
12415 enum bpf_attach_type attach_type; local
[all...]
H A Dlibbpf.h306 enum bpf_attach_type *attach_type);
308 enum bpf_attach_type attach_type);
H A Dlibbpf_internal.h410 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type,
H A Dskel_internal.h290 enum bpf_attach_type attach_type)
298 attr.link_create.attach_type = attach_type;
289 skel_link_create(int prog_fd, int target_fd, enum bpf_attach_type attach_type) argument

Completed in 552 milliseconds

12