/third_party/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm_readv03.c | 76 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()
|
D | process_vm01.c | 179 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()
|
D | process_vm_readv02.c | 102 foo = SAFE_MALLOC(tst_exit, len + 1); in child_alloc() 130 lp = SAFE_MALLOC(tst_exit, len + 1); in child_invoke()
|
D | process_vm_writev02.c | 116 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/ |
D | migrate_pages01.c | 140 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()
|
D | migrate_pages03.c | 67 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/ |
D | mallinfo02.c | 24 buf = SAFE_MALLOC(20480); in test_mallinfo() 38 buf = SAFE_MALLOC(size); in test_mallinfo()
|
/third_party/ltp/testcases/kernel/syscalls/pidfd_send_signal/ |
D | pidfd_send_signal01.c | 76 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/ |
D | rt_sigqueueinfo01.c | 83 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/ |
D | splice04.c | 34 arr_in = SAFE_MALLOC(num_len_data); in setup() 35 arr_out = SAFE_MALLOC(num_len_data); in setup()
|
D | splice05.c | 44 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/ |
D | pwrite04.c | 71 write_buf[0] = SAFE_MALLOC(K2); in setup() 73 write_buf[1] = SAFE_MALLOC(K1); in setup()
|
D | pwrite01.c | 88 write_buf[count] = SAFE_MALLOC(K1); in setup() 89 read_buf[count] = SAFE_MALLOC(K1); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe12.c | 99 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/ |
D | tbio.c | 157 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/ |
D | pread01.c | 84 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/ |
D | move_pages12.c | 120 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/ |
D | mtest01.c | 119 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/ |
D | mincore01.c | 172 buf = SAFE_MALLOC(cleanup, global_len); in setup() 185 global_vec = SAFE_MALLOC(cleanup, in setup()
|
/third_party/ltp/libs/libltpnuma/ |
D | tst_numa.c | 35 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/ |
D | fallocate06.c | 127 wbuf = SAFE_MALLOC(wbuf_size); in setup() 128 rbuf = SAFE_MALLOC(rbuf_size); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
D | getrusage03.h | 20 ptr = SAFE_MALLOC(size); in consume_mb()
|
/third_party/ltp/lib/ |
D | tst_af_alg.c | 143 keybuf = SAFE_MALLOC(keylen); in tst_alg_setkey() 219 control = SAFE_MALLOC(controllen); in tst_alg_sendmsg()
|
/third_party/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 296 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/ |
D | cacheflush01.c | 41 addr = SAFE_MALLOC(getpagesize()); in setup()
|