Home
last modified time | relevance | path

Searched refs:str_off (Results 1 – 18 of 18) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_split.c19 int str_off, i, err; in test_btf_split() local
41 str_off = btf__find_str(btf2, "int"); in test_btf_split()
42 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing"); in test_btf_split()
H A Dbtf_write.c15 int id, err, str_off; in gen_btf() local
17 str_off = btf__find_str(btf, "int"); in gen_btf()
18 ASSERT_EQ(str_off, -ENOENT, "int_str_missing_off"); in gen_btf()
20 str_off = btf__add_str(btf, "int"); in gen_btf()
21 ASSERT_EQ(str_off, 1, "int_str_off"); in gen_btf()
23 str_off = btf__find_str(btf, "int"); in gen_btf()
24 ASSERT_EQ(str_off, 1, "int_str_found_off"); in gen_btf()
32 ASSERT_EQ(t->name_off, str_off, "int_name_off"); in gen_btf()
H A Dbtf_dedup_split.c10 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()
H A Dbtf.c4283 ret_hdr->str_off = type_sec_size; in btf_raw_create()
4347 hdr->str_off = (int)hdr->str_off + test->str_off_delta; in do_test_raw()
6421 const char *str, __u32 str_off, in patch_name_tbd() argument
6427 const char *next_str = str + str_off; in patch_name_tbd()
8066 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; in do_test_dedup()
8068 expect_strs = expect_btf_data + sizeof(*test_hdr) + expect_hdr->str_off; in do_test_dedup()
/openbmc/linux/tools/lib/bpf/
H A Dlinker.c297 int err, str_off; in init_output_elf() local
361 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf()
362 if (str_off < 0) in init_output_elf()
363 return str_off; in init_output_elf()
369 sec->shdr->sh_name = str_off; in init_output_elf()
402 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf()
403 if (str_off < 0) in init_output_elf()
404 return str_off; in init_output_elf()
409 sec->shdr->sh_name = str_off; in init_output_elf()
921 static int check_btf_str_off(__u32 *str_off, void *ctx) in check_btf_str_off() argument
[all …]
H A Dbtf.c216 h->str_off = bswap_32(h->str_off); in btf_bswap_hdr()
250 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr()
255 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) { in btf_parse_hdr()
257 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
900 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off; in btf_new()
1560 btf->hdr->str_off += data_sz; in btf_commit_type()
1571 static int btf_rewrite_str(__u32 *str_off, void *ctx) in btf_rewrite_str() argument
1577 if (!*str_off) /* nothing to do for empty strings */ in btf_rewrite_str()
1581 hashmap__find(p->str_off_map, *str_off, &mapped_off)) { in btf_rewrite_str()
1582 *str_off = mapped_off; in btf_rewrite_str()
[all …]
H A Dlibbpf_probes.c229 .str_off = types_len, in libbpf__load_raw_btf()
H A Dlibbpf_internal.h491 typedef int (*str_off_visit_fn)(__u32 *str_off, void *ctx);
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Datom.c1384 unsigned long str_off; in atom_find_str_in_rom() local
1388 str_off = 0; in atom_find_str_in_rom()
1393 for (str_off = 0; str_off < str_len; ++str_off) { in atom_find_str_in_rom()
1394 if (str[str_off] != *(p_rom + start + str_off)) in atom_find_str_in_rom()
1398 if (str_off == str_len || str[str_off] == 0) in atom_find_str_in_rom()
/openbmc/linux/include/linux/
H A Dinit.h363 #define early_param_on_off(str_on, str_off, var, config) \ argument
379 early_param(str_off, parse_##var##_off)
/openbmc/linux/include/uapi/linux/
H A Dbtf.h20 __u32 str_off; /* offset of string section */ member
/openbmc/linux/tools/include/uapi/linux/
H A Dbtf.h20 __u32 str_off; /* offset of string section */ member
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c42 .str_off = sizeof(__u32) * 8, in btf_load()
/openbmc/linux/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c128 .str_off = sizeof(btf_raw_types), in load_btf()
/openbmc/linux/arch/sparc/kernel/
H A Dds.c419 __u32 str_off; member
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c749 .str_off = types_len, in load_btf_spec()
/openbmc/linux/kernel/bpf/
H A Dbtf.c1557 __btf_verifier_log(log, "str_off: %u\n", hdr->str_off); in btf_verifier_log_hdr()
5152 start = btf->nohdr_data + hdr->str_off; in btf_parse_str_sec()
5178 offsetof(struct btf_header, str_off),
/openbmc/linux/Documentation/bpf/
H A Dbtf.rst49 __u32 str_off; /* offset of string section */