Home
last modified time | relevance | path

Searched refs:sysfs (Results 1 – 25 of 60) sorted by relevance

123

/tools/testing/selftests/cgroup/
A Dwith_stress.sh19 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 Ddscr_sysfs_test.c32 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 Dfs.c147 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 Dfs.h33 FS(sysfs)
/tools/testing/selftests/power_supply/
A Dhelpers.sh16 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 Deeh-functions.sh166 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 DLenovo_ThinkPad_P1_Gen2.conf13 sysfs [
24 sysfs [
/tools/testing/selftests/damon/
A DMakefile9 TEST_PROGS += sysfs.sh
10 TEST_PROGS += sysfs.py
/tools/perf/arch/arm64/util/
A Dheader.c21 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.gitignore14 lib/sysfs.lo
15 lib/sysfs.o
/tools/thermal/tmon/
A DREADME15 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 Drun.sh298 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 Dset_pcie_cooling_state.sh21 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
24 echo $skipmsg sysfs is not mounted >&2
/tools/testing/selftests/livepatch/
A DMakefile12 test-sysfs.sh \
/tools/testing/selftests/gpio/
A DMakefile4 TEST_FILES := gpio-mockup-sysfs.sh
A Dgpio-mockup-sysfs.sh6 SYSFS=`grep -w sysfs /proc/mounts | cut -f2 -d' '`
A Dgpio-mockup.sh342 sysfs)
343 source $BASE/gpio-mockup-sysfs.sh
/tools/perf/tests/
A Dpmu.c305 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 Dbase_device.py221 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 Dcpu-on-off-test.sh20 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
23 echo $msg sysfs is not mounted >&2
/tools/testing/selftests/memory-hotplug/
A Dmem-on-off-test.sh18 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
21 echo $msg sysfs is not mounted >&2
/tools/perf/util/
A Dhwmon_pmu.c710 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 Dcgskip.txt49 # debugfs and sysfs setup
/tools/testing/selftests/cpufreq/
A Dmain.sh51 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
/tools/testing/selftests/hid/
A Dhid_common.h380 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()

Completed in 39 milliseconds

123