Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 4 of 4) sorted by relevance

/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh86 local new_size=$1
91 devlink resource set "$DEVLINK_DEV" path "$path" size "$new_size"
/tools/testing/selftests/x86/
Dprotection_keys.c700 size_t new_size = new_nr_records * sizeof(struct pkey_malloc_record); in record_pkey_malloc() local
702 dprintf2("new_size: %zd\n", new_size); in record_pkey_malloc()
703 pkey_malloc_records = realloc(pkey_malloc_records, new_size); in record_pkey_malloc()
/tools/perf/util/
Dheader.c103 size_t new_size = ff->size; in __do_write_buf() local
109 while (size > (new_size - ff->offset)) in __do_write_buf()
110 new_size <<= 1; in __do_write_buf()
111 new_size = min(max_size, new_size); in __do_write_buf()
113 if (ff->size < new_size) { in __do_write_buf()
114 addr = realloc(ff->buf, new_size); in __do_write_buf()
118 ff->size = new_size; in __do_write_buf()
/tools/lib/bpf/
Dbtf.c48 __u32 expand_by, new_size; in btf_add_type() local
54 new_size = min(BTF_MAX_NR_TYPES, btf->types_size + expand_by); in btf_add_type()
56 new_types = realloc(btf->types, sizeof(*new_types) * new_size); in btf_add_type()
64 btf->types_size = new_size; in btf_add_type()