| /tools/testing/selftests/cgroup/ |
| A D | with_stress.sh | 19 echo $verb$subsys_ctrl >$sysfs/cgroup.subtree_control 28 sysfs=`mount -t cgroup2 | head -1 | awk '{ print $3 }'` 29 if [ ! -d "$sysfs" ]; then 34 if ! echo +$subsys_ctrl >$sysfs/cgroup.subtree_control ; then 35 echo "Skipping: cannot enable $subsys_ctrl in $sysfs" >&2 39 if ! echo -$subsys_ctrl >$sysfs/cgroup.subtree_control ; then 40 echo "Skipping: cannot disable $subsys_ctrl in $sysfs" >&2 50 sysfs=
|
| /tools/testing/selftests/powerpc/dscr/ |
| A D | dscr_sysfs_test.c | 32 DIR *sysfs; in check_all_cpu_dscr_defaults() local 36 sysfs = opendir(CPU_PATH); in check_all_cpu_dscr_defaults() 37 if (!sysfs) { in check_all_cpu_dscr_defaults() 42 while ((dp = readdir(sysfs))) { in check_all_cpu_dscr_defaults() 59 closedir(sysfs); in check_all_cpu_dscr_defaults() 63 closedir(sysfs); in check_all_cpu_dscr_defaults()
|
| /tools/lib/api/fs/ |
| A D | fs.c | 147 FS(sysfs, sysfs, SYSFS); 402 const char *sysfs = sysfs__mountpoint(); in sysfs__read_ull_base() local 404 if (!sysfs) in sysfs__read_ull_base() 425 const char *sysfs = sysfs__mountpoint(); in sysfs__read_int() local 427 if (!sysfs) in sysfs__read_int() 438 const char *sysfs = sysfs__mountpoint(); in sysfs__read_str() local 440 if (!sysfs) in sysfs__read_str() 454 const char *sysfs = sysfs__mountpoint(); in sysfs__read_bool() local 456 if (!sysfs) in sysfs__read_bool() 499 const char *sysfs = sysfs__mountpoint(); in sysfs__write_int() local [all …]
|
| A D | fs.h | 33 FS(sysfs)
|
| /tools/testing/selftests/power_supply/ |
| A D | helpers.sh | 16 TEST_NAME="$DEVNAME".sysfs."$PROP" 60 TEST_NAME="$DEVNAME".sysfs."$PROP" 80 TEST_NAME="$DEVNAME".sysfs."$PROP" 95 TEST_NAME="$DEVNAME".sysfs."$PROP" 113 TEST_NAME="$DEVNAME".sysfs."$PROP"
|
| /tools/testing/selftests/powerpc/eeh/ |
| A D | eeh-functions.sh | 166 sysfs="/sys/bus/pci/devices/$dev" 167 if [ ! -e "$sysfs/sriov_numvfs" ] ; then 173 [ ! -f "$sysfs/of_node/ibm,is-open-sriov-pf" ] && 174 [ ! -f "$sysfs/of_node/ibm,open-sriov-vf-bar-info" ] ; then
|
| /tools/testing/selftests/alsa/conf.d/ |
| A D | Lenovo_ThinkPad_P1_Gen2.conf | 13 sysfs [ 24 sysfs [
|
| /tools/testing/selftests/damon/ |
| A D | Makefile | 9 TEST_PROGS += sysfs.sh 10 TEST_PROGS += sysfs.py
|
| /tools/perf/arch/arm64/util/ |
| A D | header.c | 21 const char *sysfs = sysfs__mountpoint(); in _get_cpuid() local 24 if (!sysfs || sz < MIDR_SIZE) in _get_cpuid() 27 scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d" MIDR, sysfs, cpu.cpu); in _get_cpuid()
|
| /tools/power/cpupower/ |
| A D | .gitignore | 14 lib/sysfs.lo 15 lib/sysfs.o
|
| /tools/thermal/tmon/ |
| A D | README | 15 introduced sysfs entry at /sys/class/thermal with a matrix of symbolic 28 sysfs.c : access to the generic thermal sysfs
|
| /tools/testing/selftests/amd-pstate/ |
| A D | run.sh | 298 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` 301 echo $msg sysfs is not mounted >&2 309 echo $msg cpus not available in sysfs >&2 314 echo $msg cpufreq directory not available in sysfs >&2
|
| /tools/testing/selftests/pcie_bwctrl/ |
| A D | set_pcie_cooling_state.sh | 21 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` 24 echo $skipmsg sysfs is not mounted >&2
|
| /tools/testing/selftests/livepatch/ |
| A D | Makefile | 12 test-sysfs.sh \
|
| /tools/testing/selftests/gpio/ |
| A D | Makefile | 4 TEST_FILES := gpio-mockup-sysfs.sh
|
| A D | gpio-mockup-sysfs.sh | 6 SYSFS=`grep -w sysfs /proc/mounts | cut -f2 -d' '`
|
| A D | gpio-mockup.sh | 342 sysfs) 343 source $BASE/gpio-mockup-sysfs.sh
|
| /tools/perf/tests/ |
| A D | pmu.c | 305 const char *sysfs = sysfs__mountpoint(); in test__pmu_event_names() local 308 if (!sysfs) { in test__pmu_event_names() 313 snprintf(path, sizeof(path), "%s/bus/event_source/devices/", sysfs); in test__pmu_event_names() 325 sysfs, pmu_dent->d_name); in test__pmu_event_names() 333 sysfs, pmu_dent->d_name); in test__pmu_event_names()
|
| /tools/testing/selftests/hid/tests/ |
| A D | base_device.py | 221 def __init__(self: "EvdevDevice", sysfs: Path) -> None: 222 self.sysfs = sysfs 229 with open(sysfs.parent / "uevent") as f: 245 return Path("/dev/input") / self.sysfs.name
|
| /tools/testing/selftests/cpu-hotplug/ |
| A D | cpu-on-off-test.sh | 20 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` 23 echo $msg sysfs is not mounted >&2
|
| /tools/testing/selftests/memory-hotplug/ |
| A D | mem-on-off-test.sh | 18 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` 21 echo $msg sysfs is not mounted >&2
|
| /tools/perf/util/ |
| A D | hwmon_pmu.c | 710 const char *sysfs = sysfs__mountpoint(); in perf_pmus__read_hwmon_pmus() local 712 if (!sysfs) in perf_pmus__read_hwmon_pmus() 715 scnprintf(buf, sizeof(buf), "%s/class/hwmon/", sysfs); in perf_pmus__read_hwmon_pmus() 730 scnprintf(buf, sizeof(buf), "%s/class/hwmon/%s", sysfs, class_hwmon_ent->d_name); in perf_pmus__read_hwmon_pmus() 734 sysfs, class_hwmon_ent->d_name); in perf_pmus__read_hwmon_pmus() 740 sysfs, class_hwmon_ent->d_name); in perf_pmus__read_hwmon_pmus()
|
| /tools/power/pm-graph/config/ |
| A D | cgskip.txt | 49 # debugfs and sysfs setup
|
| /tools/testing/selftests/cpufreq/ |
| A D | main.sh | 51 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
|
| /tools/testing/selftests/hid/ |
| A D | hid_common.h | 380 char sysfs[1024]; in get_hidraw() local 397 sprintf(sysfs, "%s/%s/hidraw", workdir, dir->d_name); in get_hidraw() 399 subd = opendir(sysfs); in get_hidraw()
|