/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | mlock2-tests.c | 346 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 D | on-fault-limit.c | 24 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 D | mlock2-tests.c | 345 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 D | on-fault-limit.c | 20 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 D | futex-hash.c | 61 OPT_BOOLEAN( 'm', "mlockall", ¶ms.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 D | futex-lock-pi.c | 53 OPT_BOOLEAN( 'm', "mlockall", ¶ms.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 D | futex-wake.c | 57 OPT_BOOLEAN( 'm', "mlockall", ¶ms.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 D | futex-wake-parallel.c | 67 OPT_BOOLEAN( 'm', "mlockall", ¶ms.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 D | futex-requeue.c | 57 OPT_BOOLEAN( 'm', "mlockall", ¶ms.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 D | futex.h | 19 bool mlockall; member
|
/kernel/liteos_a/testsuites/unittest/fuzz/ |
H A D | mlockall_fuzzer.cpp | 42 mlockall(number); in TestMlockall()
|
/kernel/linux/linux-5.10/tools/laptop/freefall/ |
H A D | freefall.c | 143 mlockall(MCL_CURRENT|MCL_FUTURE); in main()
|
/kernel/linux/linux-6.6/tools/laptop/freefall/ |
H A D | freefall.c | 143 mlockall(MCL_CURRENT|MCL_FUTURE); in main()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | sys_ni.c | 280 COND_SYSCALL(mlockall); variable
|
/kernel/linux/linux-6.6/kernel/ |
H A D | sys_ni.c | 181 COND_SYSCALL(mlockall); variable
|
/kernel/linux/linux-5.10/mm/ |
H A D | mlock.c | 759 * 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 D | mlock.c | 366 * 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()
|