Home
last modified time | relevance | path

Searched refs:module_btf (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbtf_tag.c54 static int load_btfs(struct btf **vmlinux_btf, struct btf **module_btf, in load_btfs() argument
82 if (!module_btf) in load_btfs()
85 *module_btf = btf__load_module_btf(module_name, *vmlinux_btf); in load_btfs()
86 if (!ASSERT_OK_PTR(*module_btf, "could not load module BTF")) in load_btfs()
90 type_id = btf__find_by_name_kind(*module_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs()
100 btf__free(*module_btf); in load_btfs()
105 if (module_btf) in load_btfs()
106 *module_btf = NULL; in load_btfs()
112 struct btf *vmlinux_btf = NULL, *module_btf = NULL; in test_btf_type_tag_mod_user() local
116 if (load_btfs(&vmlinux_btf, &module_btf, /*needs_vmlinux_tag=*/false)) in test_btf_type_tag_mod_user()
[all …]
Dbtf_module.c12 struct btf *vmlinux_btf, *module_btf; in test_btf_module() local
24 module_btf = btf__load_module_btf(module_name, vmlinux_btf); in test_btf_module()
25 if (!ASSERT_OK_PTR(module_btf, "could not load module BTF")) in test_btf_module()
28 type_id = btf__find_by_name(module_btf, symbol_name); in test_btf_module()
32 btf__free(module_btf); in test_btf_module()
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.c567 struct module_btf { struct
649 struct module_btf *btf_modules;
5375 struct module_btf *mod_btf; in load_module_btfs()
7379 struct module_btf **res_mod_btf) in find_ksym_btf_id()
7381 struct module_btf *mod_btf; in find_ksym_btf_id()
7416 struct module_btf *mod_btf = NULL; in bpf_object__resolve_ksym_var_btf_id()
7468 struct module_btf *mod_btf = NULL; in bpf_object__resolve_ksym_func_btf_id()
9063 const struct module_btf *mod = &obj->btf_modules[i]; in find_kernel_btf_id()