Searched refs:str_off (Results 1 – 12 of 12) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | btf_split.c | 20 int str_off, i, err; in test_btf_split() local 42 str_off = btf__find_str(btf2, "int"); in test_btf_split() 43 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing"); in test_btf_split()
|
D | btf_write.c | 14 int id, err, str_off; in test_btf_write() local 20 str_off = btf__find_str(btf, "int"); in test_btf_write() 21 ASSERT_EQ(str_off, -ENOENT, "int_str_missing_off"); in test_btf_write() 23 str_off = btf__add_str(btf, "int"); in test_btf_write() 24 ASSERT_EQ(str_off, 1, "int_str_off"); in test_btf_write() 26 str_off = btf__find_str(btf, "int"); in test_btf_write() 27 ASSERT_EQ(str_off, 1, "int_str_found_off"); in test_btf_write() 35 ASSERT_EQ(t->name_off, str_off, "int_name_off"); in test_btf_write()
|
D | btf_dedup_split.c | 10 int str_off, err; in test_split_simple() local 43 str_off = btf__find_str(btf2, "int"); in test_split_simple() 44 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing"); in test_split_simple()
|
D | btf.c | 3789 ret_hdr->str_off = type_sec_size; in btf_raw_create() 3833 hdr->str_off = (int)hdr->str_off + test->str_off_delta; in do_test_raw() 5934 const char *str, __u32 str_off, in patch_name_tbd() argument 5940 const char *next_str = str + str_off; in patch_name_tbd() 6913 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; in do_test_dedup() 6915 expect_strs = expect_btf_data + sizeof(*test_hdr) + expect_hdr->str_off; in do_test_dedup()
|
/tools/lib/bpf/ |
D | linker.c | 298 int err, str_off; in init_output_elf() local 362 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf() 363 if (str_off < 0) in init_output_elf() 364 return str_off; in init_output_elf() 370 sec->shdr->sh_name = str_off; in init_output_elf() 401 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf() 402 if (str_off < 0) in init_output_elf() 403 return str_off; in init_output_elf() 408 sec->shdr->sh_name = str_off; in init_output_elf() 931 static int check_btf_str_off(__u32 *str_off, void *ctx) in check_btf_str_off() argument [all …]
|
D | btf.c | 211 h->str_off = bswap_32(h->str_off); in btf_bswap_hdr() 245 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr() 250 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) { in btf_parse_hdr() 252 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr() 847 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off; in btf_new() 1654 btf->hdr->str_off += data_sz; in btf_commit_type() 1664 static int btf_rewrite_str(__u32 *str_off, void *ctx) in btf_rewrite_str() argument 1669 if (!*str_off) /* nothing to do for empty strings */ in btf_rewrite_str() 1672 off = btf__add_str(p->dst, btf__str_by_offset(p->src, *str_off)); in btf_rewrite_str() 1676 *str_off = off; in btf_rewrite_str() [all …]
|
D | libbpf_probes.c | 154 .str_off = types_len, in libbpf__load_raw_btf()
|
D | libbpf_internal.h | 384 typedef int (*str_off_visit_fn)(__u32 *str_off, void *ctx);
|
/tools/include/uapi/linux/ |
D | btf.h | 20 __u32 str_off; /* offset of string section */ member
|
/tools/testing/selftests/bpf/progs/ |
D | syscall.c | 42 .str_off = sizeof(__u32) * 8, in btf_load()
|
/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 132 .str_off = sizeof(btf_raw_types), in load_btf()
|
/tools/testing/selftests/bpf/ |
D | test_verifier.c | 631 .str_off = sizeof(btf_raw_types), in load_btf()
|