CVS commit: src/tests/modules

2020-05-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  1 22:24:19 UTC 2020

Modified Files:
src/tests/modules/k_helper: Makefile
src/tests/modules/k_helper2: Makefile
src/tests/modules/k_uvm: Makefile
src/tests/modules/threadpool_tester: Makefile
src/tests/modules/ufetchstore: Makefile
src/tests/modules/x86_pte_tester: Makefile

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/modules/k_helper/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/k_helper2/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/k_uvm/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/threadpool_tester/Makefile
cvs rdiff -u -r1.3 -r1.4 src/tests/modules/ufetchstore/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/x86_pte_tester/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2020-04-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Apr 26 11:56:38 UTC 2020

Modified Files:
src/tests/modules: t_x86_pte.c
src/tests/modules/x86_pte_tester: x86_pte_tester.c

Log Message:
Split in sub-tests for clarity, and add a new test, marked as expected
failure for now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/t_x86_pte.c
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/x86_pte_tester/x86_pte_tester.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2020-02-22 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Feb 22 19:54:35 UTC 2020

Modified Files:
src/tests/modules: t_modctl.c
src/tests/modules/k_helper: k_helper.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tests/modules/t_modctl.c
cvs rdiff -u -r1.6 -r1.7 src/tests/modules/k_helper/k_helper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2020-02-21 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Feb 22 00:24:15 UTC 2020

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2020-02-21 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Feb 22 00:18:55 UTC 2020

Modified Files:
src/tests/modules: t_builtin.c

Log Message:
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'


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/modules/t_builtin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2019-04-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr 15 23:41:23 UTC 2019

Modified Files:
src/tests/modules: Makefile
src/tests/modules/ufetchstore: Makefile
Added Files:
src/tests/modules: t_ufetchstore.c
src/tests/modules/ufetchstore: common.h ufetchstore_tester.c
Removed Files:
src/tests/modules/ufetchstore: Makefile.inc
src/tests/modules/ufetchstore/module: Makefile common.h
ufetchstore_tester.c

Log Message:
Re-arrange the ufetchstore tests to look like the other ones.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/tests/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/modules/t_ufetchstore.c
cvs rdiff -u -r1.2 -r1.3 src/tests/modules/ufetchstore/Makefile
cvs rdiff -u -r1.1 -r0 src/tests/modules/ufetchstore/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/tests/modules/ufetchstore/common.h \
src/tests/modules/ufetchstore/ufetchstore_tester.c
cvs rdiff -u -r1.1 -r0 src/tests/modules/ufetchstore/module/Makefile \
src/tests/modules/ufetchstore/module/common.h \
src/tests/modules/ufetchstore/module/ufetchstore_tester.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/ufetchstore

2019-04-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr 15 20:21:35 UTC 2019

Modified Files:
src/tests/modules/ufetchstore: Makefile

Log Message:
fix TESTSDIR.
http://releng.netbsd.org/builds/HEAD/201904150550Z/evbarm-earm.build.failed


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/ufetchstore/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/ufetchstore

2019-04-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Apr  7 15:50:13 UTC 2019

Modified Files:
src/tests/modules/ufetchstore: t_ufetchstore.c

Log Message:
Add a test to make sure an overflowing-into-kernel-space  fetch/store near
vm_max_address fails with EFAULT.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/modules/ufetchstore/t_ufetchstore.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/ufetchstore

2019-04-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Apr  7 03:43:55 UTC 2019

Modified Files:
src/tests/modules/ufetchstore: t_ufetchstore.c

Log Message:
Revert previous. arc port was fixed correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/modules/ufetchstore/t_ufetchstore.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/ufetchstore

2019-04-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Apr  7 03:35:25 UTC 2019

Modified Files:
src/tests/modules/ufetchstore: t_ufetchstore.c

Log Message:
Avoid redefining UADDR for arc.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/ufetchstore/t_ufetchstore.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/ufetchstore

2019-04-06 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Apr  6 11:54:25 UTC 2019

Added Files:
src/tests/modules/ufetchstore: Makefile

Log Message:
Add missing Makefile.

Grabbed from thorpej's github repository.
XXX not actually built tested...


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/modules/ufetchstore/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2019-04-04 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Apr  4 10:53:20 UTC 2019

Modified Files:
src/tests/modules: t_kcov.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/modules/t_kcov.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2019-03-10 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Mar 10 13:24:51 UTC 2019

Modified Files:
src/tests/modules: t_kcov.c

Log Message:
Fix bug in kcov_multiple_threads in t_kcov

