/kernel/liteos_m/testsuites/unittest/posix/src/string/ |
H A D | memory_func_test.c | 257 * @tc.name : Memony operation for realloc test 263 source = (char *)realloc(source, 0); 279 char *mem1 = realloc(mem, rlen); 303 * @tc.name : Memony operation for realloc test 310 char *newData = (char *)realloc(source, 40); 323 void *reMem = realloc(mem, large); 336 * @tc.name : Memony operation for realloc test 343 retValue = (char *)realloc(retValue, 20); 350 * @tc.name : Memony operation for realloc test 357 char *newData = (char *)realloc(sourc [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | values.c | 68 void *npid = realloc(values->pid, nthreads_max * sizeof(*values->pid)), in perf_read_values__enlarge_threads() 69 *ntid = realloc(values->tid, nthreads_max * sizeof(*values->tid)), in perf_read_values__enlarge_threads() 70 *nvalue = realloc(values->value, nthreads_max * sizeof(*values->value)); in perf_read_values__enlarge_threads() 121 u64 *counterrawid = realloc(values->counterrawid, counters_max * sizeof(*values->counterrawid)); in perf_read_values__enlarge_counters() 128 countername = realloc(values->countername, counters_max * sizeof(*values->countername)); in perf_read_values__enlarge_counters() 135 u64 *value = realloc(values->value[i], counters_max * sizeof(**values->value)); in perf_read_values__enlarge_counters()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | values.c | 68 void *npid = realloc(values->pid, nthreads_max * sizeof(*values->pid)), in perf_read_values__enlarge_threads() 69 *ntid = realloc(values->tid, nthreads_max * sizeof(*values->tid)), in perf_read_values__enlarge_threads() 70 *nvalue = realloc(values->value, nthreads_max * sizeof(*values->value)); in perf_read_values__enlarge_threads() 121 u64 *counterrawid = realloc(values->counterrawid, counters_max * sizeof(*values->counterrawid)); in perf_read_values__enlarge_counters() 128 countername = realloc(values->countername, counters_max * sizeof(*values->countername)); in perf_read_values__enlarge_counters() 135 u64 *value = realloc(values->value[i], counters_max * sizeof(**values->value)); in perf_read_values__enlarge_counters()
|
/kernel/linux/linux-5.10/tools/lib/api/fd/ |
H A D | array.c | 27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() 32 priv = realloc(fda->priv, psize); in fdarray__grow()
|
/kernel/linux/linux-6.6/tools/lib/api/ |
H A D | io.h | 162 temp = realloc(line, line_len + sizeof(buf)); in io__getline() 172 temp = realloc(line, line_len + buf_pos + 1); in io__getline()
|
/kernel/linux/linux-5.10/tools/include/tools/ |
H A D | libc_compat.h | 17 return realloc(ptr, bytes); in reallocarray()
|
/kernel/linux/linux-6.6/tools/include/tools/ |
H A D | libc_compat.h | 17 return realloc(ptr, bytes); in reallocarray()
|
/kernel/linux/linux-6.6/tools/lib/api/fd/ |
H A D | array.c | 27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() 32 priv = realloc(fda->priv, psize); in fdarray__grow()
|
/kernel/linux/linux-5.10/tools/lib/perf/ |
H A D | cpumap.c | 122 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read() 133 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read() 223 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__new() 294 * with no reference count change (similar to "realloc")
|
H A D | threadmap.c | 23 map = realloc(map, size); in perf_thread_map__realloc() 25 * We only realloc to add more items, let's reset new items. in perf_thread_map__realloc()
|
/kernel/linux/linux-6.6/tools/lib/thermal/ |
H A D | commands.c | 51 __tz = realloc(__tz, sizeof(*__tz) * (size + 2)); in parse_tz_get() 85 __cdev = realloc(__cdev, sizeof(*__cdev) * (size + 2)); in parse_cdev_get() 125 __tt = realloc(__tt, sizeof(*__tt) * (size + 2)); in parse_tz_get_trip()
|
/kernel/linux/linux-6.6/rust/alloc/ |
H A D | alloc.rs | 27 // like `malloc`, `realloc`, and `free`, respectively. 124 /// This function forwards calls to the [`GlobalAlloc::realloc`] method 128 /// This function is expected to be deprecated in favor of the `realloc` method 133 /// See [`GlobalAlloc::realloc`]. 137 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() functions 212 // `realloc` probably checks for `new_size >= old_layout.size()` or something similar. in grow_impl() 215 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in grow_impl() 303 // `realloc` probably checks for `new_size <= old_layout.size()` or something similar. in shrink() 306 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in shrink()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | testing_helpers.c | 52 tmp = realloc(set, new_len); in parse_num_list() 92 tmp = realloc(set->tests, sizeof(*test) * (set->cnt + 1)); in do_insert_test() 116 ctmp = realloc(test->subtests, in do_insert_test()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdlib/ |
H A D | realloc_fuzz.c | 52 printf("Fuzz test in line [%d] realloc start\n", __LINE__); in ReallocFuzzTest() 73 buf = (char *)realloc(source, c); in ReallocFuzzTest() 88 printf("Fuzz test in line [%d] realloc ok\n", __LINE__); in ReallocFuzzTest()
|
/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/ |
H A D | plugin_function.c | 65 ptr = realloc(stack->stack, sizeof(char *) * in add_child() 92 ptr = realloc(fstack, sizeof(*fstack) * (cpu + 1)); in add_and_get_index()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | perf-record.c | 20 realloc: in sched__get_first_possible_cpu() 26 goto realloc; in sched__get_first_possible_cpu()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | perf-record.c | 20 realloc: in sched__get_first_possible_cpu() 26 goto realloc; in sched__get_first_possible_cpu()
|
/kernel/linux/linux-5.10/arch/s390/tools/ |
H A D | gen_facilities.c | 136 array = realloc(array, (dword + 1) * 8); in print_facility_list()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | testing_helpers.c | 45 tmp = realloc(set, new_len); in parse_num_list()
|
/kernel/linux/linux-6.6/arch/s390/tools/ |
H A D | gen_facilities.c | 133 array = realloc(array, (dword + 1) * 8); in print_facility_list()
|
/kernel/linux/linux-5.10/tools/lib/subcmd/ |
H A D | subcmd-util.h | 52 void *ret = realloc(ptr, size); in xrealloc() 54 die("Out of memory, realloc failed"); in xrealloc()
|
/kernel/linux/linux-6.6/tools/lib/subcmd/ |
H A D | subcmd-util.h | 51 void *ret = realloc(ptr, size); in xrealloc() 53 die("Out of memory, realloc failed"); in xrealloc()
|
/kernel/linux/linux-6.6/rust/kernel/ |
H A D | allocator.rs | 55 unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() functions
|
/kernel/liteos_a/compat/posix/src/ |
H A D | malloc.c | 61 * realloc. The argument ptr points to the space that was previously allocated. 63 * or realloc, or is a space that has been deallocated, then the result is undefined. 132 void *realloc(void *ptr, size_t size) in realloc() function
|
/kernel/linux/linux-6.6/tools/thermal/lib/ |
H A D | mainloop.c | 65 mds = realloc(mds, sizeof(*mds) * (fd + 1)); in mainloop_add()
|