Home
last modified time | relevance | path

Searched refs:realloc (Results 1 – 25 of 98) sorted by relevance

1234

/linux-6.1.9/tools/perf/util/
Dvalues.c68 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()
Dsymbol-minimal.c152 tmp = realloc(buf, buf_size); in filename__read_build_id()
203 tmp = realloc(buf, buf_size); in filename__read_build_id()
Dhelp-unknown-cmd.c43 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds->names)); in add_cmd_list()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtesting_helpers.c50 tmp = realloc(set, new_len); in parse_num_list()
90 tmp = realloc(tests, sizeof(*tests) * (cnt + 1)); in parse_test_list()
111 tmp_subtests = realloc(tests[cnt].subtests, in parse_test_list()
137 tmp = realloc(set->tests, sizeof(*tests) * (cnt + set->cnt)); in parse_test_list()
/linux-6.1.9/tools/include/tools/
Dlibc_compat.h17 return realloc(ptr, bytes); in reallocarray()
/linux-6.1.9/tools/lib/api/fd/
Darray.c27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow()
32 priv = realloc(fda->priv, psize); in fdarray__grow()
/linux-6.1.9/tools/lib/perf/
Dcpumap.c134 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read()
145 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read()
235 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__new()
Dthreadmap.c23 map = realloc(map, size); in perf_thread_map__realloc()
/linux-6.1.9/tools/lib/thermal/
Dcommands.c51 __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()
/linux-6.1.9/rust/alloc/
Dalloc.rs127 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() function
205 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in grow_impl()
296 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in shrink()
/linux-6.1.9/tools/thermal/thermometer/
Dthermometer.c86 config->tz_regex = realloc(config->tz_regex, sizeof(*config->tz_regex) * in configuration_default_init()
159 config->tz_regex = realloc(config->tz_regex, sizeof(*config->tz_regex) * in configuration_init()
271 thermometer->tz = realloc(thermometer->tz, in thermometer_add_tz()
/linux-6.1.9/tools/testing/memblock/
DTODO9 test cases. Use realloc to adjust the size accordingly.
/linux-6.1.9/tools/lib/traceevent/plugins/
Dplugin_function.c65 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
92 ptr = realloc(fstack, sizeof(*fstack) * (cpu + 1)); in add_and_get_index()
/linux-6.1.9/tools/lib/subcmd/
Dsubcmd-util.h52 void *ret = realloc(ptr, size); in xrealloc()
/linux-6.1.9/arch/s390/tools/
Dgen_facilities.c133 array = realloc(array, (dword + 1) * 8); in print_facility_list()
Dgen_opcode_table.c168 desc->insn = realloc(desc->insn, desc->nr * sizeof(*desc->insn)); in read_instructions()
256 desc->group = realloc(desc->group, desc->nr_groups * sizeof(*desc->group)); in add_to_group()
/linux-6.1.9/tools/perf/tests/
Dperf-record.c18 realloc: in sched__get_first_possible_cpu()
24 goto realloc; in sched__get_first_possible_cpu()
/linux-6.1.9/tools/thermal/lib/
Dmainloop.c65 mds = realloc(mds, sizeof(*mds) * (fd + 1)); in mainloop_add()
/linux-6.1.9/tools/perf/arch/x86/util/
Dmachine.c34 buf = realloc(mi->maps, sz); in add_extra_kernel_map()
/linux-6.1.9/scripts/kconfig/
Dutil.c102 p = realloc(p, size); in xrealloc()
/linux-6.1.9/arch/powerpc/boot/
Dsimple_alloc.c145 platform_ops.realloc = simple_realloc; in simple_alloc_init()
/linux-6.1.9/scripts/dtc/
Dutil.h55 void *new = realloc(p, len); in xrealloc()
/linux-6.1.9/tools/testing/selftests/vm/
Dtranshuge-stress.c99 map = realloc(map, idx + 1); in main()
/linux-6.1.9/tools/virtio/linux/
Dkernel.h92 return realloc(p, s); in krealloc()
/linux-6.1.9/tools/testing/vsock/
Dcontrol.c164 new_buf = realloc(buf, buflen + 80); in control_readln()

1234