Lines Matching refs:mlock
3 * It tests the mlock/mlock2() when they are invoked
122 * Test mlock/mlock2() on provided memory chunk.
123 * It expects the mlock/mlock2() to be successful (within rlimit)
126 * test will choose start/len randomly to perform mlock/mlock2
131 * So we always expect a success of mlock/mlock2.
148 printf("alloc_size[%d] < %u rlimit,lead to mlock failure\n",
156 * - choose mlock/mlock2 randomly
166 ret = mlock(p + start_offset, lock_size);
172 printf("%s() failure at |%p(%d)| mlock:|%p(%d)|\n",
173 is_mlock ? "mlock" : "mlock2",
201 * We expect the mlock/mlock2() to be fail (outof limitation)
204 * test will randomly choose start/len and perform mlock/mlock2
209 * So we always expect a failure of mlock/mlock2.
238 ret = mlock(p + start_offset, lock_size);
243 printf("%s() succeeds? on %p(%d) mlock%p(%d)\n",
244 is_mlock ? "mlock" : "mlock2",