Home
last modified time | relevance | path

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

/tools/include/nolibc/sys/
A Dmman.h52 void *sys_mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in sys_mremap() argument
55 new_size, flags, new_address); in sys_mremap()
59 void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in mremap() argument
61 void *ret = sys_mremap(old_address, old_size, new_size, flags, new_address); in mremap()
/tools/bootconfig/
A Dtest-bootconfig.sh57 new_size=$(wc -c < $INITRD)
66 xpass test $new_size -eq $total_size
72 xpass test $new_size -eq $(wc -c < $INITRD)
78 new_size=$(wc -c < $INITRD)
79 xpass test $new_size -eq $initrd_size
/tools/testing/selftests/ublk/
A Dtest_generic_10.sh24 new_size=$(_get_disk_size /dev/ublkb"${dev_id}")
25 if [ "$new_size" != "$size" ]; then
A Dtest_common.sh39 local new_size=$2
46 new_file=$(mktemp ublk_file_"${new_size}"_XXXXX)
47 truncate -s "${new_size}" "${new_file}"
/tools/virtio/linux/
A Dkernel.h118 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) in krealloc_array() argument
122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/tools/include/nolibc/
A Dstdlib.h161 void *realloc(void *old_ptr, size_t new_size) in realloc() argument
168 return malloc(new_size); in realloc()
177 if (user_p_len >= new_size) in realloc()
180 ret = malloc(new_size); in realloc()
/tools/testing/selftests/mm/
A Dvm_util.h130 unsigned long new_size, int flags, void *new_address);
A Dvm_util.c529 unsigned long new_size, int flags, void *new_address) in sys_mremap() argument
532 old_size, new_size, flags, in sys_mremap()
A Dprotection_keys.c613 size_t new_size = new_nr_records * sizeof(struct pkey_malloc_record); in record_pkey_malloc() local
615 dprintf2("new_size: %zd\n", new_size); in record_pkey_malloc()
616 pkey_malloc_records = realloc(pkey_malloc_records, new_size); in record_pkey_malloc()
/tools/testing/selftests/net/forwarding/
A Ddevlink_lib.sh101 local new_size=$1
106 devlink resource set "$DEVLINK_DEV" path "$path" size "$new_size"
/tools/perf/util/
A Dheader.c115 size_t new_size = ff->size; in __do_write_buf() local
121 while (size > (new_size - ff->offset)) in __do_write_buf()
122 new_size <<= 1; in __do_write_buf()
123 new_size = min(max_size, new_size); in __do_write_buf()
125 if (ff->size < new_size) { in __do_write_buf()
126 addr = realloc(ff->buf, new_size); in __do_write_buf()
130 ff->size = new_size; in __do_write_buf()
A Dsymbol.c1367 u64 new_size = map__size(new_map); in dso__load_kcore() local
1378 if (!replacement_map || new_size < replacement_size) { in dso__load_kcore()
1380 replacement_size = new_size; in dso__load_kcore()
/tools/power/x86/turbostat/
A Dturbostat.c1960 void pmt_counter_resize_(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize_() argument
1964 …new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
1971 const size_t num_new_domains = new_size - pcounter->num_domains; in pmt_counter_resize_()
1975 pcounter->num_domains = new_size; in pmt_counter_resize_()
1979 void pmt_counter_resize(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize() argument
1987 if (new_size < 8) in pmt_counter_resize()
1988 new_size = 8; in pmt_counter_resize()
1989 new_size = MAX(new_size, pcounter->num_domains * 2); in pmt_counter_resize()
1991 pmt_counter_resize_(pcounter, new_size); in pmt_counter_resize()

Completed in 46 milliseconds