Lines Matching +defs:file +defs:tests
211 long current, file;
225 file = cg_read_key_long(cgroup, "memory.stat", "file ");
226 if (file < 0)
229 if (!values_close(file, current, 10))
276 * We'll open a few FDs for the same memory.peak file to exercise the free-path
290 * this kernel supports writing to that file in the first place. (by
291 * checking the writable bit on the file's st_mode)
915 * amount of memory (from both anon and file, if possible).
943 * If swap is enabled, try to reclaim from both anon and file, else try
944 * to reclaim from file only.
972 * and file if swap is enabled.
1060 * whether this kernel supports writing to that file in the first
1061 * place. (by checking the writable bit on the file's st_mode)
1632 } tests[] = {
1679 for (i = 0; i < ARRAY_SIZE(tests); i++) {
1680 switch (tests[i].fn(root)) {
1682 ksft_test_result_pass("%s\n", tests[i].name);
1685 ksft_test_result_skip("%s\n", tests[i].name);
1689 ksft_test_result_fail("%s\n", tests[i].name);