| /tools/power/cpupower/utils/helpers/ |
| A D | misc.c | 192 int str_len = 0; in print_online_cpus() local 195 str_len = online_cpus->size * 5; in print_online_cpus() 196 online_cpus_str = (void *)malloc(sizeof(char) * str_len); in print_online_cpus() 199 bitmask_displaylist(online_cpus_str, str_len, online_cpus); in print_online_cpus() 210 int str_len = 0; in print_offline_cpus() local 213 str_len = offline_cpus->size * 5; in print_offline_cpus() 214 offline_cpus_str = (void *)malloc(sizeof(char) * str_len); in print_offline_cpus() 217 bitmask_displaylist(offline_cpus_str, str_len, offline_cpus); in print_offline_cpus()
|
| /tools/power/acpi/os_specific/service_layers/ |
| A D | osunixdir.c | 95 int str_len; in acpi_os_get_next_filename() local 106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename() 109 temp_str = calloc(str_len, 1); in acpi_os_get_next_filename()
|
| /tools/lib/bpf/ |
| A D | libbpf_probes.c | 222 const char *str_sec, size_t str_len, in libbpf__load_raw_btf() argument 231 .str_len = str_len, in libbpf__load_raw_btf() 240 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf() 247 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
|
| A D | btf_relocate.c | 464 r.str_map = calloc(btf_header(r.dist_base_btf)->str_len, sizeof(*r.str_map)); in btf_relocate() 467 r.dist_str_len = dist_base_hdr->str_len; in btf_relocate() 468 r.base_str_len = base_hdr->str_len; in btf_relocate()
|
| A D | libbpf_internal.h | 125 size_t str_len = strlen(str); in str_has_sfx() local 128 if (sfx_len > str_len) in str_has_sfx() 130 return strcmp(str + str_len - sfx_len, sfx) == 0; in str_has_sfx() 407 const char *str_sec, size_t str_len,
|
| A D | btf.c | 225 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr() 281 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec() 283 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec() 285 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { in btf_parse_str_sec() 1065 btf->start_str_off = base_btf->hdr->str_len; in btf_new() 1579 memcpy(p, btf_strs_data(btf), hdr->str_len); in btf_get_raw_data() 1580 p += hdr->str_len; in btf_get_raw_data() 1762 if (btf->hdr->str_len == 0) in btf_ensure_modifiable() 1764 if (!btf->base_btf && btf->hdr->str_len == 1) in btf_ensure_modifiable() 1957 old_strs_len = btf->hdr->str_len; in btf__add_btf() [all …]
|
| /tools/power/x86/intel-speed-select/ |
| A D | isst-display.c | 9 static void printcpulist(int str_len, char *str, int mask_size, in printcpulist() argument 15 snprintf(str, str_len, "none"); in printcpulist() 26 str_len - curr_index, ","); in printcpulist() 28 if (curr_index >= str_len) in printcpulist() 31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist() 34 if (curr_index >= str_len) in printcpulist() 40 static void printcpumask(int str_len, char *str, int mask_size, in printcpumask() argument 68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask() 71 if (curr_index >= str_len) in printcpumask() 74 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask() [all …]
|
| A D | isst-config.c | 928 int str_len = sizeof(str); in isolate_cpus() local 968 snprintf(str, str_len, "0"); in isolate_cpus() 981 str_len - curr_index, ","); in isolate_cpus() 983 if (curr_index >= str_len) in isolate_cpus() 986 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in isolate_cpus() 989 if (curr_index >= str_len) in isolate_cpus()
|
| /tools/include/uapi/linux/ |
| A D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | core_reloc_raw.c | 35 .str_len = sizeof(raw_btf.strings), in test_bad_local_id()
|
| A D | fd_array.c | 35 .str_len = sizeof(raw_btf.str), in new_btf()
|
| A D | btf.c | 4359 ret_hdr->str_len = str_sec_size; in btf_raw_create() 4423 hdr->str_len = (int)hdr->str_len + test->str_len_delta; in do_test_raw() 8147 if (CHECK(test_hdr->str_len != expect_hdr->str_len, in do_test_dedup() 8149 test_hdr->str_len, expect_hdr->str_len)) { in do_test_dedup() 8151 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup() 8153 dump_btf_strings(expect_strs, expect_hdr->str_len); in do_test_dedup() 8159 expect_str_end = expect_strs + expect_hdr->str_len; in do_test_dedup()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | syscall.c | 81 .str_len = sizeof(raw_btf.str), in btf_load()
|
| /tools/hv/ |
| A D | hv_kvp_daemon.c | 1443 int str_len; in kvp_set_ip_info() local 1715 str_len = snprintf(cmd, sizeof(cmd), "exec %s %s %s", in kvp_set_ip_info() 1722 if (str_len <= 0 || (unsigned int)str_len >= sizeof(cmd)) { in kvp_set_ip_info() 1724 cmd, str_len); in kvp_set_ip_info()
|
| /tools/perf/util/cs-etm-decoder/ |
| A D | cs-etm-decoder.c | 200 const int str_len) in cs_etm_decoder__print_str_cb() argument 204 if (p_context && str_len && !decoder->suppress_printing) in cs_etm_decoder__print_str_cb()
|
| /tools/testing/selftests/bpf/ |
| A D | test_verifier.c | 748 .str_len = strings_len, in load_btf_spec() 767 memcpy(ptr, strings, hdr.str_len); in load_btf_spec() 768 ptr += hdr.str_len; in load_btf_spec()
|
| /tools/testing/selftests/bpf/map_tests/ |
| A D | sk_storage_map.c | 129 .str_len = sizeof(btf_str_sec), in load_btf()
|