Lines Matching full:sysctl
15 # This performs a series tests against the proc sysctl interface.
20 TEST_NAME="sysctl"
53 if [ -z $SYSCTL ]; then
54 SYSCTL="/proc/sys/debug/test_sysctl"
117 if [ ! -d $SYSCTL ]; then
224 echo "== Testing sysctl behavior against ${TARGET} =="
237 echo -n "Checking sysctl is not set to test value ... "
245 echo -n "Writing sysctl from shell ... "
254 echo -n "Resetting sysctl to original value ... "
267 echo -n "Writing entire sysctl in single write ... "
277 echo -n "Writing middle of sysctl after synchronized seek ... "
287 echo -n "Writing beyond end of sysctl ... "
297 echo -n "Writing sysctl with multiple long writes ... "
330 # sysctl conversion functions receive a boolean sign and ulong
334 # uint-typed sysctl should fail.
553 echo -n "Writing entire sysctl in short writes ... "
563 echo -n "Writing middle of sysctl after unsynchronized seek ... "
573 echo -n "Checking sysctl maxlen is at least $MAXLEN ... "
584 echo -n "Checking sysctl keeps original string on overflow append ... "
595 echo -n "Checking sysctl stays NULL terminated on write ... "
606 echo -n "Checking sysctl stays NULL terminated on overwrite ... "
622 TARGET="${SYSCTL}/$1"
683 TARGET="${SYSCTL}/$(get_test_target 0001)"
695 TARGET="${SYSCTL}/$(get_test_target 0002)"
698 TEST_STR="Testing sysctl"
708 TARGET="${SYSCTL}/$(get_test_target 0003)"
721 TARGET="${SYSCTL}/$(get_test_target 0004)"
734 TARGET="${SYSCTL}/$(get_test_target 0005)"
743 TARGET="${SYSCTL}/bitmap_0001"
751 TARGET="${SYSCTL}/boot_int"
777 FOUND=$(grep -c "sysctl[./]debug[./]test_sysctl[./]boot_int=1" /proc/cmdline)
785 …echo "To perform this test, make sure kernel is booted with parameter: sysctl.debug.test_sysctl.bo…
791 TARGET="${SYSCTL}/match_int"
824 echo "0007 x $(get_test_count 0007) - tests setting sysctl from kernel boot param"
825 echo "0008 x $(get_test_count 0008) - tests sysctl macro values match"