Searched refs:btf__str_by_offset (Results 1 – 14 of 14) sorted by relevance
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 33 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 …]
|
D | libbpf_str.c | 48 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()
|
D | btf_split.c | 48 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()
|
D | libbpf_probes.c | 27 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()
|
D | btf_endian.c | 92 ASSERT_STREQ(btf__str_by_offset(swap_btf, t->name_off), "some_var", "var_name"); in test_btf_endian()
|
D | btf_dedup_split.c | 50 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_split_simple()
|
D | btf.c | 7759 test_str_cur = btf__str_by_offset(test_btf, off); in do_test_dedup()
|
/Linux-v6.1/tools/lib/bpf/ |
D | linker.c | 930 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 …]
|
D | libbpf.map | 234 btf__str_by_offset;
|
D | btf.h | 143 LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
|
D | btf.c | 1315 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()
|
D | libbpf.c | 3053 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/ |
D | btf_helpers.c | 85 return btf__str_by_offset(btf, off) ?: "(invalid)"; in btf_str()
|
/Linux-v6.1/tools/bpf/bpftool/ |
D | gen.c | 224 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()
|