Searched refs:attach_type (Results 1 – 4 of 4) sorted by relevance
/kernel/bpf/ |
D | local_storage.c | 50 else if (key1->attach_type < key2->attach_type) in bpf_cgroup_storage_key_cmp() 52 else if (key1->attach_type > key2->attach_type) in bpf_cgroup_storage_key_cmp() 392 offset = offsetof(struct bpf_cgroup_storage_key, attach_type); in cgroup_storage_check_btf() 393 size = sizeof_field(struct bpf_cgroup_storage_key, attach_type); in cgroup_storage_check_btf() 576 storage->key.attach_type = type; in bpf_cgroup_storage_link()
|
D | net_namespace.c | 219 info->netns.attach_type = net_link->type; in bpf_netns_link_fill_info() 233 info.netns.attach_type); in bpf_netns_link_show_fdinfo() 281 type = to_netns_bpf_attach_type(attr->query.attach_type); in netns_bpf_prog_query() 308 type = to_netns_bpf_attach_type(attr->attach_type); in netns_bpf_prog_attach() 392 type = to_netns_bpf_attach_type(attr->attach_type); in netns_bpf_prog_detach() 489 type = attr->link_create.attach_type; in netns_bpf_link_create()
|
D | cgroup.c | 138 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() argument 144 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find() 145 return to_cgroup_bpf_attach_type(attach_type); in bpf_cgroup_atype_find() 184 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() argument 186 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find() 187 return to_cgroup_bpf_attach_type(attach_type); in bpf_cgroup_atype_find() 217 key.attach_type = type; in bpf_cgroup_storages_alloc() 251 enum bpf_attach_type attach_type) in bpf_cgroup_storages_link() argument 256 bpf_cgroup_storage_link(storages[stype], cgrp, attach_type); in bpf_cgroup_storages_link() 1025 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query() [all …]
|
D | syscall.c | 2242 enum bpf_prog_type *attach_type, bool attach_drv) in bpf_prog_get_ok() argument 2245 if (!attach_type) in bpf_prog_get_ok() 2248 if (prog->type != *attach_type) in bpf_prog_get_ok() 2256 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, in __bpf_prog_get() argument 2265 if (!bpf_prog_get_ok(prog, attach_type, attach_drv)) { in __bpf_prog_get() 2934 tr_link->attach_type); in bpf_tracing_link_show_fdinfo() 2943 info->tracing.attach_type = tr_link->attach_type; in bpf_tracing_link_fill_link_info() 3025 link->attach_type = prog->expected_attach_type; in bpf_tracing_prog_attach() 3386 enum bpf_attach_type attach_type) in bpf_prog_attach_check_attach_type() argument 3393 return attach_type == prog->expected_attach_type ? 0 : -EINVAL; in bpf_prog_attach_check_attach_type() [all …]
|