Spawn the expected number of threads rather than hardcoding one value for
all tests.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/modules/t_kcov.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2019-02-25 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Feb 25 10:23:01 UTC 2019

Modified Files:
src/tests/modules: t_kcov.c

Log Message:
Fix build of t_kcov

Correct the syntax that used to work in earlier uncommitted version.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/modules/t_kcov.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2019-02-23 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Feb 23 08:03:24 UTC 2019

Modified Files:
src/tests/modules: t_kcov.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/t_kcov.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2019-01-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 25 18:34:45 UTC 2019

Added Files:
src/tests/modules: t_threadpool.sh

Log Message:
PR/53908: Alex Raschi: One more file needs to move.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/modules/t_threadpool.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2018-01-09 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jan  9 15:16:02 UTC 2018

Modified Files:
src/tests/modules: t_klua_pr_52864.sh

Log Message:
Skip the test on non-modular kernels


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/t_klua_pr_52864.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-08-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Aug 20 08:07:52 UTC 2012

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
Fix stupid thinko when checking for the availability of options MODULAR
and permission to load modules.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-08-19 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Aug 19 20:54:56 UTC 2012

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
Be more verbose if we get unexpected error codes from modctl.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-08-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Aug 13 08:07:03 UTC 2012

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
Make use of the new MODCTL_EXISTS check to query kernel wether (and why
not) we can load modules.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/k_helper

2012-06-03 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Jun  3 10:59:44 UTC 2012

Modified Files:
src/tests/modules/k_helper: k_helper.c

Log Message:
Fix build - delete extra &


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/modules/k_helper/k_helper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-04-19 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Apr 20 05:41:26 UTC 2012

Modified Files:
src/tests/modules: t_abi_uvm.sh t_modload.sh

Log Message:
For now, skip module tests if modctl(8) fails either with EPERM or ENOSYS.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/modules/t_abi_uvm.sh
cvs rdiff -u -r1.12 -r1.13 src/tests/modules/t_modload.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/k_helper3

2012-04-17 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Apr 17 21:39:19 UTC 2012

Modified Files:
src/tests/modules/k_helper3: k_helper3.c

Log Message:
While we need an absolute path when loading a module (including the .kmod
extension), we want the shortname w/o extension for the unload.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/modules/k_helper3/k_helper3.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-04-16 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Apr 17 06:23:52 UTC 2012

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
Avoid zero-length format string.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/k_helper3

2012-04-16 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Apr 17 05:18:54 UTC 2012

Modified Files:
src/tests/modules/k_helper3: k_helper3.c

Log Message:
Adjust.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/k_helper3/k_helper3.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-04-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Apr 14 02:46:17 UTC 2012

Modified Files:
src/tests/modules: t_modload.sh
src/tests/modules/k_helper3: Makefile

Log Message:
The k_helper3 program does not need to be (and shouldn't be) installed
in its own subdirectory.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/modules/t_modload.sh
cvs rdiff -u -r1.3 -r1.4 src/tests/modules/k_helper3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/k_helper3

2012-04-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Apr 13 15:02:37 UTC 2012

Modified Files:
src/tests/modules/k_helper3: Makefile

Log Message:
Let's get it right this time.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/modules/k_helper3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules/k_helper3

2012-04-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Apr 13 14:54:39 UTC 2012

Modified Files:
src/tests/modules/k_helper3: Makefile

Log Message:
Put k_helper3 in the correct location.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/k_helper3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-03-19 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Mar 20 05:50:11 UTC 2012

Modified Files:
src/tests/modules: t_abi_uvm.sh t_modload.sh

Log Message:
Skip Xen. XXX: There should be a reliable way to detect MODULAR.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/modules/t_abi_uvm.sh
cvs rdiff -u -r1.9 -r1.10 src/tests/modules/t_modload.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-03-12 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Mar 13 05:56:46 UTC 2012

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2012-03-11 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 11 19:33:17 UTC 2012

Modified Files:
src/tests/modules: t_modctl.c

Log Message:
Skip the tests even if modctl(2) does not fail specifically with ENOSYS.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/modules/t_modctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2010-08-27 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri Aug 27 09:56:40 UTC 2010

Modified Files:
src/tests/modules: Makefile
Added Files:
src/tests/modules: t_builtin.c

Log Message:
tests for builtin modules


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/modules/t_builtin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/modules

2010-08-21 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Aug 21 13:57:41 UTC 2010

Modified Files:
src/tests/modules: Makefile

Log Message:
Fix botched update.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/modules/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.