Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/src/linux-oracle-6.8-headers-6.8.0-1028/tools/testing/selftests/damon/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 if [ $EUID -ne 0 ] then echo "Run as root" exit $ksft_skip fi damon_reclaim_enabled="/sys/module/damon_reclaim/parameters/enabled" if [ ! -f "$damon_reclaim_enabled" ] then echo "No 'enabled' file. Maybe DAMON_RECLAIM not built" exit $ksft_skip fi nr_kdamonds=$(pgrep kdamond | wc -l) if [ "$nr_kdamonds" -ne 0 ] then echo "Another kdamond is running" exit $ksft_skip fi echo Y > "$damon_reclaim_enabled" nr_kdamonds=$(pgrep kdamond | wc -l) if [ "$nr_kdamonds" -ne 1 ] then echo "kdamond is not turned on" exit 1 fi echo N > "$damon_reclaim_enabled" nr_kdamonds=$(pgrep kdamond | wc -l) if [ "$nr_kdamonds" -ne 0 ] then echo "kdamond is not turned off" exit 1 fi |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0037 ]-- |