Home
last modified time | relevance | path

Searched refs:tst_alloc (Results 1 – 12 of 12) sorted by relevance

/third_party/ltp/lib/
Dtst_buffers.c46 void *tst_alloc(size_t size) in tst_alloc() function
96 iovec = tst_alloc(sizeof(struct iovec) * cnt); in tst_iovec_alloc()
100 iovec[i].iov_base = tst_alloc(sizes[i]); in tst_iovec_alloc()
117 *((void**)bufs[i].ptr) = tst_alloc(bufs[i].size); in tst_buffers_alloc()
126 char *ret = tst_alloc(len + 1); in tst_strdup()
Dtst_cgroup.c1039 cg = tst_alloc(sizeof(*cg)); in cgroup_group_from_roots()
/third_party/ltp/testcases/kernel/syscalls/accept/
Daccept02.c112 server_addr = tst_alloc(sizeof(*server_addr)); in setup()
113 client_addr = tst_alloc(sizeof(*client_addr)); in setup()
114 mc_group = tst_alloc(sizeof(*mc_group)); in setup()
/third_party/ltp/include/
Dtst_buffers.h47 void *tst_alloc(size_t size);
/third_party/ltp/include/lapi/
Dname_to_handle_at.h53 fhp = tst_alloc(sizeof(*fhp) + fh.handle_bytes); in allocate_file_handle()
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice04.c75 write_buffer = tst_alloc(pipe_max_size); in setup()
/third_party/ltp/testcases/kernel/syscalls/getdents/
Dgetdents02.c61 dirp = tst_alloc(size); in setup()
/third_party/ltp/testcases/kernel/syscalls/open_by_handle_at/
Dopen_by_handle_at02.c62 link_fhp = tst_alloc(sizeof(*link_fhp) + valid_fhp->handle_bytes); in setup()
/third_party/ltp/testcases/kernel/pty/
Dpty04.c199 data = tst_alloc(len); in do_pty()
388 data = tst_alloc(plen); in read_netdev()
/third_party/ltp/testcases/kernel/syscalls/bpf/
Dbpf_common.c93 buf = tst_alloc(prog_size); in bpf_init_prog_attr()
/third_party/ltp/testcases/kernel/syscalls/add_key/
Dadd_key05.c100 buf = tst_alloc(invalid_plen); in verify_max_bytes()
/third_party/ltp/doc/
Dc-test-api.txt1773 'tst_alloc()' or by 'tst_strdup()' as well as by filling up the .bufs array in