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-5.13-headers-5.13.0-1018/tools/testing/selftests/bpf/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 msg="skip all tests:" if [ "$(id -u)" != "0" ]; then echo $msg please run this as root >&2 exit $ksft_skip fi if [ "$building_out_of_srctree" ]; then # We are in linux-build/kselftest/bpf OUTPUT=../../ else # We are in linux/tools/testing/selftests/bpf OUTPUT=../../../../ fi test_run() { sysctl -w net.core.bpf_jit_enable=$1 2>&1 > /dev/null sysctl -w net.core.bpf_jit_harden=$2 2>&1 > /dev/null echo "[ JIT enabled:$1 hardened:$2 ]" dmesg -C if [ -f ${OUTPUT}/lib/test_bpf.ko ]; then insmod ${OUTPUT}/lib/test_bpf.ko 2> /dev/null if [ $? -ne 0 ]; then rc=1 fi else # Use modprobe dry run to check for missing test_bpf module if ! /sbin/modprobe -q -n test_bpf; then echo "test_bpf: [SKIP]" elif /sbin/modprobe -q test_bpf; then echo "test_bpf: ok" else echo "test_bpf: [FAIL]" rc=1 fi fi rmmod test_bpf 2> /dev/null dmesg | grep FAIL } test_save() { JE=`sysctl -n net.core.bpf_jit_enable` JH=`sysctl -n net.core.bpf_jit_harden` } test_restore() { sysctl -w net.core.bpf_jit_enable=$JE 2>&1 > /dev/null sysctl -w net.core.bpf_jit_harden=$JH 2>&1 > /dev/null } rc=0 test_save test_run 0 0 test_run 1 0 test_run 1 1 test_run 1 2 test_restore exit $rc |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.004 ]-- |