Home
last modified time | relevance | path

Searched refs:attach_btf_id (Results 1 – 8 of 8) sorted by relevance

/kernel/bpf/
Dbpf_lsm.c79 prog->aux->attach_btf_id)) { in BTF_SET_END()
106 if (!btf_id_set_contains(&bpf_lsm_hooks, prog->aux->attach_btf_id)) { in bpf_lsm_verify_prog()
108 prog->aux->attach_btf_id, prog->aux->attach_func_name); in bpf_lsm_verify_prog()
145 return bpf_lsm_is_sleepable_hook(prog->aux->attach_btf_id); in bpf_ima_inode_hash_allowed()
233 prog->aux->attach_btf_id)) in bpf_lsm_func_proto()
236 prog->aux->attach_btf_id)) in bpf_lsm_func_proto()
243 prog->aux->attach_btf_id)) in bpf_lsm_func_proto()
246 prog->aux->attach_btf_id)) in bpf_lsm_func_proto()
Dcgroup.c131 u32 attach_btf_id; member
138 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() argument
148 if (cgroup_lsm_atype[i].attach_btf_id == attach_btf_id) in bpf_cgroup_atype_find()
152 if (cgroup_lsm_atype[i].attach_btf_id == 0) in bpf_cgroup_atype_find()
159 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) in bpf_cgroup_atype_get() argument
165 WARN_ON_ONCE(cgroup_lsm_atype[i].attach_btf_id && in bpf_cgroup_atype_get()
166 cgroup_lsm_atype[i].attach_btf_id != attach_btf_id); in bpf_cgroup_atype_get()
168 cgroup_lsm_atype[i].attach_btf_id = attach_btf_id; in bpf_cgroup_atype_get()
178 cgroup_lsm_atype[i].attach_btf_id = 0; in bpf_cgroup_atype_put()
184 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() argument
[all …]
Dbpf_iter.c336 tinfo->btf_id = prog->aux->attach_btf_id; in cache_btf_id()
343 u32 prog_btf_id = prog->aux->attach_btf_id; in bpf_iter_prog_supported()
380 if (tinfo->btf_id == prog->aux->attach_btf_id) { in bpf_iter_get_func_proto()
425 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) { in bpf_iter_link_replace()
538 prog_btf_id = prog->aux->attach_btf_id; in bpf_iter_link_attach()
Dtrampoline.c680 p->aux->attach_btf_id = prog->aux->attach_btf_id; in cgroup_shim_alloc()
688 bpf_cgroup_atype_get(p->aux->attach_btf_id, cgroup_atype); in cgroup_shim_alloc()
722 prog->aux->attach_btf_id, in bpf_trampoline_link_cgroup_shim()
728 prog->aux->attach_btf_id); in bpf_trampoline_link_cgroup_shim()
785 prog->aux->attach_btf_id); in bpf_trampoline_unlink_cgroup_shim()
Dsyscall.c2535 } else if (attr->attach_btf_id) { in bpf_prog_load()
2547 attach_btf, attr->attach_btf_id, in bpf_prog_load()
2568 prog->aux->attach_btf_id = attr->attach_btf_id; in bpf_prog_load()
3069 btf_id = prog->aux->attach_btf_id; in bpf_tracing_prog_attach()
4121 info.attach_btf_id = prog->aux->attach_btf_id; in bpf_prog_get_info_by_fd()
Dbpf_struct_ops.c464 prog->aux->attach_btf_id != st_ops->type_id || in bpf_struct_ops_map_update_elem()
Dverifier.c10904 if (!env->prog->aux->attach_btf_id) in check_return_code()
15071 btf_id = prog->aux->attach_btf_id; in check_struct_ops_btf_id()
15396 u32 btf_id = prog->aux->attach_btf_id; in BTF_SET_START()
/kernel/trace/
Dbpf_trace.c961 return bpf_lsm_is_sleepable_hook(prog->aux->attach_btf_id); in BTF_ID()
964 prog->aux->attach_btf_id); in BTF_ID()