Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 17 of 17) sorted by relevance

/tools/power/cpupower/utils/helpers/
A Dmisc.c192 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 Dosunixdir.c95 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 Dlibbpf_probes.c222 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 Dbtf_relocate.c464 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 Dlibbpf_internal.h125 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 Dbtf.c225 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 Disst-display.c9 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 Disst-config.c928 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 Dbtf.h21 __u32 str_len; /* length of string section */ member
/tools/testing/selftests/bpf/prog_tests/
A Dcore_reloc_raw.c35 .str_len = sizeof(raw_btf.strings), in test_bad_local_id()
A Dfd_array.c35 .str_len = sizeof(raw_btf.str), in new_btf()
A Dbtf.c4359 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 Dsyscall.c81 .str_len = sizeof(raw_btf.str), in btf_load()
/tools/hv/
A Dhv_kvp_daemon.c1443 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 Dcs-etm-decoder.c200 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 Dtest_verifier.c748 .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 Dsk_storage_map.c129 .str_len = sizeof(btf_str_sec), in load_btf()

Completed in 52 milliseconds