Searched refs:mod_btf (Results 1 – 3 of 3) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | module_fentry_shadow.c | 58 struct btf *vmlinux_btf = NULL, *mod_btf = NULL; in test_module_fentry_shadow() local 87 mod_btf = btf_get_from_fd(btf_fd[1], vmlinux_btf); in test_module_fentry_shadow() 88 if (!ASSERT_OK_PTR(mod_btf, "btf_get_from_fd")) in test_module_fentry_shadow() 95 btf_id[1] = btf__find_by_name_kind(mod_btf, symbol_name, BTF_KIND_FUNC); in test_module_fentry_shadow() 125 btf__free(mod_btf); in test_module_fentry_shadow()
|
/linux/tools/lib/bpf/ |
H A D | libbpf.c | 998 &btf, mod_btf); in find_struct_ops_kern_types() 1134 kern_btf = mod_btf ? mod_btf->btf : obj->btf_vmlinux; in bpf_map__init_kern_struct_ops() 1139 map->mod_btf_fd = mod_btf ? mod_btf->fd : -1; in bpf_map__init_kern_struct_ops() 1254 if (mod_btf) in bpf_map__init_kern_struct_ops() 8159 mod_btf = NULL; in find_ksym_btf_id() 8229 ext->ksym.kernel_btf_obj_fd = mod_btf ? mod_btf->fd : 0; in bpf_object__resolve_ksym_var_btf_id() 8269 mod_btf ? mod_btf->name : "vmlinux", kfunc_proto_id); in bpf_object__resolve_ksym_func_btf_id() 8274 if (mod_btf && !mod_btf->fd_array_idx) { in bpf_object__resolve_ksym_func_btf_id() 8296 ext->ksym.btf_fd_idx = mod_btf ? mod_btf->fd_array_idx : 0; in bpf_object__resolve_ksym_func_btf_id() 8302 ext->ksym.kernel_btf_obj_fd = mod_btf ? mod_btf->fd : 0; in bpf_object__resolve_ksym_func_btf_id() [all …]
|
/linux/kernel/bpf/ |
H A D | btf.c | 8869 struct btf *mod_btf; in bpf_core_find_cands() local 8926 idr_for_each_entry(&btf_idr, mod_btf, id) { in bpf_core_find_cands() 8927 if (!btf_is_module(mod_btf)) in bpf_core_find_cands() 8932 btf_get(mod_btf); in bpf_core_find_cands() 8934 cands = bpf_core_add_cands(cands, mod_btf, btf_nr_types(main_btf)); in bpf_core_find_cands() 8935 btf_put(mod_btf); in bpf_core_find_cands()
|