Some additions and fixes related to fdatasync(2) and posix_fallocate(2). * Fix a small issue in VOP_FDATASYNC()'s definition in <sys/vfsops.h>. * Mention fdatasync() in fsync.2 (this basically syncs that manual page with FreeBSD, with a few adjustments). * Add a manual page for posix_fallocate() (from FreeBSD, with a few adjustments). * Mention fdatasync() in the list of reentrant functions in sigaction.2. * In pthread_testcancel.3, mention fdatasync() in the list of functions for which a cancellation point will occur. * Mention VOP_FDATASYNC() in VOP_FSYNC.9 (partly taken from FreeBSD). * Remove a compatibility define in the fsstress tool. Thanks to tkusumi for reviewing.
test/nvmm/demo: Clean up header inclusions * Remove unused header inclusions. * Reorder header inclusions. * Define MSR_APICBASE, APICBASE_BSP and APICBASE_EN locally to be more OS-independent.
NVMM: Update examples and libnvmm tests
testcases/libnvmm: Improve makefile to not write in source tree Both build and dfregress(8) would write output in place in the source tree, which however may be on a readonly mount via NFS. Improve the makefile to cpdup the whole directory to /tmp and then do everything there. (credit to Matt Dillon for the idea)
testcases/libnvmm: Add to dfregress(8) test framework Rewrite and add makefiles to add these testcases to dfregress(8) test framework. Add a handy 'make test' target to easily run the tests. Remove unused ATF test scripts.
Import libnvmm tests from NetBSD-current Branch: NetBSD-current Date: 2021-06-25 Path: tests/lib/libnvmm
test/nvmm/demo: Improve progress logs to help test/debug * Add several more progress logs. * Reduce accepting trap count to 6, reducing the total test time. * Update the example output in README.
test/nvmm/demo: Rewrite makefiles to not write in source tree Rewrite the makefiles so it no longer write in the source tree but output in the /tmp directory. This is useful for building with a NFS-exported readonly mount of the source tree (e.g., used by dillon).
test/nvmm/demo: Make 'smallkern' more self-contained Provide local 'asm.h' and 'trap.h' headers (derived from NetBSD), extract necessary PTE_* and PSL_* defines, making 'smallkern' much more self-contained, which greatly reduces the needed modifications for porting it to DragonFly. Moreover, it helps to keep the ported code working on both operating systems.