Home
last modified time | relevance | path

Searched refs:SAFE_MALLOC (Results 1 – 25 of 28) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_readv03.c77 bufsz_arr = SAFE_MALLOC(cleanup, nr_iovecs * sizeof(int)); in main()
142 foo = SAFE_MALLOC(tst_exit, nr_iovecs * sizeof(char *)); in child_alloc()
146 foo[i] = SAFE_MALLOC(tst_exit, bufsz_arr[i]); in child_alloc()
180 bar = SAFE_MALLOC(tst_exit, len); in fetch_remote_addrs()
203 remote = SAFE_MALLOC(tst_exit, nr_iovecs * sizeof(struct iovec)); in child_invoke()
212 local[i].iov_base = SAFE_MALLOC(tst_exit, rcv_arr[i]); in child_invoke()
Dprocess_vm01.c187 sane_params = SAFE_MALLOC(NULL, sizeof(struct process_vm_params)); in cma_alloc_sane_params()
189 sane_params->ldummy = SAFE_MALLOC(NULL, len); in cma_alloc_sane_params()
190 sane_params->rdummy = SAFE_MALLOC(NULL, len); in cma_alloc_sane_params()
192 sane_params->lvec = SAFE_MALLOC(NULL, sizeof(struct iovec)); in cma_alloc_sane_params()
197 sane_params->rvec = SAFE_MALLOC(NULL, sizeof(struct iovec)); in cma_alloc_sane_params()
Dprocess_vm_readv02.c106 foo = SAFE_MALLOC(tst_exit, len + 1); in child_alloc()
134 lp = SAFE_MALLOC(tst_exit, len + 1); in child_invoke()
Dprocess_vm_writev02.c119 foo = SAFE_MALLOC(tst_exit, bufsz); in child_init_and_verify()
164 lp = SAFE_MALLOC(tst_exit, bufsz + PADDING_SIZE * 2); in child_write()
/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages01.c146 old_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in test_invalid_nodes()
147 new_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in test_invalid_nodes()
239 sane_old_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in setup()
240 sane_new_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in setup()
Dmigrate_pages02.c113 old_nodes = SAFE_MALLOC(NULL, nodemask_size); in migrate_to_node()
114 new_nodes = SAFE_MALLOC(NULL, nodemask_size); in migrate_to_node()
177 testp = SAFE_MALLOC(NULL, getpagesize()); in test_migrate_current_process()
206 testp = SAFE_MALLOC(NULL, getpagesize()); in test_migrate_current_process()
262 testp = SAFE_MALLOC(NULL, getpagesize()); in test_migrate_other_process()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c72 pages = SAFE_MALLOC(sizeof(char *) * test_pages); in do_child()
73 nodes = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
74 status = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
/external/ltp/testcases/kernel/device-drivers/tbio/tbio_user/
Dtbio.c160 bif.cmd = SAFE_MALLOC(cleanup, 6); in tbio_to_dev()
200 bif.cmd = SAFE_MALLOC(cleanup, 5); in tbio_from_dev()
246 bif.cmd = SAFE_MALLOC(cleanup, 6); in tbio_split_to_dev()
/external/ltp/testcases/kernel/syscalls/mincore/
Dmincore01.c175 buf = SAFE_MALLOC(cleanup, global_len); in setup()
188 global_vec = SAFE_MALLOC(cleanup, in setup()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat05.c63 opened_fds = SAFE_MALLOC(max_open * sizeof(int)); in setup()
/external/ltp/testcases/kernel/syscalls/kcmp/
Dkcmp03.c57 stack = SAFE_MALLOC(STACK_SIZE); in setup()
/external/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget03.c61 queues = SAFE_MALLOC(maxmsgs * sizeof(int)); in setup()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork14.c83 pointer_vec = SAFE_MALLOC(cleanup, EXTENT * sizeof(char *)); in setup()
/external/ltp/testcases/kernel/syscalls/confstr/
Dconfstr01.c98 buf = SAFE_MALLOC(cleanup, len); in main()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress04.c97 buf = SAFE_MALLOC(page_size); in mmapstress04()
/external/ltp/testcases/kernel/syscalls/mallopt/
Dmallopt01.c77 buf = SAFE_MALLOC(NULL, 20480); in main()
/external/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage03_child.c154 ptr = SAFE_MALLOC(cleanup, sz); in consume()
Dgetrusage03.c339 ptr = SAFE_MALLOC(cleanup, sz); in consume()
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c143 ptr_addr = SAFE_MALLOC(st.st_size); in setup()
/external/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg02.c131 child_pids = SAFE_MALLOC(cleanup, sizeof(int) * child_pairs * 2); in reproduce()
/external/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c452 writebuf = SAFE_MALLOC(cleanup, size); in setup()
453 readbuf = SAFE_MALLOC(cleanup, size); in setup()
/external/ltp/testcases/network/netstress/
Dnetstress.c348 thread_ids = SAFE_MALLOC(sizeof(pthread_t) * clients_num); in client_init()
350 client_msg = SAFE_MALLOC(client_msg_size); in client_init()
/external/ltp/testcases/kernel/syscalls/clone/
Dclone08.c108 child_stack = SAFE_MALLOC(cleanup, CHILD_STACK_SIZE); in setup()
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead02.c165 tmp = SAFE_MALLOC(cleanup, pagesize); in create_testfile()
/external/ltp/testcases/kernel/io/direct_io/
Ddma_thread_diotest.c411 worker = SAFE_MALLOC(cleanup, workers * sizeof(worker_t)); in setup()

12