Home
last modified time | relevance | path

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

/tools/testing/selftests/cpu-hotplug/
A Dcpu-on-off-test.sh4 SYSFS=
20 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
22 if [ ! -d "$SYSFS" ]; 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/devices/system/cpu/cpu$1/online
92 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online
[all …]
/tools/testing/selftests/pcie_bwctrl/
A Dset_pcie_cooling_state.sh4 SYSFS=
21 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
23 if [ ! -d "$SYSFS" ]; then
28 if ! ls $SYSFS/class/thermal/cooling_device* > /dev/null 2>&1; then
33 ports=`grep -e "^$PCIEPORTTYPE" $SYSFS/class/thermal/cooling_device*/type | wc -l`
73 pcidir="$SYSFS/bus/pci/devices/`sed -e "s|^${PCIEPORTTYPE}_||g" $typefile`"
/tools/testing/selftests/memory-hotplug/
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/devices/system/memory/memory$1/state
/tools/testing/selftests/gpio/
A Dgpio-mockup-sysfs.sh6 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
/tools/testing/selftests/cpufreq/
A Dcpufreq.sh217 if [ ! -d $SYSFS/power/ -o ! -f $SYSFS/power/state ]; then
218 printf "$SYSFS/power/state not available\n"
232 present=$(cat $SYSFS/power/state | grep $filename)
235 printf "Tried to $1 but $filename isn't present in $SYSFS/power/state\n"
255 echo $filename > $SYSFS/power/state
A Dmain.sh15 SYSFS=
51 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
53 if [ ! -d "$SYSFS" ]; then
58 CPUROOT=$SYSFS/devices/system/cpu
/tools/testing/selftests/amd-pstate/
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
/tools/lib/api/fs/
A Dfs.c147 FS(sysfs, sysfs, SYSFS);

Completed in 12 milliseconds