Home
last modified time | relevance | path

Searched refs:shm_size (Results 1 – 16 of 16) sorted by relevance

/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c68 static size_t shm_size; variable
92 shm_id_1 = shmget(shmkey, shm_size, in main()
104 if (buf.shm_segsz != shm_size) { in main()
154 shm_size = hpage_size * hugepages / 2; in setup()
155 update_shm_size(&shm_size); in setup()
Dhugeshmget05.c70 static size_t shm_size; variable
120 TEST(shmget(shmkey, shm_size, SHM_HUGETLB | SHM_RW)); in do_child()
146 shm_size = hpage_size * hugepages / 2; in setup()
147 update_shm_size(&shm_size); in setup()
149 shm_id_1 = shmget(shmkey, shm_size, in setup()
Dhugeshmget03.c69 static size_t shm_size; variable
95 TEST(shmget(IPC_PRIVATE, shm_size, in main()
124 shm_size = hpage_size; in setup()
134 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
143 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
Dhugeshmget02.c61 static size_t shm_size; variable
116 TEST(shmget(*(TC[i].skey), TC[i].size_coe * shm_size, in main()
149 shm_size = hpage_size * hugepages / 2; in setup()
150 update_shm_size(&shm_size); in setup()
154 shm_id_1 = shmget(shmkey, shm_size, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c64 static size_t shm_size; variable
142 shm_size = hpage_size * hugepages / 2; in setup()
143 update_shm_size(&shm_size); in setup()
147 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup()
152 shm_id_2 = shmget(shmkey + 1, shm_size, in setup()
Dhugeshmctl03.c71 static size_t shm_size; variable
168 shm_size = hpage_size * hugepages / 2; in setup()
169 update_shm_size(&shm_size); in setup()
171 shm_id_1 = shmget(shmkey, shm_size, in setup()
Dhugeshmctl01.c77 static size_t shm_size; variable
134 shm_id_1 = shmget(shmkey, shm_size, in main()
277 if (buf.shm_segsz != shm_size) { in func_stat()
404 shm_size = hpage_size * hugepages / 2; in setup()
405 update_shm_size(&shm_size); in setup()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D24-1.c43 size_t shm_size = 1024; in main() local
58 if (ftruncate(fd, shm_size) == -1) { in main()
63 len = shm_size; in main()
75 mapped_size += shm_size; in main()
D24-2.c43 size_t shm_size; in main() local
47 shm_size = 2 * page_size; in main()
58 if (ftruncate(fd, shm_size) == -1) { in main()
71 len = shm_size; in main()
D18-1.c73 size_t shm_size; in main() local
94 shm_size = 1024; in main()
111 if (ftruncate(fd, shm_size) == -1) { in main()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat01.c69 static size_t shm_size; variable
161 if (buf.shm_segsz != shm_size) { in check_functionality()
220 shm_size = hpage_size * hugepages / 2; in setup()
221 update_shm_size(&shm_size); in setup()
223 shm_id_1 = shmget(shmkey++, shm_size, in setup()
Dhugeshmat02.c67 static size_t shm_size; variable
136 shm_size = hpage_size * hugepages / 2; in setup()
137 update_shm_size(&shm_size); in setup()
142 shm_id_2 = shmget(shmkey++, shm_size, in setup()
Dhugeshmat03.c67 static size_t shm_size; variable
142 shm_size = hpage_size * hugepages / 2; in setup()
143 update_shm_size(&shm_size); in setup()
145 shm_id_1 = shmget(shmkey, shm_size, in setup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c68 static size_t shm_size; variable
176 shm_size = hpage_size * hugepages / 2; in setup()
177 update_shm_size(&shm_size); in setup()
181 shm_id_1 = shmget(shmkey, shm_size, in setup()
/external/ltp/testcases/kernel/mem/include/
Dmem.h95 void update_shm_size(size_t *shm_size);
/external/ltp/testcases/kernel/mem/lib/
Dmem.c959 void update_shm_size(size_t * shm_size) in update_shm_size() argument
964 if (*shm_size > shmmax) { in update_shm_size()
966 *shm_size = shmmax; in update_shm_size()