Home
last modified time | relevance | path

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

123

/external/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()
/external/ltp/testcases/kernel/sched/eas/
Dtrace_parse.c123 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/
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()
Dmigrate_pages02.c84 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/
Drt_sigqueueinfo01.c83 sig_action = SAFE_MALLOC(sizeof(struct sigaction)); in setup()
89 uinfo = SAFE_MALLOC(sizeof(siginfo_t)); in setup()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice04.c39 arr_in = SAFE_MALLOC(num_len_data); in setup()
40 arr_out = SAFE_MALLOC(num_len_data); in setup()
Dsplice05.c49 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/
Dpidfd_send_signal01.c76 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/
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()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c109 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/
Dmtest01.c127 pid_list = SAFE_MALLOC(max_pids * sizeof(pid_t)); in setup()
152 mem = SAFE_MALLOC(chunksize); in child_loop_alloc()
/external/ltp/libs/libltpnuma/
Dtst_numa.c35 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/
Dmincore01.c172 buf = SAFE_MALLOC(cleanup, global_len); in setup()
185 global_vec = SAFE_MALLOC(cleanup, in setup()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat05.c50 opened_fds = SAFE_MALLOC(max_open * sizeof(int)); in setup()
/external/ltp/testcases/kernel/syscalls/kcmp/
Dkcmp03.c45 stack = SAFE_MALLOC(STACK_SIZE); in setup()
/external/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget03.c49 queues = SAFE_MALLOC(maxmsgs * sizeof(int)); in setup()
/external/ltp/testcases/kernel/syscalls/clone/
Dclone09.c25 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in setup()
/external/ltp/testcases/cve/
Dcve-2017-16939.c55 p = SAFE_MALLOC(sizeof(struct msg_policy)); in setup()
/external/ltp/testcases/kernel/syscalls/stat/
Dstat02.c79 buffer = SAFE_MALLOC(BUFSIZE); in setup()
/external/ltp/testcases/kernel/syscalls/confstr/
Dconfstr01.c98 buf = SAFE_MALLOC(cleanup, len); in main()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork14.c84 pointer_vec = SAFE_MALLOC(cleanup, EXTENT * sizeof(char *)); in setup()

123