Searched refs:malloc (Results 126 - 150 of 404) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_adjust_tail.c165 buf = malloc(9000);
229 buf = malloc(16384);
/linux-master/tools/power/acpi/tools/pfrut/
H A Dpfrut.c171 uuid = malloc(37);
409 log_buf = malloc(max_data_sz + 1);
/linux-master/tools/bpf/bpftool/
H A Djson_writer.c15 #include <malloc.h>
92 json_writer_t *self = malloc(sizeof(*self));
H A Dmap.c65 return malloc(round_up(info->value_size, 8) *
68 return malloc(info->value_size);
637 fds = malloc(sizeof(int));
831 key = malloc(info->key_size);
907 fds = malloc(sizeof(int));
968 *key = malloc(info->key_size);
1134 key = malloc(info.key_size);
1135 nextkey = malloc(info.key_size);
1205 key = malloc(info.key_size);
/linux-master/tools/testing/selftests/bpf/
H A Djson_writer.c15 #include <malloc.h>
92 json_writer_t *self = malloc(sizeof(*self));
/linux-master/scripts/basic/
H A Dfixdep.c134 struct item *aux = malloc(sizeof(*aux) + len);
137 perror("fixdep:malloc");
231 buf = malloc(st.st_size + 1);
233 perror("fixdep: malloc");
/linux-master/tools/testing/selftests/mm/
H A Dmigration.c51 self->threads = malloc(self->nthreads * sizeof(*self->threads));
53 self->pids = malloc(self->nthreads * sizeof(*self->pids));
H A Dpagemap_ioctl.c8 #include <malloc.h>
211 vec = malloc(sizeof(struct page_region) * vec_size);
247 vec = malloc(sizeof(struct page_region) * vec_size);
251 vec2 = malloc(sizeof(struct page_region) * vec_size);
436 vec = malloc(sizeof(struct page_region) * vec_size);
491 vec = malloc(sizeof(struct page_region) * vec_size);
541 vec = malloc(sizeof(struct page_region) * vec_size);
694 vec = malloc(sizeof(struct page_region) * vec_size);
695 vec2 = malloc(sizeof(struct page_region) * vec_size);
806 vec = malloc(sizeo
[all...]
/linux-master/tools/perf/util/
H A Dstring.c221 char *expr = malloc(size);
327 new_s = malloc(strlen(haystack) + (num * (replace_len - 1) + 1));
/linux-master/tools/testing/selftests/kvm/
H A Ddemand_paging_test.c144 guest_data_prototype = malloc(demand_paging_size);
158 uffd_descs = malloc(nr_vcpus * sizeof(struct uffd_desc *));
/linux-master/samples/seccomp/
H A Duser-trap.c302 req = malloc(sizes.seccomp_notif);
306 resp = malloc(sizes.seccomp_notif_resp);
/linux-master/lib/
H A Dinflate.c167 "uch *slide;" and then malloc'ed in the latter case. The definition
238 /* A trivial malloc implementation, adapted from
239 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
245 static void *malloc(int size) function
273 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
364 stk = malloc(sizeof(*stk));
488 if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) ==
570 /* Free the malloc'ed tables built by huft_build(), which makes a linked
779 l = malloc(sizeof(*l) * 288);
852 ll = malloc(sizeo
[all...]
H A Ddecompress_bunzip2.c642 bd = *bdp = malloc(i);
691 outbuf = malloc(BZIP2_IOBUF_SIZE);
700 inbuf = malloc(BZIP2_IOBUF_SIZE);
/linux-master/tools/testing/vsock/
H A Dvsock_test.c392 buf = malloc(buf_size);
395 perror("malloc");
462 iov.iov_base = malloc(iov.iov_len);
464 perror("malloc");
656 data = malloc(sock_buf_size);
658 perror("malloc");
701 buf1 = malloc(buf_size);
703 perror("'malloc()' for 'buf1'");
707 buf2 = malloc(buf_size);
709 perror("'malloc()' fo
[all...]
/linux-master/tools/perf/jvmti/
H A Dlibjvmti.c101 *tab = malloc(nr_total * sizeof(**tab));
195 *buffer = malloc((len + 1) * sizeof(char));
265 line_file_names = malloc(sizeof(char*) * nr_lines);
/linux-master/samples/bpf/
H A Dtest_lru_dist.c108 lru->free_nodes = malloc(lru_size * sizeof(struct pfect_lru_node));
178 b = malloc(fst.st_size);
189 retkeys = malloc(counts * sizeof(unsigned long long));
/linux-master/scripts/
H A Dsorttable.h144 idxs = (int *)malloc(*orc_ip_size);
146 snprintf(g_err, ERRSTR_MAXSZ, "malloc idxs: %s",
151 tmp_orc_ip_table = (int *)malloc(*orc_ip_size);
153 snprintf(g_err, ERRSTR_MAXSZ, "malloc tmp_orc_ip_table: %s",
158 tmp_orc_table = (struct orc_entry *)malloc(orc_size);
160 snprintf(g_err, ERRSTR_MAXSZ, "malloc tmp_orc_table: %s",
/linux-master/tools/arch/x86/kcpuid/
H A Dkcpuid.c156 func->leafs = malloc(sizeof(struct subleaf));
158 perror("malloc func leaf");
225 range = malloc(sizeof(struct cpuid_range));
227 perror("malloc range");
234 range->funcs = malloc(sizeof(struct cpuid_func) * idx_func);
236 perror("malloc range->funcs");
/linux-master/tools/lib/perf/
H A Dcpumap.c21 RC_STRUCT(perf_cpu_map) *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus);
431 tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu));
473 tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu));
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dsubpage_prot.c99 map = malloc(pages * 4);
177 printf("allocated malloc block of 0x%lx bytes at %p\n",
180 printf("testing malloc block...\n");
/linux-master/tools/virtio/ringtest/
H A Dptr_ring.c8 #include <malloc.h>
/linux-master/arch/powerpc/boot/
H A Dlibfdt-wrapper.c175 buf = malloc(bufsize);
177 fatal("malloc failed. can't relocate the device tree\n\r");
H A Doflib.c189 p = malloc(size);
/linux-master/tools/wmi/
H A Ddell-smbios-example.c168 buffer = malloc(value);
/linux-master/tools/perf/arch/s390/util/
H A Dheader.c142 char *buf = malloc(128);

Completed in 310 milliseconds

1234567891011>>