| /linux/tools/lib/bpf/ |
| H A D | btf_relocate.c | 416 __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()
|
| H A D | libbpf_probes.c | 230 .str_off = types_len, in libbpf__load_raw_btf()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_split.c | 54 int str_off, i, err; in test_btf_split() 76 str_off = btf__find_str(btf2, "int"); in test_btf_split() 77 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing"); in test_btf_split() 19 int str_off, i, err; test_btf_split() local
|
| H A D | btf_write.c | 15 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 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()
|
| H A D | core_reloc_raw.c | 33 .str_off = offsetof(struct test_btf, strings) - in test_bad_local_id()
|
| H A D | fd_array.c | 34 .str_off = offsetof(struct btf_blob, str) - offsetof(struct btf_blob, types), in new_btf()
|
| H A D | btf.c | 4358 ret_hdr->str_off = type_sec_size; in btf_raw_create() 4422 hdr->str_off = (int)hdr->str_off + test->str_off_delta; in do_test_raw() 6499 const char *str, __u32 str_off, in patch_name_tbd() 6505 const char *next_str = str + str_off; in patch_name_tbd() 8209 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; in do_test_dedup() 8211 expect_strs = expect_btf_data + sizeof(*test_hdr) + expect_hdr->str_off; in do_test_dedup() 6484 patch_name_tbd(const __u32 * raw_u32,const char * str,__u32 str_off,unsigned int str_sec_size,unsigned int * ret_size) patch_name_tbd() argument
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 661 #define str_off(memb) (offsetof(struct statmount, memb) / sizeof(uint32_t)) macro 688 test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root"); in main() 689 test_statmount_string(STATMOUNT_MNT_POINT, str_off(mnt_point), "mount point"); in main() 690 test_statmount_string(STATMOUNT_FS_TYPE, str_off(fs_type), "fs type"); in main() 691 test_statmount_string(all_mask, str_off(mnt_root), "mount root & all"); in main() 692 test_statmount_string(all_mask, str_off(mnt_point), "mount point & all"); in main() 693 test_statmount_string(all_mask, str_off(fs_type), "fs type & all"); in main()
|
| /linux/include/uapi/linux/ |
| H A D | btf.h | 20 __u32 str_off; /* offset of string section */ member
|
| /linux/tools/include/uapi/linux/ |
| H A D | btf.h | 20 __u32 str_off; /* offset of string section */ member
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | syscall.c | 80 .str_off = offsetof(struct btf_blob, str) - offsetof(struct btf_blob, types), in btf_load()
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | sk_storage_map.c | 128 .str_off = sizeof(btf_raw_types), in load_btf()
|