Home | History | Annotate | only in /src/tests/modules
History log of /src/tests/modules
RevisionDateAuthorComments
 1.2 13-Jul-2010  jmmv Get rid of static Atffiles and let bsd.test.mk generate them on the fly.
 1.1 10-Feb-2008  jmmv branches: 1.1.4;
Add preliminary tests (basically a placeholder for now) for the new modules
framework. At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call. The tools are not tested yet.
 1.1.4.2 23-Mar-2008  matt sync with HEAD
 1.1.4.1 10-Feb-2008  matt file Atffile was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
 1.19 26-Apr-2020  maxv Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
 1.18 01-Mar-2020  christos Centralize the base rump libraries into a variable used by all the other
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
 1.17 15-Apr-2019  christos Re-arrange the ufetchstore tests to look like the other ones.
 1.16 06-Apr-2019  thorpej Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
 1.15 23-Feb-2019  kamil Add KCOV - kernel code coverage tracing device

The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
 1.14 25-Jan-2019  christos PR/53908: Alex Raschi: Test that require modules belong in modules; move the
threadpool test from kernel to modules.
 1.13 08-Jan-2018  martin branches: 1.13.2; 1.13.4;
PR 52864: add a test for this bug, from sevan@
 1.12 23-Jan-2016  christos Define _KERNTYPES for things that need it.
 1.11 10-Jun-2014  he Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser. Fixes build for sun2.
 1.10 13-Apr-2012  jruoho branches: 1.10.2; 1.10.8;
Add a helper program that loads a module and returns the errno from modctl(8).

XXX: As noted on tech-kern@, the syscall should be modified to fail
consistently with a given predefined errno on non-MODULAR kernels.
 1.9 17-Feb-2012  jmmv Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.8 27-Aug-2010  pooka branches: 1.8.6; 1.8.8;
tests for builtin modules
 1.7 21-Aug-2010  pgoyette Fix botched update.
 1.6 21-Aug-2010  pgoyette Add a new atf test-case to check that recursive module calls actually work.
 1.5 13-Jul-2010  jmmv Get rid of static Atffiles and let bsd.test.mk generate them on the fly.
 1.4 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.3 01-May-2008  jmmv Convert NetBSD-specific tests that were previously written in C++ to C now
that ATF provides a C-only binding (comes with 0.5).
 1.2 02-Mar-2008  jmmv branches: 1.2.2; 1.2.4;
Add tests for load-time parameter passing to modules, both at the syscall
level through modctl(2) and at the user level through the modload(8)
utility.
 1.1 10-Feb-2008  jmmv branches: 1.1.2;
