Home
last modified time | relevance | path

Searched refs:btf__str_by_offset (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c33 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "int", "int_name"); in gen_btf()
109 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "s1", "struct_name"); in gen_btf()
115 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f1", "f1_name"); in gen_btf()
120 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f2", "f2_name"); in gen_btf()
141 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "u1", "union_name"); in gen_btf()
147 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f1", "f1_name"); in gen_btf()
164 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "e1", "enum_name"); in gen_btf()
169 ASSERT_STREQ(btf__str_by_offset(btf, v->name_off), "v1", "v1_name"); in gen_btf()
172 ASSERT_STREQ(btf__str_by_offset(btf, v->name_off), "v2", "v2_name"); in gen_btf()
183 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "struct_fwd", "fwd_name"); in gen_btf()
[all …]
Dlibbpf_str.c48 attach_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_bpf_attach_type_str()
93 link_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_bpf_link_type_str()
135 map_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_bpf_map_type_str()
177 prog_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_bpf_prog_type_str()
Dbtf_split.c48 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_btf_split()
64 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "s2", "split_struct_name"); in test_btf_split()
Dlibbpf_probes.c27 const char *prog_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_probe_prog_types()
65 const char *map_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_probe_map_types()
Dbtf_endian.c92 ASSERT_STREQ(btf__str_by_offset(swap_btf, t->name_off), "some_var", "var_name"); in test_btf_endian()
Dbtf_dedup_split.c50 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_split_simple()
Dbtf.c7759 test_str_cur = btf__str_by_offset(test_btf, off); in do_test_dedup()
/Linux-v6.1/tools/lib/bpf/
Dlinker.c930 s = btf__str_by_offset(btf, *str_off); in check_btf_str_off()
1302 n1 = btf__str_by_offset(btf1, t1->name_off); in glob_sym_btf_matches()
1303 n2 = btf__str_by_offset(btf2, t2->name_off); in glob_sym_btf_matches()
1342 n1 = btf__str_by_offset(btf1, t1->name_off); in glob_sym_btf_matches()
1343 n2 = btf__str_by_offset(btf2, t2->name_off); in glob_sym_btf_matches()
1424 n1 = btf__str_by_offset(btf1, m1->name_off); in glob_sym_btf_matches()
1425 n2 = btf__str_by_offset(btf2, m2->name_off); in glob_sym_btf_matches()
1667 name = btf__str_by_offset(obj->btf, t->name_off); in find_glob_sym_btf()
1682 name = btf__str_by_offset(obj->btf, t->name_off); in find_glob_sym_btf()
1771 s = btf__str_by_offset(src_btf, src_p->name_off); in complete_extern_btf_info()
[all …]
Dlibbpf.map234 btf__str_by_offset;
Dbtf.h143 LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
Dbtf.c1315 const char *btf__str_by_offset(const struct btf *btf, __u32 offset) in btf__str_by_offset() function
1318 return btf__str_by_offset(btf->base_btf, offset); in btf__str_by_offset()
1327 return btf__str_by_offset(btf, offset); in btf__name_by_offset()
1574 off = btf__add_str(p->dst, btf__str_by_offset(p->src, *str_off)); in btf_rewrite_str()
3290 s = btf__str_by_offset(d->btf, str_off); in strs_dedup_remap_str_off()
Dlibbpf.c3053 name = btf__str_by_offset(obj->btf, t->name_off); in bpf_object__sanitize_and_load_btf()
5322 local_name = btf__str_by_offset(local_cand->btf, local_t->name_off); in bpf_core_add_cands()
/Linux-v6.1/tools/testing/selftests/bpf/
Dbtf_helpers.c85 return btf__str_by_offset(btf, off) ?: "(invalid)"; in btf_str()
/Linux-v6.1/tools/bpf/bpftool/
Dgen.c224 name = btf__str_by_offset(btf, t->name_off); in find_type_for_map()
2179 name = btf__str_by_offset(info->src_btf, type->name_off); in btfgen_get_btf()
2198 name = btf__str_by_offset(info->src_btf, m->name_off); in btfgen_get_btf()