Home
last modified time | relevance | path

Searched refs:vmlinux_btf (Results 1 – 6 of 6) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dbtf_tag.c65 *vmlinux_btf = btf__load_vmlinux_btf(); in load_btfs()
102 btf__free(*vmlinux_btf); in load_btfs()
104 *vmlinux_btf = NULL; in load_btfs()
112 struct btf *vmlinux_btf = NULL, *module_btf = NULL; in test_btf_type_tag_mod_user() local
136 btf__free(vmlinux_btf); in test_btf_type_tag_mod_user()
142 struct btf *vmlinux_btf = NULL; in test_btf_type_tag_vmlinux_user() local
161 btf__free(vmlinux_btf); in test_btf_type_tag_vmlinux_user()
166 struct btf *vmlinux_btf, *module_btf; in test_btf_type_tag_mod_percpu() local
191 btf__free(vmlinux_btf); in test_btf_type_tag_mod_percpu()
197 struct btf *vmlinux_btf = NULL; in test_btf_type_tag_vmlinux_percpu() local
[all …]
A Dbtf_module.c12 struct btf *vmlinux_btf, *module_btf; in test_btf_module() local
20 vmlinux_btf = btf__load_vmlinux_btf(); in test_btf_module()
21 if (!ASSERT_OK_PTR(vmlinux_btf, "could not load vmlinux BTF")) in test_btf_module()
24 module_btf = btf__load_module_btf(module_name, vmlinux_btf); in test_btf_module()
33 btf__free(vmlinux_btf); in test_btf_module()
A Drcu_read_lock.c131 struct btf *vmlinux_btf; in test_rcu_read_lock() local
134 vmlinux_btf = btf__load_vmlinux_btf(); in test_rcu_read_lock()
135 if (!ASSERT_OK_PTR(vmlinux_btf, "could not load vmlinux BTF")) in test_rcu_read_lock()
137 if (btf__find_by_name_kind(vmlinux_btf, "rcu", BTF_KIND_TYPE_TAG) < 0) { in test_rcu_read_lock()
157 btf__free(vmlinux_btf); in test_rcu_read_lock()
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_progs.c996 struct btf *vmlinux_btf; in get_bpf_max_tramp_links() local
999 vmlinux_btf = btf__load_vmlinux_btf(); in get_bpf_max_tramp_links()
1000 if (!ASSERT_OK_PTR(vmlinux_btf, "vmlinux btf")) in get_bpf_max_tramp_links()
1002 ret = get_bpf_max_tramp_links_from(vmlinux_btf); in get_bpf_max_tramp_links()
1003 btf__free(vmlinux_btf); in get_bpf_max_tramp_links()
/linux-6.3-rc2/tools/lib/bpf/
A Dbtf.h118 LIBBPF_API struct btf *btf__load_module_btf(const char *module_name, struct btf *vmlinux_btf);
A Dbtf.c4811 struct btf *btf__load_module_btf(const char *module_name, struct btf *vmlinux_btf) in btf__load_module_btf() argument
4816 return btf__parse_split(path, vmlinux_btf); in btf__load_module_btf()

Completed in 33 milliseconds