Searched refs:MFD_DEF_SIZE (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/tools/testing/selftests/memfd/
H A Dmemfd_test.c21 #define MFD_DEF_SIZE 8192 macro
153 MFD_DEF_SIZE, mfd_assert_mmap_shared()
171 MFD_DEF_SIZE, mfd_assert_mmap_private()
226 MFD_DEF_SIZE, mfd_assert_read()
235 munmap(p, MFD_DEF_SIZE); mfd_assert_read()
239 MFD_DEF_SIZE, mfd_assert_read()
248 munmap(p, MFD_DEF_SIZE); mfd_assert_read()
266 MFD_DEF_SIZE, mfd_assert_write()
276 munmap(p, MFD_DEF_SIZE); mfd_assert_write()
280 MFD_DEF_SIZE, mfd_assert_write()
290 munmap(p, MFD_DEF_SIZE); mfd_assert_write()
295 MFD_DEF_SIZE, mfd_assert_write()
305 r = mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE); mfd_assert_write()
312 munmap(p, MFD_DEF_SIZE); mfd_assert_write()
318 MFD_DEF_SIZE); mfd_assert_write()
340 MFD_DEF_SIZE, mfd_fail_write()
352 MFD_DEF_SIZE, mfd_fail_write()
365 MFD_DEF_SIZE, mfd_fail_write()
371 r = mprotect(p, MFD_DEF_SIZE, PROT_READ | PROT_WRITE); mfd_fail_write()
382 MFD_DEF_SIZE); mfd_fail_write()
393 r = ftruncate(fd, MFD_DEF_SIZE / 2); mfd_assert_shrink()
399 mfd_assert_size(fd, MFD_DEF_SIZE / 2); mfd_assert_shrink()
413 r = ftruncate(fd, MFD_DEF_SIZE / 2); mfd_fail_shrink()
428 r = ftruncate(fd, MFD_DEF_SIZE * 2); mfd_assert_grow()
434 mfd_assert_size(fd, MFD_DEF_SIZE * 2); mfd_assert_grow()
439 MFD_DEF_SIZE * 4); mfd_assert_grow()
445 mfd_assert_size(fd, MFD_DEF_SIZE * 4); mfd_assert_grow()
452 r = ftruncate(fd, MFD_DEF_SIZE * 2); mfd_fail_grow()
461 MFD_DEF_SIZE * 4); mfd_fail_grow()
470 static char buf[MFD_DEF_SIZE * 8]; mfd_assert_grow_write()
479 mfd_assert_size(fd, MFD_DEF_SIZE * 8); mfd_assert_grow_write()
484 static char buf[MFD_DEF_SIZE * 8]; mfd_fail_grow_write()
591 MFD_DEF_SIZE, test_basic()
622 MFD_DEF_SIZE, test_basic()
641 MFD_DEF_SIZE, test_seal_write()
665 MFD_DEF_SIZE, test_seal_shrink()
689 MFD_DEF_SIZE, test_seal_grow()
713 MFD_DEF_SIZE, test_seal_resize()
737 MFD_DEF_SIZE, test_share_dup()
777 MFD_DEF_SIZE, test_share_mmap()
787 munmap(p, MFD_DEF_SIZE); test_share_mmap()
793 munmap(p, MFD_DEF_SIZE); test_share_mmap()
809 MFD_DEF_SIZE, test_share_open()
850 MFD_DEF_SIZE, test_share_fork()
H A Dfuse_test.c35 #define MFD_DEF_SIZE 8192 macro
129 MFD_DEF_SIZE, mfd_assert_mmap_shared()
147 MFD_DEF_SIZE, mfd_assert_mmap_private()
180 munmap(global_p, MFD_DEF_SIZE); sealing_thread_fn()
230 static const char zero[MFD_DEF_SIZE]; main()
251 MFD_DEF_SIZE, main()
270 r = read(fd, p, MFD_DEF_SIZE); main()
297 if (was_sealed && memcmp(p, zero, MFD_DEF_SIZE)) { main()
300 } else if (!was_sealed && !memcmp(p, zero, MFD_DEF_SIZE)) { main()

Completed in 326 milliseconds