Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
A Dbtf_relocate.c416 __u32 *str_off; in btf_relocate_rewrite_strs() local
423 while ((str_off = btf_field_iter_next(&it))) { in btf_relocate_rewrite_strs()
424 if (!*str_off) in btf_relocate_rewrite_strs()
426 if (*str_off >= r->dist_str_len) { in btf_relocate_rewrite_strs()
427 *str_off += r->base_str_len - r->dist_str_len; in btf_relocate_rewrite_strs()
429 off = r->str_map[*str_off]; in btf_relocate_rewrite_strs()
432 btf__str_by_offset(r->btf, off), *str_off); in btf_relocate_rewrite_strs()
435 *str_off = off; in btf_relocate_rewrite_strs()
A Dlinker.c297 int err, str_off; in init_output_elf() local
362 if (str_off < 0) in init_output_elf()
363 return str_off; in init_output_elf()
401 if (str_off < 0) in init_output_elf()
402 return str_off; in init_output_elf()
2478 int rec_sz, str_off, i; in linker_append_btf_ext() local
2540 if (str_off < 0) in linker_append_btf_ext()
2546 if (str_off < 0) in linker_append_btf_ext()
2583 if (str_off < 0) in linker_append_btf_ext()
2775 int str_off; in emit_btf_ext_data() local
[all …]
A Dbtf.c219 h->str_off = bswap_32(h->str_off); in btf_bswap_hdr()
1805 *str_off = mapped_off; in btf_rewrite_str()
1822 *str_off = off; in btf_rewrite_str()
1830 __u32 *str_off; in btf_add_type() local
2301 btf->hdr->str_off += sz; in btf__add_field()
2411 btf->hdr->str_off += sz; in btf__add_enum_value()
2483 btf->hdr->str_off += sz; in btf__add_enum64_value()
2705 btf->hdr->str_off += sz; in btf__add_func_param()
3528 __u32 *str_off; in btf_for_each_str_off() local
3535 r = fn(str_off, ctx); in btf_for_each_str_off()
[all …]
A Dlibbpf_probes.c230 .str_off = types_len, in libbpf__load_raw_btf()
A Dlibbpf_internal.h540 typedef int (*str_off_visit_fn)(__u32 *str_off, void *ctx);
/linux/tools/testing/selftests/bpf/prog_tests/
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()
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()
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()
A Dcore_reloc_raw.c33 .str_off = offsetof(struct test_btf, strings) - in test_bad_local_id()
A Dbtf.c4343 ret_hdr->str_off = type_sec_size; in btf_raw_create()
4407 hdr->str_off = (int)hdr->str_off + test->str_off_delta; in do_test_raw()
6484 const char *str, __u32 str_off, in patch_name_tbd() argument
6490 const char *next_str = str + str_off; in patch_name_tbd()
8129 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; in do_test_dedup()
8131 expect_strs = expect_btf_data + sizeof(*test_hdr) + expect_hdr->str_off; in do_test_dedup()
/linux/tools/testing/selftests/filesystems/statmount/
A Dstatmount_test.c642 #define str_off(memb) (offsetof(struct statmount, memb) / sizeof(uint32_t)) macro
669 test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root"); in main()
670 test_statmount_string(STATMOUNT_MNT_POINT, str_off(mnt_point), "mount point"); in main()
671 test_statmount_string(STATMOUNT_FS_TYPE, str_off(fs_type), "fs type"); in main()
672 test_statmount_string(all_mask, str_off(mnt_root), "mount root & all"); in main()
673 test_statmount_string(all_mask, str_off(mnt_point), "mount point & all"); in main()
674 test_statmount_string(all_mask, str_off(fs_type), "fs type & all"); in main()
/linux/drivers/gpu/drm/amd/amdgpu/
A Datom.c1403 unsigned long str_off; in atom_find_str_in_rom() local
1407 str_off = 0; in atom_find_str_in_rom()
1412 for (str_off = 0; str_off < str_len; ++str_off) { in atom_find_str_in_rom()
1413 if (str[str_off] != *(p_rom + start + str_off)) in atom_find_str_in_rom()
1417 if (str_off == str_len || str[str_off] == 0) in atom_find_str_in_rom()
/linux/include/linux/
A Dinit.h362 #define early_param_on_off(str_on, str_off, var, config) \ argument
378 early_param(str_off, parse_##var##_off)
/linux/tools/include/uapi/linux/
A Dbtf.h20 __u32 str_off; /* offset of string section */ member
/linux/include/uapi/linux/
A Dbtf.h20 __u32 str_off; /* offset of string section */ member
/linux/tools/testing/selftests/bpf/progs/
A Dsyscall.c80 .str_off = sizeof(__u32) * 8, in btf_load()
/linux/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c128 .str_off = sizeof(btf_raw_types), in load_btf()
/linux/arch/sparc/kernel/
A Dds.c419 __u32 str_off; member
/linux/tools/testing/selftests/bpf/
A Dtest_verifier.c751 .str_off = types_len, in load_btf_spec()
/linux/Documentation/bpf/
A Dbtf.rst49 __u32 str_off; /* offset of string section */
/linux/kernel/bpf/
A Dbtf.c1583 __btf_verifier_log(log, "str_off: %u\n", hdr->str_off); in btf_verifier_log_hdr()
5357 start = btf->nohdr_data + hdr->str_off; in btf_parse_str_sec()
5383 offsetof(struct btf_header, str_off),

Completed in 87 milliseconds