/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_split.c | 19 int str_off, i, err; local 41 str_off = btf__find_str(btf2, "int"); 42 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing");
|
H A D | btf_write.c | 15 int id, err, str_off; local 17 str_off = btf__find_str(btf, "int"); 18 ASSERT_EQ(str_off, -ENOENT, "int_str_missing_off"); 20 str_off = btf__add_str(btf, "int"); 21 ASSERT_EQ(str_off, 1, "int_str_off"); 23 str_off = btf__find_str(btf, "int"); 24 ASSERT_EQ(str_off, 1, "int_str_found_off"); 32 ASSERT_EQ(t->name_off, str_off, "int_name_off");
|
H A D | btf_dedup_split.c | 10 int str_off, err; local 43 str_off = btf__find_str(btf2, "int"); 44 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing");
|
H A D | btf.c | 4309 ret_hdr->str_off = type_sec_size; 4373 hdr->str_off = (int)hdr->str_off + test->str_off_delta; 6450 const char *str, __u32 str_off, 6456 const char *next_str = str + str_off; 8095 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; 8097 expect_strs = expect_btf_data + sizeof(*test_hdr) + expect_hdr->str_off; 6449 patch_name_tbd(const __u32 *raw_u32, const char *str, __u32 str_off, unsigned int str_sec_size, unsigned int *ret_size) argument
|
/linux-master/tools/testing/selftests/filesystems/statmount/ |
H A D | statmount_test.c | 572 #define str_off(memb) (offsetof(struct statmount, memb) / sizeof(uint32_t)) macro 598 test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root"); 599 test_statmount_string(STATMOUNT_MNT_POINT, str_off(mnt_point), "mount point"); 600 test_statmount_string(STATMOUNT_FS_TYPE, str_off(fs_type), "fs type"); 601 test_statmount_string(all_mask, str_off(mnt_root), "mount root & all"); 602 test_statmount_string(all_mask, str_off(mnt_point), "mount point & all"); 603 test_statmount_string(all_mask, str_off(fs_type), "fs type & all");
|
/linux-master/include/uapi/linux/ |
H A D | btf.h | 20 __u32 str_off; /* offset of string section */ member in struct:btf_header
|
/linux-master/tools/include/uapi/linux/ |
H A D | btf.h | 20 __u32 str_off; /* offset of string section */ member in struct:btf_header
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 297 int err, str_off; local 361 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); 362 if (str_off < 0) 363 return str_off; 369 sec->shdr->sh_name = str_off; 400 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); 401 if (str_off < 0) 402 return str_off; 407 sec->shdr->sh_name = str_off; 944 static int check_btf_str_off(__u32 *str_off, voi argument 2457 int rec_sz, str_off, i; local 2754 int str_off; local [all...] |
H A D | btf.c | 216 h->str_off = bswap_32(h->str_off); 250 if (meta_left < (long long)hdr->str_off + hdr->str_len) { 255 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) { 257 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); 451 static int btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id) argument 455 s = btf__str_by_offset(btf, str_off); 457 pr_warn("btf: type [%u]: invalid %s (string offset %u)\n", type_id, what, str_off); 1059 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off; 1731 btf->hdr->str_off 1742 btf_rewrite_str(__u32 *str_off, void *ctx) argument 3476 __u32 str_off = *str_off_ptr; local [all...] |
H A D | libbpf_probes.c | 230 .str_off = types_len,
|
H A D | libbpf_internal.h | 513 typedef int (*str_off_visit_fn)(__u32 *str_off, void *ctx);
|
/linux-master/include/linux/ |
H A D | init.h | 362 #define early_param_on_off(str_on, str_off, var, config) \ 378 early_param(str_off, parse_##var##_off)
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | atom.c | 1402 unsigned long str_off; local 1406 str_off = 0; 1411 for (str_off = 0; str_off < str_len; ++str_off) { 1412 if (str[str_off] != *(p_rom + start + str_off)) 1416 if (str_off == str_len || str[str_off] == 0)
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 79 .str_off = sizeof(__u32) * 8,
|
/linux-master/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 128 .str_off = sizeof(btf_raw_types),
|
/linux-master/arch/sparc/kernel/ |
H A D | ds.c | 419 __u32 str_off; member in struct:dr_cpu_resp_entry
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 751 .str_off = types_len,
|
/linux-master/kernel/bpf/ |
H A D | btf.c | 1579 __btf_verifier_log(log, "str_off: %u\n", hdr->str_off); 5220 start = btf->nohdr_data + hdr->str_off; 5246 offsetof(struct btf_header, str_off),
|