"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-userfaultfd.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-userfaultfd.c  (stress-ng-0.12.09.tar.xz):stress-userfaultfd.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 222 skipping to change at line 222
rc = EXIT_NO_RESOURCE; rc = EXIT_NO_RESOURCE;
pr_err("%s: mmap failed\n", args->name); pr_err("%s: mmap failed\n", args->name);
goto free_zeropage; goto free_zeropage;
} }
/* Get userfault fd */ /* Get userfault fd */
if ((fd = shim_userfaultfd(0)) < 0) { if ((fd = shim_userfaultfd(0)) < 0) {
switch (errno) { switch (errno) {
case EPERM: case EPERM:
pr_inf("%s: stressor will be skipped, insufficient " pr_inf("%s: stressor will be skipped, insufficient "
"privilege", args->name); "privilege\n", args->name);
rc = EXIT_NO_RESOURCE; rc = EXIT_NO_RESOURCE;
break; break;
case ENOSYS: case ENOSYS:
if (args->instance == 0) if (args->instance == 0)
pr_inf("%s: stressor will be skipped, " pr_inf("%s: stressor will be skipped, "
"userfaultfd not supported\n", "userfaultfd not supported\n",
args->name); args->name);
rc = EXIT_NOT_IMPLEMENTED; rc = EXIT_NOT_IMPLEMENTED;
break; break;
default: default:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)