| /xnu-11215/tests/ |
| H A D | skmem_sysctl_test.c | 26 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 D | perf_compressor.c | 74 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 D | task_vm_info_decompressions.c | 82 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 D | uipc_sosendcheck.c | 44 char *buf = malloc(MSG1_LEN); in receiver() 105 char *buf = malloc(MSG1_LEN);
|
| H A D | vsock.c | 647 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 D | decompression_failure.c | 80 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 D | recvmsg_x_test.c | 230 .iov_base = malloc(bufsize), 234 .iov_base = malloc(bufsize), 238 .iov_base = malloc(bufsize),
|
| H A D | proc_info.c | 405 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 D | parser.y | 125 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 D | main.c | 114 malloc((unsigned) strlen(source_directory) + 6); in main() 221 cp = malloc((unsigned)(strlen(build_directory) + in path()
|
| H A D | mkheaders.c | 164 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 D | kxld_util.h | 143 __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 D | zalloc.h | 628 __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 D | KQMPMMtest.c | 245 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 D | MPMMtest.c | 300 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 D | sched_clutch_harness.c | 83 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 D | scalegear.c | 49 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.c | 37 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.c | 16 malloc(__unused size_t size) in malloc() function
|
| /xnu-11215/tests/safe_allocation_src/ |
| H A D | test_utils.h | 25 return std::malloc(n); in allocate() 62 return std::malloc(n); in allocate()
|
| /xnu-11215/SETUP/replacecontents/ |
| H A D | replacecontents.c | 64 newcontent = malloc(newcontentlength); in main() 99 oldcontent = malloc(newcontentlength); in main()
|
| /xnu-11215/tools/tests/affinity/ |
| H A D | sets.c | 425 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 D | pool.c | 402 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 D | proc_listpidspath.c | 66 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 D | stdlib.h | 73 extern void *malloc(size_t);
|