Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 113) sorted by relevance

12345

/xnu-11215/tests/
H A Dskmem_sysctl_test.c26 T_EXPECT_NOTNULL(*buffer = malloc(*len), NULL); in sysctl_get_all()
100 buffer = malloc(len);
116 buffer = malloc(len);
132 buffer = malloc(len);
148 buffer = malloc(len);
164 buffer = malloc(len);
180 buffer = malloc(len);
H A Dperf_compressor.c74 buf[i] = (char*)malloc((size_t)vmpgsize * sizeof(char)); in allocate_zero_pages()
85 buf[i] = (char*)malloc((size_t)vmpgsize * sizeof(char)); in allocate_mostly_zero_pages()
99 buf[i] = (char*)malloc((size_t)vmpgsize * sizeof(char)); in allocate_random_pages()
112 buf[j] = (char*)malloc((size_t)vmpgsize * sizeof(char)); in allocate_representative_pages()
308 buf = (char**)malloc(sizeof(char*) * (size_t)num_pages);
H A Dtask_vm_info_decompressions.c82 array = malloc(MALLOC_SIZE_PER_THREAD); in worker_thread_function()
194 threads = malloc(sizeof(pthread_t) * (size_t)ncpu);
195 targs = malloc(sizeof(struct thread_args) * (size_t)ncpu);
H A Duipc_sosendcheck.c44 char *buf = malloc(MSG1_LEN); in receiver()
105 char *buf = malloc(MSG1_LEN);
H A Dvsock.c647 char *msg = (char*)malloc(64 * sizeof(char));
671 char *msg = (char*)malloc(64 * sizeof(char));
681 char *expected_msg = (char*)malloc(64 * sizeof(char));
748 void *random = malloc(size);
789 struct xvsockpgen *buffer = malloc(length);
821 struct xvsockpgen *buffer = malloc(length);
856 struct xvsockpgen *buffer = malloc(length);
H A Ddecompression_failure.c80 blocks = (vm_address_t *)malloc(sizeof(*blocks) * block_count); in create_corrupted_regions()
82 void *bufferp = malloc(block_length); in create_corrupted_regions()
H A Drecvmsg_x_test.c230 .iov_base = malloc(bufsize),
234 .iov_base = malloc(bufsize),
238 .iov_base = malloc(bufsize),
H A Dproc_info.c405 proc_config_t proc_config = malloc(sizeof(*proc_config)); in spawn_child_processes()
535 struct proc_taskallinfo * pall = malloc(sizeof(struct proc_taskallinfo)); in proc_info_caller()
762 pid_t * proc_ids = malloc(sizeof(pid_t) * (unsigned long)proc_count);
774 proc_ids = malloc(sizeof(pid_t) * (unsigned long)proc_count_all);
821 pid_t * proc_ids = malloc(sizeof(*proc_ids) * (unsigned long)proc_count);
841 pid_t * proc_ids = malloc(sizeof(*proc_ids) * (unsigned long)proc_count);
1606 fd_info = malloc(sizeof(*fd_info) * 5);
1640 pid_path = malloc(sizeof(char) * PROC_PIDPATHINFO_MAXSIZE);
1681 fileport_info = malloc(sizeof(*fileport_info) * (size_t)retval);
1836 uint64_t * uptrs_alloc = malloc(sizeof(uint64_t) * uptrs_len); in print_uptrs()
[all …]
/xnu-11215/SETUP/config/
H A Dparser.y125 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
138 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
178 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
187 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
252 cp = malloc((unsigned)(strlen(str)+1)); in ns()
265 np = (struct device *) malloc(sizeof *np); in newdev()
H A Dmain.c114 malloc((unsigned) strlen(source_directory) + 6); in main()
221 cp = malloc((unsigned)(strlen(build_directory) + in path()
H A Dmkheaders.c164 fl = (struct file_list *) malloc(sizeof *fl); in do_header()
180 fl = (struct file_list *) malloc(sizeof *fl); in do_header()
/xnu-11215/libkern/kxld/
H A Dkxld_util.h143 __attribute__((malloc, visibility("hidden")));
146 __attribute__((malloc, visibility("hidden")));
149 __attribute__((malloc, visibility("hidden")));
152 __attribute__((malloc, visibility("hidden")));
/xnu-11215/osfmk/kern/
H A Dzalloc.h628 __attribute__((malloc))
632 __attribute__((malloc))
640 __attribute__((malloc))
662 __attribute__((malloc))
666 __attribute__((malloc))
674 __attribute__((malloc))
693 __attribute__((malloc))
698 __attribute__((malloc))
712 __attribute__((malloc))
722 __attribute__((malloc))
[all …]
/xnu-11215/tools/tests/MPMMTest/
H A DKQMPMMtest.c245 ports->req_msg = malloc(ports->req_size); in setup_server_ports()
246 ports->reply_msg = malloc(ports->reply_size); in setup_server_ports()
318 ports->req_msg = malloc(ports->req_size); in setup_client_ports()
319 ports->reply_msg = malloc(ports->reply_size); in setup_client_ports()
602 void *ints = malloc(sizeof(u_int32_t) * num_ints); in client()
631 client_memory = (long *) malloc(client_pages * PAGE_SIZE); in client()
813 server_id = (thread_id_t *) malloc(num_servers * sizeof(thread_id_t)); in main()
814 server_port_name = (char **) malloc(num_servers * sizeof(char *)); in main()
819 server_port_name[i] = (char *) malloc(sizeof("PORT.pppppp.xx")); in main()
848 client_id = (thread_id_t *) malloc(totalclients * sizeof(thread_id_t)); in main()
H A DMPMMtest.c300 ports->req_msg = malloc(ports->req_size); in setup_server_ports()
301 ports->reply_msg = malloc(ports->reply_size); in setup_server_ports()
438 ports->req_msg = malloc(ports->req_size); in setup_client_ports()
439 ports->reply_msg = malloc(ports->reply_size); in setup_client_ports()
689 void *ints = malloc(sizeof(u_int32_t) * num_ints); in client()
722 client_memory = (long *) malloc(client_pages * PAGE_SIZE); in client()
926 server_id = (thread_id_t *) malloc(num_servers * sizeof(thread_id_t)); in main()
927 server_port_name = (char **) malloc(num_servers * sizeof(char *)); in main()
938 server_port_name[i] = (char *) malloc(sizeof("PORT.pppppp.xx")); in main()
967 client_id = (thread_id_t *) malloc(totalclients * sizeof(thread_id_t)); in main()
/xnu-11215/tests/sched/sched_test_harness/
H A Dsched_clutch_harness.c83 struct list_node *new_node = malloc(sizeof(struct list_node)); in track_allocated()
120 logged_tracepoints = malloc(MAX_LOGGED_TRACEPOINTS * 5 * sizeof(uint64_t)); in impl_init_runqueue()
131 struct thread_group *tg = malloc(sizeof(struct thread_group)); in impl_create_tg()
149 thread_t thread = malloc(sizeof(struct thread)); in impl_create_thread()
/xnu-11215/osfmk/console/art/
H A Dscalegear.c49 vs.data = malloc(vs.height * vs.rowBytes); in main()
54 vd.data = malloc(vd.height * vd.rowBytes); in main()
/xnu-11215/libsyscall/wrappers/
H A D_libc_funcptr.c37 malloc(size_t size) in malloc() function
39 if (_libkernel_functions->malloc) { in malloc()
40 return _libkernel_functions->malloc(size); in malloc()
84 return malloc(size); in malloc_type_malloc()
H A D_libc_weak_funcptr.c16 malloc(__unused size_t size) in malloc() function
/xnu-11215/tests/safe_allocation_src/
H A Dtest_utils.h25 return std::malloc(n); in allocate()
62 return std::malloc(n); in allocate()
/xnu-11215/SETUP/replacecontents/
H A Dreplacecontents.c64 newcontent = malloc(newcontentlength); in main()
99 oldcontent = malloc(newcontentlength); in main()
/xnu-11215/tools/tests/affinity/
H A Dsets.c425 line_info = (line_info_t *) malloc(sets * sizeof(line_info_t)); in main()
426 stage_info = (stage_info_t *) malloc(sets * stages * sizeof(stage_info_t)); in main()
434 lp->data = (int *) malloc(buffers * pages * 4096); in main()
466 work_array = (work_t *) malloc(buffers * sizeof(work_t)); in main()
H A Dpool.c402 stage_info = (stage_info_t *) malloc(stages * sizeof(stage_info_t)); in main()
403 worker_info = (worker_info_t *) malloc(threads * sizeof(worker_info_t)); in main()
432 data = (int *) malloc(buffers * pages * 4096); in main()
435 work_array = (work_t *) malloc(buffers * sizeof(work_t)); in main()
/xnu-11215/libsyscall/wrappers/libproc/
H A Dproc_listpidspath.c66 info = malloc(sizeof(*info)); in check_init()
298 info->fds = malloc(info->fds_size); in check_process_fds()
414 info->threads = malloc(info->thr_size); in check_process_threads()
590 info->pids = malloc(info->pids_size); in proc_listpidspath()
/xnu-11215/osfmk/libsa/
H A Dstdlib.h73 extern void *malloc(size_t);

12345