Commit Graph

45 Commits

Author SHA1 Message Date
jruoho 943257c643 Move the uvm "loan" test to tests(7). 2011-07-14 11:08:44 +00:00
jruoho 418b5c73fe Remove "mmap" subdir. 2011-07-14 10:27:36 +00:00
jruoho de255ab49d ../regress/sys/uvm/mmap/mmap.c is now part of tests(7). 2011-07-14 08:12:20 +00:00
joerg 4186c35cbd Fix format string 2011-05-24 16:11:08 +00:00
joerg eafadea975 Require GCC for compilation 2011-05-20 13:36:12 +00:00
gmcgarry d818158a22 Avoid tests using nested functions when using PCC. 2008-09-09 00:16:05 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
scw 5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
bjh21 c08721e416 Make regress target depend on the test program so as to ensure it gets
compiled.
2006-10-14 20:57:10 +00:00
yamt cc068aea62 remove unused lines. 2006-10-14 04:59:52 +00:00
yamt 9939939e34 add a makefile. 2006-10-14 04:46:30 +00:00
yamt 705759a99a #ifdef DEBUG where appropriate. 2006-10-14 04:43:41 +00:00
yamt cf17315fe8 add parentheses. 2006-10-09 12:43:32 +00:00
yamt dd099bf0ca include string.h for memset. 2006-10-09 12:40:00 +00:00
yamt dbdfc1f677 move src/sys/uvm/pdsim to src/regress/sys/uvm/pdsim.
no objection on tech-kern@.
2006-10-09 12:32:21 +00:00
mrg b141b31103 include <string.h>, <stdio.h> and <stdlib.h> as appropriate. 2006-05-10 19:07:22 +00:00
perry dd334ae584 de-__P, remove obsolete "register" declarations. 2005-02-06 06:05:18 +00:00
yamt 6c726a105b tweak a test to detect a bug described in kern/24595 from Stephan Uphoff. 2004-03-02 10:13:13 +00:00
drochner 40bcd2aa76 MACHINE_ARCH is x86_64 for amd64; noticed by Nicolas Joly 2004-02-19 18:25:56 +00:00
drochner 8f89c664eb enable stack_noexec where a non-executable stack is supported 2004-02-19 16:56:52 +00:00
drochner 8d4559c4ee Use tramptest.c on GNU_ARCHs where stack trampolines are emitted
(based on grep'ing gcc /config), and a dummy otherwise.
2004-02-19 16:55:30 +00:00
drochner 9b4a0e83fc After reading manpages, and feedback by Chuck Silvers, change this
test to expect SIGSEGV if code execution on the stack is attempted.
Also use SA_SIGINFO and check si_code for SEGV_ACCERR.
2004-02-19 16:49:43 +00:00
yamt cb8d483e24 add function prototypes. 2004-02-15 12:50:38 +00:00
yamt 0c12e11dfc use different values for each run to fill the mmaped region. 2004-02-15 12:49:27 +00:00
yamt 88bdc13921 a simple test of uvm page loanout. 2004-02-15 12:20:26 +00:00
drochner 7e4c34eca1 Add a check whether the stack is executable when needed, and one whether
the stack is non-executable if not explicitely enabled.
The latter one is not enabled in the Makefile yet because it cannot
succeed on platforms where the non-exec stack is not implemented.
Both checks rely on the fact that gcc puts trampoline onto the stack
for nested functions. On platforms where no such trampolines are used,
no meaningful results can be expected.
While not perfect, this is much easier than hand-coding trampolines for
each CPU type.
2003-12-10 13:24:59 +00:00
yamt f1e9f5f0af less magic constant. 2003-11-29 19:09:21 +00:00
thorpej 8655c7d7eb Add a MAP_WIRED flag to mmap(2), which causes the new mapping to be
wired as if by mlock(2).
2003-10-07 00:17:09 +00:00
lukem 08c81a9c2d some makefile de-linting
- list NOxxx and LDSTATIC= assignments before everything else
  (especially <bsd.own.mk>)
- ensure <bsd.own.mk> is included before NETBSDSRCDIR is used
- add missing RCSids
2002-09-18 05:41:35 +00:00
fvdl 2277063aa8 Fix off-by one when computing page count in the test file. 2002-06-04 22:17:47 +00:00
wiz 73b98457c3 Fix two typos in residency check variables. 2002-04-07 11:25:40 +00:00
tv 220b5c059a MKfoo=no -> NOfoo 2001-12-12 01:23:59 +00:00
cgd 65a1026492 convert to use getprogname() 2001-02-19 22:43:42 +00:00
thorpej 4128c0f2b8 Explain why we can expect to have some resident pages even after an
MADV_FREE of a range in e.g. a SYSV SHM segment, and make such a
condition not a failure of the regression test.

Addresses kern/10115, submitted by Thomas Klausner.
2000-05-19 04:56:48 +00:00
simonb 93612566bb Use proginstall:: to disable installing PROG. 2000-03-19 02:47:19 +00:00
mycroft 978f77c8fe Yet another check. 2000-01-24 00:39:17 +00:00
mycroft 80cd007209 Add more check_residency() calls. 2000-01-24 00:00:25 +00:00
thorpej 5839453a0d Oops, supply mode bits to shmget(2). 1999-08-06 23:40:10 +00:00
thorpej 678ef99d81 Check for shmat(2) failure correctly. 1999-08-06 23:01:41 +00:00
mjacob 55d3c9279d add in inclusion of file to get memset prototype declaration. 1999-07-21 21:46:17 +00:00
thorpej f6d7947c4b Add a test for mprotect()'ing a region from PROT_NONE to anything else
which is in an address space configured MCL_FUTURE.
1999-07-18 00:43:22 +00:00
thorpej b9aef1ceeb Add code which creates a System V shared memory segment, attaches to it,
makes it resident, MADV_FREE's it, and then checks to see that the pages
are indeed no longer resident.  This tests the uvm_aobj flush routine.
1999-07-17 06:01:52 +00:00
thorpej 11d1a47bbf Add some code to test sync'ing a PROT_WRITE+MAP_SHARED file. 1999-07-14 21:10:13 +00:00
thorpej 7089fc0a1d Add a few more tests. 1999-07-07 22:00:31 +00:00
thorpej 03826522e4 Add some pretty simple tests for various memory mapping facilities.
There's lots more work to do here, but this simple program found a
couple of problems which I've fixed recently.
1999-06-19 00:53:31 +00:00