1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 << 3 # Runs bpf test using test_bpf kernel module 2 # Runs bpf test using test_bpf kernel module 4 3 5 if /sbin/modprobe -q test_bpf ; then 4 if /sbin/modprobe -q test_bpf ; then 6 /sbin/modprobe -q -r test_bpf; 5 /sbin/modprobe -q -r test_bpf; 7 echo "test_bpf: ok"; 6 echo "test_bpf: ok"; 8 else 7 else 9 echo "test_bpf: [FAIL]"; 8 echo "test_bpf: [FAIL]"; 10 exit 1; 9 exit 1; 11 fi 10 fi
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.