Lines Matching defs:test
14 /* The unit test doesn't need a large or random size, make it 32MB for now */
67 /* Arguments to be passed over to each uffd unit test */
120 * return 1 even if some test failed as long as uffd supported, because in
183 uffd_setup_environment(uffd_test_args_t *args, uffd_test_case_t *test,
198 /* Initialize test arguments */
201 return uffd_test_ctx_init(test->uffd_feature_required, errmsg);
204 static bool uffd_feature_supported(uffd_test_case_t *test)
211 return (features & test->uffd_feature_required) ==
212 test->uffd_feature_required;
259 * all needs of the test cases (e.g., trigger unshare, trigger fork() early
264 struct pin_longterm_test test = {
278 if (ioctl(args->gup_fd, PIN_LONGTERM_TEST_START, &test)) {
421 * This is an attempt for zapping the pgtable so as to test the
648 * For non-cooperative userfaultfd test we fork() a process that will
660 * For signal test(UFFD_FEATURE_SIGBUS), signal_test = 1, we register
661 * monitored area, generate pagefaults and test that signal is delivered.
663 * test robustness use case - we release monitored area, fork a process
804 uffd_test_fail("Signal test failed, userfaults: %ld", userfaults);
913 * Registers a range with MISSING mode only for zeropage test. Return true
1067 * Note that _UFFDIO_ZEROPAGE is tested separately in the zeropage test.
1198 * for it so this is the best we can test against.
1207 /* We can't test MADV_COLLAPSE, so try our luck */
1252 puts(" -f: test name to filter (e.g., event)");
1265 uffd_test_case_t *test;
1299 test = &uffd_tests[i];
1300 if (test_filter && !strstr(test->name, test_filter))
1303 printf("%s\n", test->name);
1308 if (!(test->mem_targets & mem_type->mem_flag))
1311 uffd_test_start("%s on %s", test->name, mem_type->name);
1318 if (!uffd_feature_supported(test)) {
1322 if (uffd_setup_environment(&args, test, mem_type,
1327 test->uffd_fn(&args);