Home
last modified time | relevance | path

Searched refs:SAFE_MALLOC (Results 1 – 25 of 53) 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.c98 char *buf = SAFE_MALLOC(strlen(data) + 1); in parse_event_data()
104 t = SAFE_MALLOC(sizeof(struct trace_cpu_frequency)); in parse_event_data()
116 t = SAFE_MALLOC(sizeof(struct trace_sugov_util_update)); in parse_event_data()
128 t = SAFE_MALLOC(sizeof(struct trace_sugov_next_freq)); in parse_event_data()
141 t = SAFE_MALLOC(sizeof(struct trace_sched_switch)); in parse_event_data()
207 t = SAFE_MALLOC(sizeof(struct trace_sched_wakeup)); in parse_event_data()
426 trace_buffer = SAFE_MALLOC(TRACE_BUFFER_SIZE); in read_trace_line()
484 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.c74 new_nodes[0] = SAFE_MALLOC(nodemask_size); in setup()
75 new_nodes[1] = SAFE_MALLOC(nodemask_size); in setup()
Dmigrate_pages02.c103 old_nodes = SAFE_MALLOC(nodemask_size); in migrate_to_node()
104 new_nodes = SAFE_MALLOC(nodemask_size); in migrate_to_node()
/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/syscalls/splice/
Dsplice04.c56 arr_in = SAFE_MALLOC(num_len_data); in setup()
57 arr_out = SAFE_MALLOC(num_len_data); in setup()
Dsplice05.c62 arr_in = SAFE_MALLOC(num_len_data); in setup()
63 arr_out = SAFE_MALLOC(num_len_data); 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/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.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/cve/
Dcve-2017-16939.c67 p = SAFE_MALLOC(sizeof(struct msg_policy)); in setup()
/external/ltp/testcases/kernel/syscalls/clone/
Dclone09.c37 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); 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/lib/
Dmem.c293 s = SAFE_MALLOC((end - start) * (end2 - start2)); in verify()
367 memory = SAFE_MALLOC(total_unit * sizeof(char *)); in create_ksm_child()
460 child = SAFE_MALLOC(num * sizeof(int)); in create_same_memory()
547 memory = SAFE_MALLOC(num_nodes * sizeof(char *)); in test_ksm_merge_across_nodes()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress04.c97 buf = SAFE_MALLOC(page_size); in mmapstress04()
/external/ltp/testcases/kernel/mem/swapping/
Dswapping01.c109 s = SAFE_MALLOC(mem_count * 1024); in do_alloc()
/external/ltp/lib/
Dtst_sys_conf.c27 struct tst_sys_conf *n = SAFE_MALLOC(sizeof(*n)); in tst_sys_conf_save_str()
/external/ltp/testcases/kernel/fs/fs_fill/
Dfs_fill.c107 workers = SAFE_MALLOC(sizeof(struct worker) * nthreads); in setup()

123