Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/zram/
Dzram_lib.sh91 local sys_path="/sys/block/zram${i}/max_comp_streams"
92 echo $max_s > $sys_path || \
93 echo "FAIL failed to set '$max_s' to $sys_path"
95 local max_streams=$(cat $sys_path)
101 echo "$sys_path = '$max_streams' ($i/$dev_num)"
115 local sys_path="/sys/block/zram${i}/comp_algorithm"
116 echo "$alg" > $sys_path || \
117 echo "FAIL can't set '$alg' to $sys_path"
119 echo "$sys_path = '$alg' ($i/$dev_num)"
130 local sys_path="/sys/block/zram${i}/disksize"
[all …]
/Linux-v5.10/tools/testing/selftests/firmware/
Dfw_namespace.c39 static void trigger_fw(const char *fw_name, const char *sys_path) in trigger_fw() argument
43 fd = open(sys_path, O_WRONLY); in trigger_fw()
67 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
114 trigger_fw(fw_name, sys_path); in test_fw_in_ns()
122 char *sys_path; in main() local
131 sys_path = argv[1]; in main()
139 if (!test_fw_in_ns(fw_name, sys_path, false)) in main()
144 if (test_fw_in_ns(fw_name, sys_path, true)) in main()
/Linux-v5.10/tools/perf/tests/
Dparse-events.c1474 char *sys_path; in count_tracepoints() local
1485 sys_path = get_events_file(events_ent->d_name); in count_tracepoints()
1486 TEST_ASSERT_VAL("Can't get sys path", sys_path); in count_tracepoints()
1488 sys_dir = opendir(sys_path); in count_tracepoints()
1502 put_events_file(sys_path); in count_tracepoints()