Home
last modified time | relevance | path

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

1234

/third_party/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_readv03.c76 bufsz_arr = SAFE_MALLOC(cleanup, nr_iovecs * sizeof(int)); in main()
139 foo = SAFE_MALLOC(tst_exit, nr_iovecs * sizeof(char *)); in child_alloc()
143 foo[i] = SAFE_MALLOC(tst_exit, bufsz_arr[i]); in child_alloc()
177 bar = SAFE_MALLOC(tst_exit, len); in fetch_remote_addrs()
201 remote = SAFE_MALLOC(tst_exit, nr_iovecs * sizeof(struct iovec)); in child_invoke()
210 local[i].iov_base = SAFE_MALLOC(tst_exit, rcv_arr[i]); in child_invoke()
Dprocess_vm01.c179 sane_params = SAFE_MALLOC(NULL, sizeof(struct process_vm_params)); in cma_alloc_sane_params()
181 sane_params->ldummy = SAFE_MALLOC(NULL, len); in cma_alloc_sane_params()
182 sane_params->rdummy = SAFE_MALLOC(NULL, len); in cma_alloc_sane_params()
184 sane_params->lvec = SAFE_MALLOC(NULL, sizeof(struct iovec)); in cma_alloc_sane_params()
189 sane_params->rvec = SAFE_MALLOC(NULL, sizeof(struct iovec)); in cma_alloc_sane_params()
Dprocess_vm_readv02.c102 foo = SAFE_MALLOC(tst_exit, len + 1); in child_alloc()
130 lp = SAFE_MALLOC(tst_exit, len + 1); in child_invoke()
Dprocess_vm_writev02.c116 foo = SAFE_MALLOC(tst_exit, bufsz); in child_init_and_verify()
161 lp = SAFE_MALLOC(tst_exit, bufsz + PADDING_SIZE * 2); in child_write()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages01.c140 old_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in test_invalid_nodes()
141 new_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in test_invalid_nodes()
230 sane_old_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in setup()
231 sane_new_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in setup()
Dmigrate_pages03.c67 new_nodes[0] = SAFE_MALLOC(nodemask_size); in setup()
68 new_nodes[1] = SAFE_MALLOC(nodemask_size); in setup()
/third_party/ltp/testcases/kernel/syscalls/mallinfo/
Dmallinfo02.c24 buf = SAFE_MALLOC(20480); in test_mallinfo()
38 buf = SAFE_MALLOC(size); in test_mallinfo()
/third_party/ltp/testcases/kernel/syscalls/pidfd_send_signal/
Dpidfd_send_signal01.c76 sig_action = SAFE_MALLOC(sizeof(struct sigaction)); in setup()
82 uinfo = SAFE_MALLOC(sizeof(siginfo_t)); in setup()
/third_party/ltp/testcases/kernel/syscalls/rt_sigqueueinfo/
Drt_sigqueueinfo01.c83 sig_action = SAFE_MALLOC(sizeof(struct sigaction)); in setup()
89 uinfo = SAFE_MALLOC(sizeof(siginfo_t)); in setup()
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice04.c34 arr_in = SAFE_MALLOC(num_len_data); in setup()
35 arr_out = SAFE_MALLOC(num_len_data); in setup()
Dsplice05.c44 arr_in = SAFE_MALLOC(num_len_data); in setup()
45 arr_out = SAFE_MALLOC(num_len_data); in setup()
/third_party/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite04.c71 write_buf[0] = SAFE_MALLOC(K2); in setup()
73 write_buf[1] = SAFE_MALLOC(K1); in setup()
Dpwrite01.c88 write_buf[count] = SAFE_MALLOC(K1); in setup()
89 read_buf[count] = SAFE_MALLOC(K1); in setup()
/third_party/ltp/testcases/kernel/syscalls/pipe/
Dpipe12.c99 wrbuf = SAFE_MALLOC(invalid_size); in setup()
100 rdbuf = SAFE_MALLOC(max_size); in setup()
/third_party/ltp/testcases/kernel/device-drivers/tbio/tbio_user/
Dtbio.c157 bif.cmd = SAFE_MALLOC(cleanup, 6); in tbio_to_dev()
197 bif.cmd = SAFE_MALLOC(cleanup, 5); in tbio_from_dev()
243 bif.cmd = SAFE_MALLOC(cleanup, 6); in tbio_split_to_dev()
/third_party/ltp/testcases/kernel/syscalls/pread/
Dpread01.c84 write_buf[count] = SAFE_MALLOC(K1); in setup()
85 read_buf[count] = SAFE_MALLOC(K1); in setup()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c120 pages = SAFE_MALLOC(sizeof(char *) * test_pages); in do_child()
121 nodes = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
122 status = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
/third_party/ltp/testcases/kernel/mem/mtest01/
Dmtest01.c119 pid_list = SAFE_MALLOC(max_pids * sizeof(pid_t)); in setup()
144 mem = SAFE_MALLOC(chunksize); in child_loop_alloc()
/third_party/ltp/testcases/kernel/syscalls/mincore/
Dmincore01.c172 buf = SAFE_MALLOC(cleanup, global_len); in setup()
185 global_vec = SAFE_MALLOC(cleanup, in setup()
/third_party/ltp/libs/libltpnuma/
Dtst_numa.c35 nodes->counters = SAFE_MALLOC(arr_size); in tst_nodemap_reset_counters()
195 nodes = SAFE_MALLOC(sizeof(struct tst_nodemap) in tst_get_nodemap()
/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate06.c127 wbuf = SAFE_MALLOC(wbuf_size); in setup()
128 rbuf = SAFE_MALLOC(rbuf_size); in setup()
/third_party/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage03.h20 ptr = SAFE_MALLOC(size); in consume_mb()
/third_party/ltp/lib/
Dtst_af_alg.c143 keybuf = SAFE_MALLOC(keylen); in tst_alg_setkey()
219 control = SAFE_MALLOC(controllen); in tst_alg_sendmsg()
/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c296 s = SAFE_MALLOC((end - start) * (end2 - start2)); in verify()
363 memory = SAFE_MALLOC(total_unit * sizeof(char *)); in create_ksm_child()
456 child = SAFE_MALLOC(num * sizeof(int)); in create_same_memory()
546 memory = SAFE_MALLOC(num_nodes * sizeof(char *)); in test_ksm_merge_across_nodes()
/third_party/ltp/testcases/kernel/syscalls/cacheflush/
Dcacheflush01.c41 addr = SAFE_MALLOC(getpagesize()); in setup()

1234