Add preliminary tests (basically a placeholder for now) for the new modules
framework. At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call. The tools are not tested yet.
 1.1.2.1 24-Mar-2008  keiichi sync with head.
 1.2.4.1 18-May-2008  yamt sync with head.
 1.2.2.2 23-Mar-2008  matt sync with HEAD
 1.2.2.1 02-Mar-2008  matt file Makefile was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
 1.8.8.1 17-May-2012  riz Pull up following revision(s) (requested by jmmv in ticket #8):
tests/modules/t_abi_uvm.sh: revision 1.1
tests/modules/k_uvm/k_uvm.c: revision 1.1
tests/modules/k_uvm/Makefile: revision 1.1
distrib/sets/lists/tests/module.mi: revision 1.6
tests/modules/Makefile: revision 1.9
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.8.6.1 17-Apr-2012  yamt sync with head
 1.10.8.1 10-Aug-2014  tls Rebase.
 1.10.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.13.4.1 10-Jun-2019  christos Sync with HEAD
 1.13.2.1 26-Jan-2019  pgoyette Sync with HEAD
 1.2 23-Jan-2016  christos Define _KERNTYPES for things that need it.
 1.1 03-Nov-2010  christos add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
 1.4 28-Apr-2024  rillig tests: replace deprecated '-s eq:...' with '-s exit:...'
 1.3 20-Apr-2012  jruoho branches: 1.3.2;
For now, skip module tests if modctl(8) fails either with EPERM or ENOSYS.
 1.2 20-Mar-2012  jruoho branches: 1.2.2;
Skip Xen. XXX: There should be a reliable way to detect MODULAR.
 1.1 17-Feb-2012  jmmv Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.2.2.3 23-May-2012  yamt sync with head.
 1.2.2.2 17-Apr-2012  yamt sync with head
 1.2.2.1 20-Mar-2012  yamt file t_abi_uvm.sh was added on branch yamt-pagecache on 2012-04-17 00:09:14 +0000
 1.3.2.2 17-May-2012  riz Pull up following revision(s) (requested by jmmv in ticket #8):
tests/modules/t_abi_uvm.sh: revision 1.1
tests/modules/k_uvm/k_uvm.c: revision 1.1
tests/modules/k_uvm/Makefile: revision 1.1
distrib/sets/lists/tests/module.mi: revision 1.6
tests/modules/Makefile: revision 1.9
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.3.2.1 20-Apr-2012  riz file t_abi_uvm.sh was added on branch netbsd-6 on 2012-05-17 19:03:23 +0000
 1.5 22-Feb-2020  kamil Avoid undefined behavior in disabledstat

t_builtin.c:174:16, member access within misaligned address 0x741271c25004
for type 'struct modstat_t'

t_builtin.c:175:4, member access within misaligned address 0x741271c251c4
for type 'struct modstat_t'
 1.4 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.3 13-Jan-2017  christos branches: 1.3.12; 1.3.14;
Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.
 1.2 03-Nov-2010  christos branches: 1.2.28;
add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
 1.1 27-Aug-2010  pooka tests for builtin modules
 1.2.28.1 20-Mar-2017  pgoyette Sync with HEAD
 1.3.14.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3.14.1 10-Jun-2019  christos Sync with HEAD
 1.3.12.3 05-Sep-2018  pgoyette Don't forget to increment loop control - avoid infinite iteration
 1.3.12.2 05-Sep-2018  pgoyette Remove no-longer-used variable
 1.3.12.1 05-Sep-2018  pgoyette Adapt this test to the new MODCTL_STAT, too.
 1.10 26-May-2019  kamil branches: 1.10.2;
Drop no longer needed macros KCOV_STORE() KCOV_LOAD() in kcov(4)

Corrently KCOV_STORE() and KCOV_LOAD() are equivalent to x=y.

Obtained from <R3x>
 1.9 04-Apr-2019  kamil Fix flaky check for the /dev/kcov device in t_kcov

Add a top-level check for the KCOV device, instead of deferring it ot each
thread. The thread-based solution was flaky.

PR kern/54064 by Andreas Gustafsson
 1.8 10-Mar-2019  kamil Introduce enhancements to the kcov(4) code

Add new tests verifying dup2(2) scenarios:
- kcov_dup2
- kcov_basic_dup2_pc
- kcov_basic_dup2_cmp

The dup2(2) trick is used by syzkaller and assert that it works.
All new tests pass.

While there add minor non-functional cleanup changes.
 1.7 10-Mar-2019  kamil Add support for trace type selection in kcov(4)

Allow to specify mode in KCOV_IOC_ENABLE synchronizing the functionality
with Linux, FreeBSD and OpenBSD. As a NetBSD (and OpenBSD) specific of
the ioctl(2) interface, the mode argument has to be specified as &value
rather than value.

There are 3 modes available:
1. KCOV_MODE_NONE -- no trace specified, useful for testing purposes
2. KCOV_MODE_TRACE_PC -- trace the kernel program counter
3. KCOV_MODE_TRACE_CMP -- trace comparison instructions and switch statements

Adapt the ATF tests and documentation for new API.

The KCOV_MODE_TRACE_CMP mode is implemented but still awaits for the
GCC 8.x upgrade or selection of Clang/LLVM as the kernel compiler.

Obtained from OpenBSD and adapted for NetBSD by myself.
 1.6 10-Mar-2019  kamil Fix bug in kcov_multiple_threads in t_kcov

Spawn the expected number of threads rather than hardcoding one value for
all tests.
 1.5 10-Mar-2019  kamil Add support for multiple threads in kcov(4)

Reuse the fd_clone() API to associate kcov descriptors (KD) with a file
descriptor. Each fd (/dev/kcov) can be reused for a single LWP.

Add new ATF regression tests and cleanup existing code there. All tests
pass.

Refresh the kcov(4) man page documentation.

Developed with help from <maxv>.
 1.4 25-Feb-2019  kamil Fix build of t_kcov

Correct the syntax that used to work in earlier uncommitted version.
 1.3 24-Feb-2019  kamil Add KCOV_LOAD() and KCOV_STORE() - new helper macros

New macros prefer 64-bit atomic operations whenever accessible.

As a fallback they use volatile move operations that are not known
to have negative effect in KCOV even if interrupted in the middle of
operation.

Enable kcov_basic and kcov_thread tests on targets without
__HAVE_ATOMIC64_OPS.
 1.2 23-Feb-2019  kamil Fix build of kcov tests on CPUs without 64-bit atomics

Restrict the 64-bit atomics to ports defining __HAVE_ATOMIC64_OPS.

Using 64-bit atomics is still good for i586 fuzzing, but the tests are
build for earlier CPUs. This makes this code to be disabled in i386 builds.

There is a similar situation with few other ports that offer 64-bit atomics
in certain CPU models and ABIs.
 1.1 23-Feb-2019  kamil Add KCOV - kernel code coverage tracing device

The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
 1.10.2.2 10-Jun-2019  christos Sync with HEAD
 1.10.2.1 26-May-2019  christos file t_kcov.c was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.4 28-Apr-2024  rillig tests: replace deprecated '-s eq:...' with '-s exit:...'
 1.3 01-Mar-2023  nia delete attribution per request of contributor
 1.2 09-Jan-2018  martin Skip the test on non-modular kernels
 1.1 08-Jan-2018  martin PR 52864: add a test for this bug, from sevan@
 1.16 22-Feb-2020  pgoyette Update the t_modctl test to ensure that static evcnts are added.

While here, remove the explicit call to sysctl_setup() routine,
since the module infrastructure already invokes such routines
automatically.
 1.15 22-Feb-2020  kamil Avoid undefined behavior in get_modstat_info

t_modctl.c:114:16, member access within misaligned address 0x71bf5bcede84
for type 'struct modstat_t'

t_modctl.c:116:13, load of misaligned address 0x7e81bc3c9104 for type
'struct modstat_t' which requires 8 byte alignment
 1.14 21-Apr-2019  maya wether -> whether
 1.13 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.12 20-Aug-2012  martin branches: 1.12.30; 1.12.32;
Fix stupid thinko when checking for the availability of options MODULAR
and permission to load modules.
 1.11 19-Aug-2012  martin Be more verbose if we get unexpected error codes from modctl.
 1.10 13-Aug-2012  martin Make use of the new MODCTL_EXISTS check to query kernel wether (and why
not) we can load modules.
 1.9 17-Apr-2012  jruoho Avoid zero-length format string.
 1.8 15-Mar-2012  joerg Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.7 13-Mar-2012  jruoho A modctl(MODCTL_STAT, ...) always succeeds, even in non-modular kernels such
as Xen domUs. Thus, refactor the code to detect non-modular kernels; when the
other operations (MODCTL_LOAD or MODCTL_UNLOAD) fail specifically with ENOSYS,
this is taken as a hint about non-modularity and the test is skipped.
 1.6 11-Mar-2012  jruoho Skip the tests even if modctl(2) does not fail specifically with ENOSYS.
 1.5 03-Nov-2010  christos branches: 1.5.6;
add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
 1.4 21-Aug-2010  pgoyette Add a new atf test-case to check that recursive module calls actually work.
 1.3 04-Jan-2009  jmmv Kernel modules (kmod files) are now installed in a subdirectory per module.
Make these tests aware of this so that they work again.
 1.2 02-May-2008  ad branches: 1.2.4; 1.2.8;
- Add a bsd.kmodule.mk to build new style modules.
- Set the file suffix to .kmod
 1.1 01-May-2008  jmmv Convert NetBSD-specific tests that were previously written in C++ to C now
that ATF provides a C-only binding (comes with 0.5).
 1.2.8.1 09-Jan-2009  snj Pull up following revision(s) (requested by jmmv in ticket #234):
tests/modules/t_modctl.c: revision 1.3
tests/modules/t_modload.sh: revision 1.4
Kernel modules (kmod files) are now installed in a subdirectory per module.
Make these tests aware of this so that they work again.
 1.2.4.2 18-May-2008  yamt sync with head.
 1.2.4.1 02-May-2008  yamt file t_modctl.c was added on branch yamt-pf42 on 2008-05-18 12:36:01 +0000
 1.5.6.3 30-Oct-2012  yamt sync with head
 1.5.6.2 23-May-2012  yamt sync with head.
 1.5.6.1 17-Apr-2012  yamt sync with head
 1.12.32.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.12.32.1 10-Jun-2019  christos Sync with HEAD
 1.12.30.1 05-Sep-2018  pgoyette Update the check for module existence via modctl(3) to use the new
format of returned data.
 1.5 01-May-2008  jmmv Convert NetBSD-specific tests that were previously written in C++ to C now
that ATF provides a C-only binding (comes with 0.5).
 1.4 30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.3 02-Mar-2008  jmmv branches: 1.3.2; 1.3.4;
Add tests for load-time parameter passing to modules, both at the syscall
level through modctl(2) and at the user level through the modload(8)
utility.
 1.2 10-Feb-2008  jmmv branches: 1.2.2;
Add more detailed checks for each of the primary modctl commands.
 1.1 10-Feb-2008  jmmv Add preliminary tests (basically a placeholder for now) for the new modules
framework. At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call. The tools are not tested yet.
 1.2.2.1 24-Mar-2008  keiichi sync with head.
 1.3.4.1 17-Jun-2008  yamt fix merge botches
 1.3.2.2 23-Mar-2008  matt sync with HEAD
 1.3.2.1 02-Mar-2008  matt file t_modctl.cpp was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
 1.14 28-Apr-2024  rillig tests: replace deprecated '-s eq:...' with '-s exit:...'
 1.13 20-Apr-2012  jruoho For now, skip module tests if modctl(8) fails either with EPERM or ENOSYS.
 1.12 14-Apr-2012  pgoyette The k_helper3 program does not need to be (and shouldn't be) installed
in its own subdirectory.
 1.11 13-Apr-2012  jruoho Add a helper program that loads a module and returns the errno from modctl(8).

XXX: As noted on tech-kern@, the syscall should be modified to fail
consistently with a given predefined errno on non-MODULAR kernels.
 1.10 20-Mar-2012  jruoho Skip Xen. XXX: There should be a reliable way to detect MODULAR.
 1.9 24-Mar-2011  jmmv branches: 1.9.4;
Prevent failures from cleanup routines. Do so by only attempting to do the
cleanup if the test case did not succeed (as, when it succeeds, the cleanup
has already happened).
 1.8 07-Nov-2010  jmmv Adjusts tests after import of atf-0.12:

- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
unprivileged-user:_atf setting. This probably deserves a fix somehow
but I'm not sure at this point.
 1.7 05-Jul-2010  jmmv Properly mark some test cases as having a cleanup routine. Stupidity of
the API? Most likely; will revise it.

Fixes atf-run breaking when running t_psshfs. This does not resolve the
underlying issue though, which is atf-run getting confused trying to
unmount the temporary mount point by itself (I think). (I'm now wondering
if atf should be bothering about unmounting stuff at all. Maybe not. It is
a tricky and uncommon thing.)
 1.6 04-Jun-2010  jmmv atf-0.9 introduces an use.fs test-case property to allow tests to write to
their work directory. The purpose is to be able to know which tests intend
to touch the file system and to allow a minor optimization in atf-run.

Define use.fs=true for all those tests requiring it. (This highlights that
some tests currently require modifying the file system but conceptually
they shouldn't be... which leaves room for further improvements/cleanups
later :-)
 1.5 19-Jan-2009  jmmv Adjust tests to work with the new API in ATF 0.6.
 1.4 04-Jan-2009  jmmv Kernel modules (kmod files) are now installed in a subdirectory per module.
Make these tests aware of this so that they work again.
 1.3 02-May-2008  ad branches: 1.3.6;
- Add a bsd.kmodule.mk to build new style modules.
- Set the file suffix to .kmod
 1.2 30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.1 02-Mar-2008  jmmv branches: 1.1.2; 1.1.4; 1.1.6;
Add tests for load-time parameter passing to modules, both at the syscall
level through modctl(2) and at the user level through the modload(8)
utility.
 1.1.6.1 18-May-2008  yamt sync with head.
 1.1.4.2 24-Mar-2008  keiichi sync with head.
 1.1.4.1 02-Mar-2008  keiichi file t_modload.sh was added on branch keiichi-mipv6 on 2008-03-24 07:16:33 +0000
 1.1.2.2 23-Mar-2008  matt sync with HEAD
 1.1.2.1 02-Mar-2008  matt file t_modload.sh was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
 1.3.6.1 09-Jan-2009  snj Pull up following revision(s) (requested by jmmv in ticket #234):
tests/modules/t_modctl.c: revision 1.3
tests/modules/t_modload.sh: revision 1.4
Kernel modules (kmod files) are now installed in a subdirectory per module.
Make these tests aware of this so that they work again.
 1.9.4.2 23-May-2012  yamt sync with head.
 1.9.4.1 17-Apr-2012  yamt sync with head
 1.3 08-Sep-2024  rillig fix a/an grammar in obvious cases
 1.2 28-Apr-2024  rillig branches: 1.2.2;
tests: replace deprecated '-s eq:...' with '-s exit:...'
 1.1 25-Jan-2019  christos branches: 1.1.2; 1.1.4;
PR/53908: Alex Raschi: One more file needs to move.
 1.1.4.2 10-Jun-2019  christos Sync with HEAD
 1.1.4.1 25-Jan-2019  christos file t_threadpool.sh was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.1.2.2 26-Jan-2019  pgoyette Sync with HEAD
 1.1.2.1 25-Jan-2019  pgoyette file t_threadpool.sh was added on branch pgoyette-compat on 2019-01-26 22:00:38 +0000
 1.2.2.1 02-Aug-2025  perseant Sync with HEAD
 1.1 15-Apr-2019  christos branches: 1.1.2;
Re-arrange the ufetchstore tests to look like the other ones.
 1.1.2.2 10-Jun-2019  christos Sync with HEAD
 1.1.2.1 15-Apr-2019  christos file t_ufetchstore.c was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.2 26-Apr-2020  maxv Split in sub-tests for clarity, and add a new test, marked as expected
failure for now.
 1.1 26-Apr-2020  maxv Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
 1.6 01-May-2020  christos KMODULEDIR is no longer absolute (${DESTDIR} is added to it by the system
makefile because we need to install the module in two places the debug part
and the regular part)
 1.5 13-Jul-2010  jmmv Get rid of static Atffiles and let bsd.test.mk generate them on the fly.
 1.4 31-May-2008  dyoung Fix two bugs to make MKMODULAR=yes builds will work again, for the
first time.

share/mk/bsd.kmodule.mk: only set _INST_DIRS if KMODULEDIR is not
set. That we we avoid installing some bogus directories in
the DESTDIR and in $DESTDIR/METALOG.

tests/modules/k_helper/Makefile: add missing .include <bsd.own.mk>,
and set the KMODULEDIR that the author seems to have intended.
 1.3 05-May-2008  jmmv branches: 1.3.2;
Fix MKMODULAR=yes builds by resolving installation problems of the k_helper
test module after the introduction of bsd.kmodule.mk. The files list was
inconsistent with the new module structure and the Makefile did not use the
correct variable to specify the installation of the module. Hi ad@!
 1.2 02-May-2008  ad - Add a bsd.kmodule.mk to build new style modules.
- Set the file suffix to .kmod
 1.1 10-Feb-2008  jmmv branches: 1.1.4; 1.1.6;
Add preliminary tests (basically a placeholder for now) for the new modules
framework. At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call. The tools are not tested yet.
 1.1.6.2 04-Jun-2008  yamt sync with head
 1.1.6.1 18-May-2008  yamt sync with head.
 1.1.4.2 23-Mar-2008  matt sync with HEAD
 1.1.4.1 10-Feb-2008  matt file Makefile was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
 1.3.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.7 22-Feb-2020  pgoyette Update the t_modctl test to ensure that static evcnts are added.

While here, remove the explicit call to sysctl_setup() routine,
since the module infrastructure already invokes such routines
automatically.
 1.6 03-Jun-2012  dsl branches: 1.6.32;
Fix build - delete extra &
 1.5 03-Nov-2010  christos branches: 1.5.6;
add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
 1.4 21-Aug-2010  pgoyette Add a new atf test-case to check that recursive module calls actually work.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 02-Mar-2008  jmmv branches: 1.2.2; 1.2.4;
Add tests for load-time parameter passing to modules, both at the syscall
level through modctl(2) and at the user level through the modload(8)
utility.
 1.1 10-Feb-2008  jmmv branches: 1.1.2;
Add preliminary tests (basically a placeholder for now) for the new modules
framework. At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call. The tools are not tested yet.
 1.1.2.1 24-Mar-2008  keiichi sync with head.
 1.2.4.1 18-May-2008  yamt sync with head.
 1.2.2.2 23-Mar-2008  matt sync with HEAD
 1.2.2.1 02-Mar-2008  matt file k_helper.c was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
 1.5.6.1 30-Oct-2012  yamt sync with head
 1.6.32.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.2 01-May-2020  christos KMODULEDIR is no longer absolute (${DESTDIR} is added to it by the system
makefile because we need to install the module in two places the debug part
and the regular part)
 1.1 21-Aug-2010  pgoyette Add a new atf test-case to check that recursive module calls actually work.
 1.2 03-Nov-2010  christos add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
 1.1 21-Aug-2010  pgoyette Add a new atf test-case to check that recursive module calls actually work.
 1.4 14-Apr-2012  pgoyette branches: 1.4.2;
The k_helper3 program does not need to be (and shouldn't be) installed
in its own subdirectory.
 1.3 13-Apr-2012  pgoyette Let's get it right this time.
 1.2 13-Apr-2012  pgoyette Put k_helper3 in the correct location.
 1.1 13-Apr-2012  jruoho Add a helper program that loads a module and returns the errno from modctl(8).

XXX: As noted on tech-kern@, the syscall should be modified to fail
consistently with a given predefined errno on non-MODULAR kernels.
 1.4.2.2 17-Apr-2012  yamt sync with head
 1.4.2.1 14-Apr-2012  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:09:14 +0000
 1.3 17-Apr-2012  martin While we need an absolute path when loading a module (including the .kmod
extension), we want the shortname w/o extension for the unload.
 1.2 17-Apr-2012  jruoho Adjust.
 1.1 13-Apr-2012  jruoho branches: 1.1.2;
Add a helper program that loads a module and returns the errno from modctl(8).

XXX: As noted on tech-kern@, the syscall should be modified to fail
consistently with a given predefined errno on non-MODULAR kernels.
 1.1.2.3 23-May-2012  yamt sync with head.
 1.1.2.2 17-Apr-2012  yamt sync with head
 1.1.2.1 13-Apr-2012  yamt file k_helper3.c was added on branch yamt-pagecache on 2012-04-17 00:09:14 +0000
 1.2 01-May-2020  christos KMODULEDIR is no longer absolute (${DESTDIR} is added to it by the system
makefile because we need to install the module in two places the debug part
and the regular part)
 1.1 17-Feb-2012  jmmv branches: 1.1.2; 1.1.4;
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.1.4.2 17-May-2012  riz Pull up following revision(s) (requested by jmmv in ticket #8):
tests/modules/t_abi_uvm.sh: revision 1.1
tests/modules/k_uvm/k_uvm.c: revision 1.1
tests/modules/k_uvm/Makefile: revision 1.1
distrib/sets/lists/tests/module.mi: revision 1.6
tests/modules/Makefile: revision 1.9
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.1.4.1 17-Feb-2012  riz file Makefile was added on branch netbsd-6 on 2012-05-17 19:03:24 +0000
 1.1.2.2 17-Apr-2012  yamt sync with head
 1.1.2.1 17-Feb-2012  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:09:15 +0000
 1.1 17-Feb-2012  jmmv branches: 1.1.2; 1.1.4;
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.1.4.2 17-May-2012  riz Pull up following revision(s) (requested by jmmv in ticket #8):
tests/modules/t_abi_uvm.sh: revision 1.1
tests/modules/k_uvm/k_uvm.c: revision 1.1
tests/modules/k_uvm/Makefile: revision 1.1
distrib/sets/lists/tests/module.mi: revision 1.6
tests/modules/Makefile: revision 1.9
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
 1.1.4.1 17-Feb-2012  riz file k_uvm.c was added on branch netbsd-6 on 2012-05-17 19:03:23 +0000
 1.1.2.2 17-Apr-2012  yamt sync with head
 1.1.2.1 17-Feb-2012  yamt file k_uvm.c was added on branch yamt-pagecache on 2012-04-17 00:09:15 +0000
 1.2 01-May-2020  christos KMODULEDIR is no longer absolute (${DESTDIR} is added to it by the system
makefile because we need to install the module in two places the debug part
and the regular part)
 1.1 25-Jan-2019  christos branches: 1.1.2; 1.1.4;
PR/53908: Alex Raschi: Test that require modules belong in modules; move the
threadpool test from kernel to modules.
 1.1.4.2 10-Jun-2019  christos Sync with HEAD
 1.1.4.1 25-Jan-2019  christos file Makefile was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.1.2.2 26-Jan-2019  pgoyette Sync with HEAD
 1.1.2.1 25-Jan-2019  pgoyette file Makefile was added on branch pgoyette-compat on 2019-01-26 22:00:38 +0000
 1.1 25-Jan-2019  christos branches: 1.1.2; 1.1.4;
PR/53908: Alex Raschi: Test that require modules belong in modules; move the
threadpool test from kernel to modules.
 1.1.4.2 10-Jun-2019  christos Sync with HEAD
 1.1.4.1 25-Jan-2019  christos file threadpool_tester.c was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.1.2.2 26-Jan-2019  pgoyette Sync with HEAD
 1.1.2.1 25-Jan-2019  pgoyette file threadpool_tester.c was added on branch pgoyette-compat on 2019-01-26 22:00:38 +0000
 1.4 01-May-2020  christos KMODULEDIR is no longer absolute (${DESTDIR} is added to it by the system
makefile because we need to install the module in two places the debug part
and the regular part)
 1.3 15-Apr-2019  christos branches: 1.3.2;
Re-arrange the ufetchstore tests to look like the other ones.
 1.2 15-Apr-2019  christos fix TESTSDIR.
http://releng.netbsd.org/builds/HEAD/201904150550Z/evbarm-earm.build.failed
 1.1 06-Apr-2019  maya Add missing Makefile.

Grabbed from thorpej's github repository.
XXX not actually built tested...
 1.3.2.2 10-Jun-2019  christos Sync with HEAD
 1.3.2.1 15-Apr-2019  christos file Makefile was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.2 15-Apr-2019  christos Re-arrange the ufetchstore tests to look like the other ones.
 1.1 06-Apr-2019  thorpej Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
 1.1 15-Apr-2019  christos branches: 1.1.2;
Re-arrange the ufetchstore tests to look like the other ones.
 1.1.2.2 10-Jun-2019  christos Sync with HEAD
 1.1.2.1 15-Apr-2019  christos file common.h was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.4 07-Apr-2019  thorpej branches: 1.4.2;
Add a test to make sure an overflowing-into-kernel-space fetch/store near
vm_max_address fails with EFAULT.
 1.3 07-Apr-2019  rin Revert previous. arc port was fixed correctly.
 1.2 07-Apr-2019  rin Avoid redefining UADDR for arc.
 1.1 06-Apr-2019  thorpej Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
 1.4.2.2 10-Jun-2019  christos Sync with HEAD
 1.4.2.1 07-Apr-2019  christos file t_ufetchstore.c was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.1 15-Apr-2019  christos branches: 1.1.2;
Re-arrange the ufetchstore tests to look like the other ones.
 1.1.2.2 10-Jun-2019  christos Sync with HEAD
 1.1.2.1 15-Apr-2019  christos file ufetchstore_tester.c was added on branch phil-wifi on 2019-06-10 22:10:08 +0000
 1.2 01-May-2020  christos KMODULEDIR is no longer absolute (${DESTDIR} is added to it by the system
makefile because we need to install the module in two places the debug part
and the regular part)
 1.1 26-Apr-2020  maxv Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
 1.3 21-Aug-2022  mlelstv requires pmap_private.h now.
 1.2 26-Apr-2020  maxv Split in sub-tests for clarity, and add a new test, marked as expected
failure for now.
 1.1 26-Apr-2020  maxv Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.

RSS XML Feed