Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/util/
Dwrapper.c29 void *ret = realloc(ptr, size); in xrealloc()
31 ret = realloc(ptr, 1); in xrealloc()
34 ret = realloc(ptr, size); in xrealloc()
36 ret = realloc(ptr, 1); in xrealloc()
Dvalues.c47 values->pid = realloc(values->pid, in perf_read_values__enlarge_threads()
49 values->tid = realloc(values->tid, in perf_read_values__enlarge_threads()
51 values->value = realloc(values->value, in perf_read_values__enlarge_threads()
84 values->counterrawid = realloc(values->counterrawid, in perf_read_values__enlarge_counters()
86 values->countername = realloc(values->countername, in perf_read_values__enlarge_counters()
92 values->value[i] = realloc(values->value[i], in perf_read_values__enlarge_counters()
Dcpumap.c66 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in cpu_map__read()
77 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in cpu_map__read()
159 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in cpu_map__new()
Dalias.c44 *argv = realloc(*argv, sizeof(char*) * size); in split_cmdline()
Dsymbol-minimal.c145 tmp = realloc(buf, buf_size); in filename__read_build_id()
196 tmp = realloc(buf, buf_size); in filename__read_build_id()
Dllvm-utils.c118 new_buf = realloc(buf, buf_sz); in read_from_pipe()
Dthread_map.c38 map = realloc(map, size); in thread_map__realloc()
Dutil.c555 nbf = realloc(bf, alloc_size); in filename__read_str()
Dthread-stack.c116 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
Dauxtrace.c423 heap_array = realloc(heap->heap_array, in auxtrace_heap__add()
Dsession.c1461 void *new = realloc(buf, size); in __perf_session__process_pipe_events()
/linux-4.4.14/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-4.4.14/tools/lib/traceevent/
Dplugin_function.c71 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
98 ptr = realloc(fstack, sizeof(*fstack) * (cpu + 1)); in add_and_get_index()
Dtrace-seq.c99 buf = realloc(s->buffer, s->buffer_size + TRACE_SEQ_BUF_SIZE); in expand_buffer()
Devent-plugin.c129 list = realloc(list, count + 2); in traceevent_plugin_list_options()
Devent-parse.c263 cmdlines = realloc(cmdlines, sizeof(*cmdlines) * (pevent->cmdline_count + 1)); in add_new_comm()
759 struct event_format **events = realloc(pevent->events, sizeof(event) * in add_event()
923 char *newtok = realloc(*tok, size); in extend_token()
1432 new_type = realloc(field->type, in event_read_fields()
1484 new_brackets = realloc(brackets, in event_read_fields()
1507 new_brackets = realloc(brackets, strlen(brackets) + 2); in event_read_fields()
1524 new_type = realloc(field->type, in event_read_fields()
1542 new_type = realloc(field->type, in event_read_fields()
1992 new_atom = realloc(left->atom.atom, in process_op()
3065 new_atom = realloc(atom, in process_arg_token()
Dparse-filter.c144 filter_type = realloc(filter->event_filters, in add_filter_type()
1636 new_ids = realloc(ids, sizeof(*ids) * (count + 1)); in pevent_filter_clear_trivial()
/linux-4.4.14/tools/perf/tests/
Dperf-record.c11 realloc: in sched__get_first_possible_cpu()
17 goto realloc; in sched__get_first_possible_cpu()
Dswitch-tracking.c100 addr = realloc(switch_tracking->tids, nr * sizeof(pid_t)); in check_cpu()
/linux-4.4.14/scripts/
Ddocproc.c157 realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *)); in add_new_symbol()
398 data = realloc(data, data_len + 4096); in find_all_symbols()
422 all_list = realloc(all_list, sizeof(char *) * all_list_len); in find_all_symbols()
Drecordmcount.c145 file_append = realloc(file_append, aoffset); in uwrite()
Dkallsyms.c273 table = realloc(table, sizeof(*table) * table_size); in read_map()
/linux-4.4.14/scripts/dtc/
Dutil.h53 void *new = realloc(p, len); in xrealloc()
Dfdtput.c99 value = realloc(value, value_size); in encode_value()
Ddtc-lexer.lex.c_shipped217 * and can realloc() it to grow it, and should free() it to
1872 * immediate realloc on the next call.
2188 return (void *) realloc( (char *) ptr, size );
/linux-4.4.14/drivers/pci/
DKconfig44 re-allocation needs to be enabled. You can always use pci=realloc=on
45 or pci=realloc=off to override it. Note this feature is a no-op
/linux-4.4.14/arch/powerpc/boot/
Dsimple_alloc.c147 platform_ops.realloc = simple_realloc; in simple_alloc_init()
Dlibfdt-wrapper.c65 buf = platform_ops.realloc(buf, size); in expand_buf()
Dops.h30 void * (*realloc)(void *ptr, unsigned long size); member
/linux-4.4.14/tools/virtio/linux/
Dkernel.h68 return realloc(p, s); in krealloc()
/linux-4.4.14/scripts/kconfig/
Dutil.c107 gs->s = realloc(gs->s, l); in str_append()
Dzconf.l55 text = realloc(text, new_size); in append_string()
Dnconf.gui.c375 *resultp = result = realloc(result, *result_len); in dialog_inputbox()
481 *resultp = result = realloc(result, in dialog_inputbox()
Dzconf.lex.c842 text = realloc(text, new_size); in append_string()
2344 return (void *) realloc( (char *) ptr, size ); in zconfrealloc()
Dsymbol.c903 res = realloc(res, reslen); in sym_expand_string_value()
1015 tmp = realloc(sym_match_arr, size * sizeof(struct sym_match)); in sym_re_search()
Dzconf.lex.c_shipped234 * and can realloc() it to grow it, and should free() it to
842 text = realloc(text, new_size);
2028 * immediate realloc on the next call.
2344 return (void *) realloc( (char *) ptr, size );
Dconfdata.c204 nline = realloc(*lineptr, new_size); in add_byte()
/linux-4.4.14/tools/testing/selftests/vm/
Dtranshuge-stress.c121 map = realloc(map, idx + 1); in main()
/linux-4.4.14/tools/power/cpupower/bench/
Dparse.c87 filename = realloc(filename, sizeof(char) * len); in prepare_output()
/linux-4.4.14/tools/usb/usbip/libsrc/
Dusbip_host_driver.c95 edev = realloc(edev, size); in usbip_exported_device_new()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_inode_fork.c1645 int realloc) /* new bytes were just added */ in xfs_iext_idx_to_irec() argument
1658 ASSERT(page_idx < ifp->if_bytes / sizeof(xfs_bmbt_rec_t) || realloc); in xfs_iext_idx_to_irec()
1671 realloc && prev && prev->er_extcount < XFS_LINEAR_EXTS)) { in xfs_iext_idx_to_irec()
1675 !realloc)) { in xfs_iext_idx_to_irec()
1679 ASSERT(realloc); in xfs_iext_idx_to_irec()
/linux-4.4.14/include/linux/
Dirqdomain.h359 bool realloc);
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c209 record = realloc(record, alloc_unit * num_blocks); in kvp_update_mem_state()
287 record = realloc(record, alloc_unit * in kvp_file_init()
390 record = realloc(record, sizeof(struct kvp_record) * in kvp_key_add_or_modify()
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
Dvxge-config.h1912 realloc: in vxge_os_dma_malloc()
1928 goto realloc; in vxge_os_dma_malloc()
/linux-4.4.14/tools/lib/bpf/
Dlibbpf.c285 progs = realloc(progs, sizeof(progs[0]) * (nr_progs + 1)); in bpf_object__add_program()
571 reloc = realloc(reloc, in bpf_object__elf_collect()
/linux-4.4.14/tools/perf/
Dperf.c339 new_argv = realloc(new_argv, sizeof(char *) * in handle_alias()
Dbuiltin-kmem.c342 func = realloc(alloc_func_list, in build_alloc_func_list()
664 new = realloc(new_flags, len + strlen(cpt) + 2); in compact_gfp_flags()
735 new = realloc(gfps, (nr_gfps + 1) * sizeof(*gfps)); in parse_gfp_flags()
Dbuiltin-sched.c253 task->atoms = realloc(task->atoms, size); in get_new_event()
341 BUG_ON((sched->pid_to_task = realloc(sched->pid_to_task, (pid + 1) * in register_pid()
364 sched->tasks = realloc(sched->tasks, sched->nr_tasks * sizeof(struct task_desc *)); in register_pid()
Dbuiltin-trace.c1458 char **npath = realloc(ttrace->paths.table, (fd + 1) * sizeof(char *)); in trace__set_fd_pathname()
1693 struct syscall *nsyscalls = realloc(trace->syscalls.table, (id + 1) * sizeof(*sc)); in trace__read_syscall_info()
2114 char *f = realloc(ttrace->filename.name, filename_len + 1); in trace__vfs_getname()
Dbuiltin-kvm.c167 event->vcpu = realloc(event->vcpu, in kvm_event_expand()
/linux-4.4.14/kernel/irq/
Dirqdomain.c1171 bool realloc) in __irq_domain_alloc_irqs() argument
1186 if (realloc && irq_base >= 0) { in __irq_domain_alloc_irqs()
/linux-4.4.14/arch/x86/tools/
Drelocs.c634 void *mem = realloc(r->offset, newsize * sizeof(r->offset[0])); in add_reloc()
/linux-4.4.14/scripts/genksyms/
Dlex.lex.c_shipped206 * and can realloc() it to grow it, and should free() it to
1580 * immediate realloc on the next call.
1896 return (void *) realloc( (char *) ptr, size );
/linux-4.4.14/net/sunrpc/auth_gss/
Dauth_gss.c1370 realloc: in gss_stringify_acceptor()
1395 goto realloc; in gss_stringify_acceptor()
/linux-4.4.14/drivers/scsi/aic7xxx/aicasm/
Daicasm_gram.y1971 versions = realloc(versions, newlen + oldlen + 2); in add_version()
/linux-4.4.14/scripts/mod/
Dmodpost.c2034 buf->p = realloc(buf->p, buf->size); in buf_write()
/linux-4.4.14/tools/lguest/
Dlguest.c2435 dev->mmio = realloc(dev->mmio, dev->mmio_size); in set_device_config()
/linux-4.4.14/Documentation/
Dkernel-parameters.txt2872 realloc= Enable/disable reallocating PCI bridge resources
2876 off: Turn realloc off
2877 on: Turn realloc on
2878 realloc same as realloc=on