Searched refs:SYSFS (Results 1 - 7 of 7) sorted by relevance

/linux-master/tools/testing/selftests/cpu-hotplug/
H A Dcpu-on-off-test.sh4 SYSFS=
20 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
22 if [ ! -d "$SYSFS" ]; then
27 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then
33 online_cpus=`cat $SYSFS/devices/system/cpu/online`
41 present_cpus=`cat $SYSFS/devices/system/cpu/present`
47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
63 for cpu in $SYSFS/devices/system/cpu/cpu*; do
82 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online
87 grep -q 0 $SYSFS/device
[all...]
/linux-master/tools/testing/selftests/gpio/
H A Dgpio-mockup-sysfs.sh4 # Overrides functions in gpio-mockup.sh to test using the GPIO SYSFS uAPI
6 SYSFS=`grep -w sysfs /proc/mounts | cut -f2 -d' '`
7 [ -d "$SYSFS" ] || skip "sysfs is not mounted"
9 GPIO_SYSFS="${SYSFS}/class/gpio"
12 PLATFORM_SYSFS=$SYSFS/devices/platform
/linux-master/tools/testing/selftests/cpufreq/
H A 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
H A Dmain.sh12 SYSFS=
49 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
51 if [ ! -d "$SYSFS" ]; then
56 CPUROOT=$SYSFS/devices/system/cpu
/linux-master/tools/testing/selftests/memory-hotplug/
H A Dmem-on-off-test.sh4 SYSFS=
18 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
20 if [ ! -d "$SYSFS" ]; then
25 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then
30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
43 for memory in $SYSFS/devices/system/memory/memory*; do
63 grep -q online $SYSFS/devices/system/memory/memory$1/state
68 grep -q offline $SYSFS/devices/system/memory/memory$1/state
73 echo online > $SYSFS/devices/system/memory/memory$1/state
78 echo offline > $SYSFS/device
[all...]
/linux-master/tools/testing/selftests/amd-pstate/
H A Drun.sh29 SYSFS=
298 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
300 if [ ! -d "$SYSFS" ]; then
305 CPUROOT=$SYSFS/devices/system/cpu
/linux-master/tools/lib/api/fs/
H A Dfs.c147 FS(sysfs, sysfs, SYSFS);

Completed in 138 milliseconds