/external/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()
|
/external/ltp/testcases/kernel/sched/eas/ |
D | trace_parse.c | 123 char *buf = SAFE_MALLOC(strlen(data) + 1); in parse_event_data() 129 t = SAFE_MALLOC(sizeof(struct trace_cpu_frequency)); in parse_event_data() 141 t = SAFE_MALLOC(sizeof(struct trace_sugov_util_update)); in parse_event_data() 153 t = SAFE_MALLOC(sizeof(struct trace_sugov_next_freq)); in parse_event_data() 166 t = SAFE_MALLOC(sizeof(struct trace_sched_switch)); in parse_event_data() 232 t = SAFE_MALLOC(sizeof(struct trace_sched_wakeup)); in parse_event_data() 471 trace_buffer = SAFE_MALLOC(TRACE_BUFFER_SIZE); in read_trace_line() 529 trace = SAFE_MALLOC(sizeof(struct trace_record) * in load_trace()
|
/external/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()
|
D | migrate_pages02.c | 84 old_nodes = SAFE_MALLOC(nodemask_size); in migrate_to_node() 85 new_nodes = SAFE_MALLOC(nodemask_size); in migrate_to_node()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice04.c | 39 arr_in = SAFE_MALLOC(num_len_data); in setup() 40 arr_out = SAFE_MALLOC(num_len_data); in setup()
|
D | splice05.c | 49 arr_in = SAFE_MALLOC(num_len_data); in setup() 50 arr_out = SAFE_MALLOC(num_len_data); in setup()
|
/external/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()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 109 pages = SAFE_MALLOC(sizeof(char *) * test_pages); in do_child() 110 nodes = SAFE_MALLOC(sizeof(int) * test_pages); in do_child() 111 status = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
|
/external/ltp/testcases/kernel/mem/mtest01/ |
D | mtest01.c | 127 pid_list = SAFE_MALLOC(max_pids * sizeof(pid_t)); in setup() 152 mem = SAFE_MALLOC(chunksize); in child_loop_alloc()
|
/external/ltp/libs/libltpnuma/ |
D | tst_numa.c | 35 nodes->counters = SAFE_MALLOC(arr_size); in tst_nodemap_reset_counters() 193 nodes = SAFE_MALLOC(sizeof(struct tst_nodemap) in tst_get_nodemap()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/creat/ |
D | creat05.c | 50 opened_fds = SAFE_MALLOC(max_open * sizeof(int)); in setup()
|
/external/ltp/testcases/kernel/syscalls/kcmp/ |
D | kcmp03.c | 45 stack = SAFE_MALLOC(STACK_SIZE); in setup()
|
/external/ltp/testcases/kernel/syscalls/ipc/msgget/ |
D | msgget03.c | 49 queues = SAFE_MALLOC(maxmsgs * sizeof(int)); in setup()
|
/external/ltp/testcases/kernel/syscalls/clone/ |
D | clone09.c | 25 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in setup()
|
/external/ltp/testcases/cve/ |
D | cve-2017-16939.c | 55 p = SAFE_MALLOC(sizeof(struct msg_policy)); in setup()
|
/external/ltp/testcases/kernel/syscalls/stat/ |
D | stat02.c | 79 buffer = SAFE_MALLOC(BUFSIZE); in setup()
|
/external/ltp/testcases/kernel/syscalls/confstr/ |
D | confstr01.c | 98 buf = SAFE_MALLOC(cleanup, len); in main()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork14.c | 84 pointer_vec = SAFE_MALLOC(cleanup, EXTENT * sizeof(char *)); in setup()
|