Home
last modified time | relevance | path

Searched refs:SYSFS (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_setup.sh31 SYSFS=$(mount 2>/dev/null | awk '$5 == "sysfs" { print $3 }')
32 if [ "x$SYSFS" = x ] ; then
34 SYSFS=/sys
36 test -d $SYSFS || mkdir -p $SYSFS 2>/dev/null
38 tst_brkm TBROK "Failed to mkdir $SYSFS"
40 if ! mount -t sysfs sysfs $SYSFS 2>/dev/null ; then
41 tst_brkm TBROK "Failed to mount $SYSFS"
52 SECURITYFS="$SYSFS/kernel/security"
Dima_tpm.sh100 PCRS_PATH=$(find /$SYSFS/devices/ | grep pcrs)
/external/linux-kselftest/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh4 SYSFS=
17 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
19 if [ ! -d "$SYSFS" ]; then
24 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then
30 online_cpus=`cat $SYSFS/devices/system/cpu/online`
40 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
56 for cpu in $SYSFS/devices/system/cpu/cpu*; do
75 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online
80 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online
85 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online
[all …]
/external/linux-kselftest/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh4 SYSFS=
15 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
17 if [ ! -d "$SYSFS" ]; then
22 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then
27 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
40 for memory in $SYSFS/devices/system/memory/memory*; do
60 grep -q online $SYSFS/devices/system/memory/memory$1/state
65 grep -q offline $SYSFS/devices/system/memory/memory$1/state
70 echo online > $SYSFS/devices/system/memory/memory$1/state
75 echo offline > $SYSFS/devices/system/memory/memory$1/state
/external/linux-kselftest/tools/testing/selftests/cpufreq/
Dcpufreq.sh211 if [ ! -d $SYSFS/power/ -o ! -f $SYSFS/power/state ]; then
212 printf "$SYSFS/power/state not available\n"
226 present=$(cat $SYSFS/power/state | grep $filename)
229 printf "Tried to $1 but $filename isn't present in $SYSFS/power/state\n"
235 echo $filename > $SYSFS/power/state
Dmain.sh12 SYSFS=
46 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
48 if [ ! -d "$SYSFS" ]; then
53 CPUROOT=$SYSFS/devices/system/cpu
/external/linux-kselftest/tools/testing/selftests/gpio/
Dgpio-mockup.sh10 SYSFS=
39 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
40 if [ ! -d "$SYSFS" ]; then
44 GPIO_SYSFS=`echo $SYSFS/class/gpio`
45 GPIO_DRV_SYSFS=`echo $SYSFS/devices/platform/$module/gpio`
/external/ltp/testcases/kernel/containers/
DTEST_PLAN.txt25 PROC+SYSFS ISOLATION (NEAR FUTURE)
/external/libmtp/
DChangeLog1493 * examples/hotplug.c: switch to use ATTR{} instead of SYSFS{}