Home
last modified time | relevance | path

Searched refs:mlockall (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dmlock2-tests.c346 if (mlockall(MCL_CURRENT)) { in test_munlockall()
347 perror("mlockall(MCL_CURRENT)"); in test_munlockall()
372 if (mlockall(MCL_CURRENT | MCL_ONFAULT)) { in test_munlockall()
373 perror("mlockall(MCL_CURRENT | MCL_ONFAULT)"); in test_munlockall()
388 if (mlockall(MCL_CURRENT | MCL_FUTURE)) { in test_munlockall()
389 perror("mlockall(MCL_CURRENT | MCL_FUTURE)"); in test_munlockall()
500 if (mlockall(MCL_CURRENT | MCL_ONFAULT | MCL_FUTURE)) { in test_mlockall()
501 perror("mlockall"); in test_mlockall()
H A Don-fault-limit.c24 if (mlockall(MCL_ONFAULT | MCL_FUTURE)) { in test_limit()
25 perror("mlockall"); in test_limit()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dmlock2-tests.c345 if (mlockall(MCL_CURRENT)) { in test_munlockall()
346 perror("mlockall(MCL_CURRENT)"); in test_munlockall()
371 if (mlockall(MCL_CURRENT | MCL_ONFAULT)) { in test_munlockall()
372 perror("mlockall(MCL_CURRENT | MCL_ONFAULT)"); in test_munlockall()
387 if (mlockall(MCL_CURRENT | MCL_FUTURE)) { in test_munlockall()
388 perror("mlockall(MCL_CURRENT | MCL_FUTURE)"); in test_munlockall()
499 if (mlockall(MCL_CURRENT | MCL_ONFAULT | MCL_FUTURE)) { in test_mlockall()
500 perror("mlockall"); in test_mlockall()
H A Don-fault-limit.c20 if (mlockall(MCL_ONFAULT | MCL_FUTURE)) { in test_limit()
21 perror("mlockall"); in test_limit()
/kernel/linux/linux-6.6/tools/perf/bench/
H A Dfutex-hash.c61 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
150 if (params.mlockall) { in bench_futex_hash()
151 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_hash()
152 err(EXIT_FAILURE, "mlockall"); in bench_futex_hash()
H A Dfutex-lock-pi.c53 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
184 if (params.mlockall) { in bench_futex_lock_pi()
185 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_lock_pi()
186 err(EXIT_FAILURE, "mlockall"); in bench_futex_lock_pi()
H A Dfutex-wake.c57 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
161 if (params.mlockall) { in bench_futex_wake()
162 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_wake()
163 err(EXIT_FAILURE, "mlockall"); in bench_futex_wake()
H A Dfutex-wake-parallel.c67 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
262 if (params.mlockall) { in bench_futex_wake_parallel()
263 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_wake_parallel()
264 err(EXIT_FAILURE, "mlockall"); in bench_futex_wake_parallel()
H A Dfutex-requeue.c57 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
186 if (params.mlockall) { in bench_futex_requeue()
187 if (mlockall(MCL_CURRENT | MCL_FUTURE)) in bench_futex_requeue()
188 err(EXIT_FAILURE, "mlockall"); in bench_futex_requeue()
H A Dfutex.h19 bool mlockall; member
/kernel/liteos_a/testsuites/unittest/fuzz/
H A Dmlockall_fuzzer.cpp42 mlockall(number); in TestMlockall()
/kernel/linux/linux-5.10/tools/laptop/freefall/
H A Dfreefall.c143 mlockall(MCL_CURRENT|MCL_FUTURE); in main()
/kernel/linux/linux-6.6/tools/laptop/freefall/
H A Dfreefall.c143 mlockall(MCL_CURRENT|MCL_FUTURE); in main()
/kernel/linux/linux-5.10/kernel/
H A Dsys_ni.c280 COND_SYSCALL(mlockall); variable
/kernel/linux/linux-6.6/kernel/
H A Dsys_ni.c181 COND_SYSCALL(mlockall); variable
/kernel/linux/linux-5.10/mm/
H A Dmlock.c759 * Take the MCL_* flags passed into mlockall (or 0 if called from munlockall)
763 * There are a couple of subtleties with this. If mlockall() is called multiple
764 * times with different flags, the values do not necessarily stack. If mlockall
804 SYSCALL_DEFINE1(mlockall, int, flags) in SYSCALL_DEFINE1()
/kernel/linux/linux-6.6/mm/
H A Dmlock.c366 * Called for mlock(), mlock2() and mlockall(), to set @vma VM_LOCKED;
658 * Take the MCL_* flags passed into mlockall (or 0 if called from munlockall)
662 * There are a couple of subtleties with this. If mlockall() is called multiple
663 * times with different flags, the values do not necessarily stack. If mlockall
705 SYSCALL_DEFINE1(mlockall, int, flags) in SYSCALL_DEFINE1()

Completed in 9 milliseconds