| /linux/kernel/bpf/ |
| H A D | cgroup.c | 60 u32 attach_btf_id; 183 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() 193 if (cgroup_lsm_atype[i].attach_btf_id == attach_btf_id) in bpf_cgroup_atype_get() 197 if (cgroup_lsm_atype[i].attach_btf_id == 0) in bpf_cgroup_atype_get() 204 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) in bpf_cgroup_atype_put() 210 if (!cgroup_lsm_atype[i].attach_btf_id) { in bpf_cgroup_atype_put() 211 cgroup_lsm_atype[i].attach_btf_id = attach_btf_id; 213 bpf_lsm_hook_returns_errno(attach_btf_id)); in bpf_cgroup_atype_find() argument 160 u32 attach_btf_id; global() member 167 bpf_cgroup_atype_find(enum bpf_attach_type attach_type,u32 attach_btf_id) bpf_cgroup_atype_find() argument 188 bpf_cgroup_atype_get(u32 attach_btf_id,int cgroup_atype) bpf_cgroup_atype_get() argument 1143 u32 attach_btf_id = 0; __cgroup_bpf_detach() local [all...] |
| H A D | bpf_iter.c | 334 tinfo->btf_id = prog->aux->attach_btf_id; in cache_btf_id() 341 u32 prog_btf_id = prog->aux->attach_btf_id; in bpf_iter_prog_supported() 377 if (tinfo->btf_id == prog->aux->attach_btf_id) { in bpf_iter_get_func_proto() 422 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) { in bpf_iter_link_replace() 535 prog_btf_id = prog->aux->attach_btf_id; in bpf_iter_link_attach()
|
| H A D | trampoline.c | 1045 p->aux->attach_btf_id = prog->aux->attach_btf_id; in bpf_trampoline_unlink_cgroup_shim() 1053 bpf_cgroup_atype_get(p->aux->attach_btf_id, cgroup_atype); in bpf_trampoline_unlink_cgroup_shim() 1088 prog->aux->attach_btf_id, in bpf_trampoline_put() 1094 prog->aux->attach_btf_id); in bpf_trampoline_put() 1149 prog->aux->attach_btf_id); in __bpf_prog_enter_recur()
|
| H A D | syscall.c | 3071 } else if (attr->attach_btf_id || multi_func) { in bpf_prog_load() 3086 attach_btf, attr->attach_btf_id, in bpf_prog_load() 3110 prog->aux->attach_btf_id = multi_func ? bpf_multi_func_btf_id[0] : attr->attach_btf_id; in bpf_prog_load() 3810 btf_id = prog->aux->attach_btf_id; in bpf_raw_tp_link_dealloc() 5168 len = offsetofend(struct bpf_prog_info, attach_btf_id); in bpf_prog_get_info_by_fd() 5363 info.attach_btf_id = prog->aux->attach_btf_id; in bpf_map_get_info_by_fd()
|
| H A D | verifier.c | 16407 if (!env->prog->aux->attach_btf_id) in check_cond_jmp_op() 18625 if (!prog->aux->attach_btf_id) 18639 btf_id = prog->aux->attach_btf_id; in sanitize_dead_code() 18642 verbose(env, "attach_btf_id %u is not a supported struct\n", in sanitize_dead_code() 18895 bpf_log(log, "attach_btf_id %u is invalid\n", btf_id); in do_check_subprogs() 18900 bpf_log(log, "attach_btf_id %u doesn't have a name\n", btf_id); in do_check_main() 19022 bpf_log(log, "attach_btf_id %u is not a typedef\n", in check_struct_ops_btf_id() 19027 bpf_log(log, "attach_btf_id %u points to wrong type name %s\n", in check_struct_ops_btf_id() 19074 bpf_log(log, "attach_btf_id %u is not a function\n", in BTF_ID() 19105 bpf_log(log, "attach_btf_id in has_arch_syscall_prefix() [all...] |
| H A D | btf.c | 7020 t = btf_type_by_id(btf, prog->aux->attach_btf_id); in btf_ctx_access()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fexit_bpf2bpf.c | 479 static int load_fentry(int attach_prog_fd, int attach_btf_id) in test_fentry_to_cgroup_bpf() 484 .attach_btf_id = attach_btf_id, in test_fentry_to_cgroup_bpf() 536 ASSERT_EQ(info.attach_btf_id, btf_id, "info.attach_btf_id"); in test_func_replace_progmap() 459 load_fentry(int attach_prog_fd,int attach_btf_id) load_fentry() argument
|
| H A D | fexit_stress.c | 35 trace_opts.attach_btf_id = err; in serial_test_fexit_stress()
|
| H A D | module_fentry_shadow.c | 100 load_opts.attach_btf_id = btf_id[i]; in test_module_fentry_shadow()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf_probes.c | 141 opts.attach_btf_id = 1; in probe_prog_load() 144 exp_msg = "attach_btf_id 1 is not a function"; in probe_prog_load() 150 opts.attach_btf_id = 1; in probe_prog_load()
|
| H A D | gen_loader.c | 1099 attr.attach_btf_id = tgt_endian(load_attr->attach_btf_id); in bpf_gen__prog_load() 1169 offsetof(union bpf_attr, attach_btf_id))); in bpf_gen__map_update_elem()
|
| H A D | libbpf.c | 507 __u32 attach_btf_id; 1318 * attach_btf_id and member_idx in bpf_map__init_kern_struct_ops() 1320 if (!prog->attach_btf_id) { in bpf_map__init_kern_struct_ops() 1321 prog->attach_btf_id = kern_type_id; in bpf_map__init_kern_struct_ops() 1330 if (prog->attach_btf_id != kern_type_id) { in bpf_map__init_kern_struct_ops() 1331 pr_warn("struct_ops init_kern %s func ptr %s: invalid reuse of prog %s in sec %s with type %u: attach_btf_id %u != kern_type_id %u\n", in bpf_map__init_kern_struct_ops() 1333 prog->attach_btf_id, kern_type_id); in bpf_map__init_kern_struct_ops() 7864 if ((def & SEC_ATTACH_BTF) && !prog->attach_btf_id) { in bpf_object_load_prog() 7891 prog->attach_btf_id = btf_type_id; in bpf_object_load_prog() 7894 * prog->atach_btf_obj_fd/prog->attach_btf_id anymor in bpf_object_load_prog() 502 __u32 attach_btf_id; global() member [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 1574 int attach_btf_id; in do_test_single() local 1576 attach_btf_id = libbpf_find_vmlinux_btf_id(test->kfunc, in do_test_single() 1578 if (attach_btf_id < 0) { in do_test_single() 1585 opts.attach_btf_id = attach_btf_id; in do_test_single()
|
| /linux/net/bpf/ |
| H A D | bpf_dummy_struct_ops.c | 149 if (prog->aux->attach_btf_id != type_id) in bpf_struct_ops_test_run()
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 1632 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ 6728 __u32 attach_btf_id; 1584 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ global() member 6665 __u32 attach_btf_id; global() member
|
| /linux/include/linux/ |
| H A D | bpf.h | 1754 u32 attach_btf_id; /* in-kernel BTF type id to attach to */ 1793 /* BTF_KIND_FUNC_PROTO for valid attach_btf_id */ 1795 /* function name for valid attach_btf_id */ 4126 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype); 4129 static inline void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) {} 1671 u32 attach_btf_id; /* in-kernel BTF type id to attach to */ global() member 3927 bpf_cgroup_atype_get(u32 attach_btf_id,int cgroup_atype) bpf_cgroup_atype_get() argument
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 984 return bpf_lsm_is_sleepable_hook(prog->aux->attach_btf_id); in bpf_btf_printf_prepare() 987 prog->aux->attach_btf_id); in bpf_btf_printf_prepare()
|