/linux-6.3-rc2/kernel/bpf/ |
A D | bpf_lsm.c | 79 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() 235 prog->aux->attach_btf_id)) in bpf_lsm_func_proto() 238 prog->aux->attach_btf_id)) in bpf_lsm_func_proto() 245 prog->aux->attach_btf_id)) in bpf_lsm_func_proto() 248 prog->aux->attach_btf_id)) in bpf_lsm_func_proto() 367 return !btf_id_set_contains(&untrusted_lsm_hooks, prog->aux->attach_btf_id); in bpf_lsm_is_trusted()
|
A D | cgroup.c | 131 u32 attach_btf_id; member 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() 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() 956 u32 attach_btf_id = 0; in __cgroup_bpf_detach() local 960 attach_btf_id = prog->aux->attach_btf_id; in __cgroup_bpf_detach() 962 attach_btf_id = link->link.prog->aux->attach_btf_id; in __cgroup_bpf_detach() [all …]
|
A D | bpf_iter.c | 336 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()
|
A D | trampoline.c | 670 p->aux->attach_btf_id = prog->aux->attach_btf_id; in cgroup_shim_alloc() 678 bpf_cgroup_atype_get(p->aux->attach_btf_id, cgroup_atype); in cgroup_shim_alloc() 712 prog->aux->attach_btf_id, in bpf_trampoline_link_cgroup_shim() 718 prog->aux->attach_btf_id); in bpf_trampoline_link_cgroup_shim() 775 prog->aux->attach_btf_id); in bpf_trampoline_unlink_cgroup_shim()
|
A D | syscall.c | 2549 } else if (attr->attach_btf_id) { in bpf_prog_load() 2561 attach_btf, attr->attach_btf_id, in bpf_prog_load() 2582 prog->aux->attach_btf_id = attr->attach_btf_id; in bpf_prog_load() 3081 btf_id = prog->aux->attach_btf_id; in bpf_tracing_prog_attach() 4128 info.attach_btf_id = prog->aux->attach_btf_id; in bpf_prog_get_info_by_fd()
|
A D | bpf_struct_ops.c | 464 prog->aux->attach_btf_id != st_ops->type_id || in bpf_struct_ops_map_update_elem()
|
A D | verifier.c | 12931 if (!env->prog->aux->attach_btf_id) in check_return_code() 17197 btf_id = prog->aux->attach_btf_id; in check_struct_ops_btf_id() 17555 u32 btf_id = prog->aux->attach_btf_id; in check_attach_btf_id()
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | cgroup.c | 123 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog() 125 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in show_bpf_prog() 145 jsonw_uint_field(json_wtr, "attach_btf_id", info.attach_btf_id); in show_bpf_prog() 159 else if (info.attach_btf_id) in show_bpf_prog() 161 info.attach_btf_obj_id, info.attach_btf_id); in show_bpf_prog()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | fexit_bpf2bpf.c | 437 static int load_fentry(int attach_prog_fd, int attach_btf_id) in load_fentry() argument 442 .attach_btf_id = attach_btf_id, in load_fentry() 494 ASSERT_EQ(info.attach_btf_id, btf_id, "info.attach_btf_id"); in test_fentry_to_cgroup_bpf()
|
A D | fexit_stress.c | 34 trace_opts.attach_btf_id = err; in serial_test_fexit_stress()
|
A D | lsm_cgroup.c | 54 if (info.attach_btf_id == in query_prog_cnt()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | libbpf_probes.c | 141 opts.attach_btf_id = 1; in probe_prog_load() 150 opts.attach_btf_id = 1; in probe_prog_load()
|
A D | bpf.h | 79 __u32 attach_btf_id; member
|
A D | gen_loader.c | 951 attr.attach_btf_id = load_attr->attach_btf_id; in bpf_gen__prog_load() 1009 offsetof(union bpf_attr, attach_btf_id))); in bpf_gen__prog_load()
|
A D | bpf.c | 281 attr.attach_btf_id = OPTS_GET(opts, attach_btf_id, 0); in bpf_prog_load()
|
A D | libbpf.c | 429 __u32 attach_btf_id; member 1070 prog->attach_btf_id = kern_type_id; in bpf_map__init_kern_struct_ops() 6694 if ((def & SEC_ATTACH_BTF) && !prog->attach_btf_id) { in libbpf_prepare_prog_load() 6721 prog->attach_btf_id = btf_type_id; in libbpf_prepare_prog_load() 6729 opts->attach_btf_id = btf_type_id; in libbpf_prepare_prog_load() 6767 load_attr.attach_btf_id = prog->attach_btf_id; in bpf_object_load_prog() 8926 if (!prog->attach_btf_id) { in bpf_object__collect_st_ops_relos() 8927 prog->attach_btf_id = st_ops->type_id; in bpf_object__collect_st_ops_relos() 8935 if (prog->attach_btf_id != st_ops->type_id || in bpf_object__collect_st_ops_relos() 8939 prog->attach_btf_id, prog->expected_attach_type, name); in bpf_object__collect_st_ops_relos() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_verifier.c | 1503 int attach_btf_id; in do_test_single() local 1505 attach_btf_id = libbpf_find_vmlinux_btf_id(test->kfunc, in do_test_single() 1507 if (attach_btf_id < 0) { in do_test_single() 1514 opts.attach_btf_id = attach_btf_id; in do_test_single()
|
/linux-6.3-rc2/net/bpf/ |
A D | bpf_dummy_struct_ops.c | 90 if (prog->aux->attach_btf_id != st_ops->type_id) in bpf_struct_ops_test_run()
|
/linux-6.3-rc2/Documentation/bpf/ |
A D | drgn.rst | 136 .attach_btf_id = (u32)0,
|
/linux-6.3-rc2/drivers/hid/bpf/ |
A D | hid_bpf_jmp_table.c | 347 if (hid_bpf_btf_ids[i] == prog->aux->attach_btf_id) { in hid_bpf_get_prog_attach_type()
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | bpf.h | 1395 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member 6282 __u32 attach_btf_id; member
|
/linux-6.3-rc2/tools/include/uapi/linux/ |
A D | bpf.h | 1395 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member 6282 __u32 attach_btf_id; member
|
/linux-6.3-rc2/include/linux/ |
A D | bpf.h | 1294 u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member 2947 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype); 2950 static inline void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) {} in bpf_cgroup_atype_get() argument
|
/linux-6.3-rc2/net/core/ |
A D | bpf_sk_storage.c | 381 btf_id = prog->aux->attach_btf_id; in bpf_sk_storage_tracing_allowed()
|
/linux-6.3-rc2/kernel/trace/ |
A D | bpf_trace.c | 943 return bpf_lsm_is_sleepable_hook(prog->aux->attach_btf_id); in BTF_ID() 946 prog->aux->attach_btf_id); in BTF_ID()
|