Lines Matching refs:mlock
3 * It tests the mlock/mlock2() when they are invoked
123 * Test mlock/mlock2() on provided memory chunk.
124 * It expects the mlock/mlock2() to be successful (within rlimit)
127 * test will choose start/len randomly to perform mlock/mlock2
132 * So we always expect a success of mlock/mlock2.
149 printf("alloc_size[%d] < %u rlimit,lead to mlock failure\n",
157 * - choose mlock/mlock2 randomly
167 ret = mlock(p + start_offset, lock_size);
173 printf("%s() failure at |%p(%d)| mlock:|%p(%d)|\n",
174 is_mlock ? "mlock" : "mlock2",
202 * We expect the mlock/mlock2() to be fail (outof limitation)
205 * test will randomly choose start/len and perform mlock/mlock2
210 * So we always expect a failure of mlock/mlock2.
239 ret = mlock(p + start_offset, lock_size);
244 printf("%s() succeeds? on %p(%d) mlock%p(%d)\n",
245 is_mlock ? "mlock" : "mlock2",