Home
last modified time | relevance | path

Searched refs:sys_path (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/testing/selftests/zram/
Dzram_lib.sh132 local sys_path="/sys/block/zram${i}/max_comp_streams"
133 echo $max_s > $sys_path || \
134 echo "FAIL failed to set '$max_s' to $sys_path"
136 local max_streams=$(cat $sys_path)
142 echo "$sys_path = '$max_streams'"
157 local sys_path="/sys/block/zram${i}/comp_algorithm"
158 echo "$alg" > $sys_path || \
159 echo "FAIL can't set '$alg' to $sys_path"
161 echo "$sys_path = '$alg'"
172 local sys_path="/sys/block/zram${i}/disksize"
[all …]
/linux-6.12.1/tools/testing/selftests/firmware/
Dfw_namespace.c35 static void trigger_fw(const char *fw_name, const char *sys_path) in trigger_fw() argument
39 fd = open(sys_path, O_WRONLY); in trigger_fw()
63 static bool test_fw_in_ns(const char *fw_name, const char *sys_path, bool block_fw_in_parent_ns) in test_fw_in_ns() argument
110 trigger_fw(fw_name, sys_path); in test_fw_in_ns()
118 char *sys_path; in main() local
127 sys_path = argv[1]; in main()
136 if (!test_fw_in_ns(fw_name, sys_path, false)) in main()
141 if (test_fw_in_ns(fw_name, sys_path, true)) in main()
/linux-6.12.1/tools/testing/selftests/hid/tests/
Dbase_device.py73 def __init__(self, sys_path): argument
74 self.max_brightness = SysfsFile(sys_path / "max_brightness").int_value
75 self.__brightness = SysfsFile(sys_path / "brightness")
89 def __init__(self, sys_path): argument
90 self._capacity = SysfsFile(sys_path / "capacity")
91 self._status = SysfsFile(sys_path / "status")
92 self._type = SysfsFile(sys_path / "type")
158 id = int(event.sys_path.strip().split(".")[-1], 16)
Dbase.py262 str(self.uhdev.sys_path),
290 ["udev-hid-bpf", "--verbose", "remove", str(self.uhdev.sys_path)],
/linux-6.12.1/tools/perf/tests/
Dparse-events.c1832 char *sys_path; in count_tracepoints() local
1843 sys_path = get_events_file(events_ent->d_name); in count_tracepoints()
1844 TEST_ASSERT_VAL("Can't get sys path", sys_path); in count_tracepoints()
1846 sys_dir = opendir(sys_path); in count_tracepoints()
1860 put_events_file(sys_path); in count_tracepoints()