Searched refs:module_btf (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_tag.c | 54 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 …]
|
| H A D | btf_module.c | 12 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/tools/lib/bpf/ |
| H A D | libbpf.c | 656 struct module_btf { struct 750 struct module_btf *btf_modules; 1039 struct module_btf **res_mod_btf); 1047 struct module_btf **mod_btf, in find_struct_ops_kern_types() 1182 struct module_btf *mod_btf = NULL; in bpf_map__init_kern_struct_ops() 5857 struct module_btf *mod_btf; in load_module_btfs() 7825 static const struct module_btf *find_attach_module(struct bpf_object *obj, const char *attach) in find_attach_module() 7848 const struct module_btf *mod = &obj->btf_modules[i]; in find_attach_module() 7859 const struct module_btf *mod; in tracing_multi_mod_fd() 8716 struct module_btf **res_mod_btf) in find_ksym_btf_id() [all …]
|