Commit Graph

109 Commits

Author SHA1 Message Date
ozaki-r
bd91015475 Fix build 2017-12-28 07:46:34 +00:00
ozaki-r
61673e6ea4 Add a test case for workqueue_wait 2017-12-28 07:10:25 +00:00
ozaki-r
bfde781fbe Functionalize some routines to add new tests easily (NFC) 2017-12-28 07:09:31 +00:00
ozaki-r
bf33e35aca Fix a race condition on taking the mutex
The workqueue worker can take the mutex before the tester tries to take it after
calling workqueue_enqueue. If it happens, the worker calls cv_broadcast before
the tester calls cv_timedwait and the tester will wait until the cv timed out

Take the mutex before calling workqueue_enqueue so that the tester surely calls
cv_timedwait before the worker calls cv_broadcast.

The fix stabilizes the test, t_workqueue/workqueue1.
2017-12-28 04:38:02 +00:00
ozaki-r
1315c7eeb1 Tweak use of cv_timedwait
- Handle its return value
- Specify more appropriate time-out periods (2 ticks is too short)
2017-12-28 04:36:15 +00:00
maya
da0ec449a1 Add declaration. build fix
sorry, I forgot to commit this file.
2017-09-29 13:19:57 +00:00
maya
aef814ffa9 Add simple test for workqueue(9) 2017-09-29 12:42:36 +00:00
maya
d9fb11d888 Run both tests (rather than rumptest_threadjoin twice) 2017-09-29 10:22:36 +00:00
pgoyette
45d3394e0e Fix detection of expected results. The rump kernel code apparently
includes source-code line numbers in the messages, so rather than
hard-coding them in the test, just use a reg-ex to match the text.

Fixes PR bin/52207
2017-05-03 12:09:41 +00:00
christos
c54cb81102 Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.
2017-01-13 21:30:39 +00:00
christos
25f1087ae3 more tests needing <sys/stat.h> 2017-01-10 22:36:29 +00:00
christos
b3566b595a Disable aslr too since we are playing address space range tricks. 2016-10-14 16:02:35 +00:00
ozaki-r
cdc78b3fe9 Fill old_len which is required by sysctlbyname 2016-09-14 03:19:11 +00:00
christos
7366e78839 need bsd.init.mk 2016-09-10 11:04:24 +00:00
christos
b8c6512fdd don't disable PIE 2016-08-27 14:23:54 +00:00
christos
2cf6e96d2a needs mprotect disable since it loads kernel code and relocates it. 2016-08-27 14:21:07 +00:00
christos
b4ed6943ac add missing library dependencies. 2016-08-20 17:06:18 +00:00
kre
5bee7fb413 + -lrumpdev 2016-08-10 23:49:03 +00:00
kre
674d7cd1f8 + -lrumpdev 2016-08-10 23:47:14 +00:00
pooka
11f923c4b5 include <stdbool.h> for bool 2016-01-25 12:21:42 +00:00
pooka
d35b86acad Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed
unless you're doing something special, but requires register_t.
Adjust the few places which actually need rumpvnode_if.h.
2016-01-25 11:45:57 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
christos
abcb9cb972 bridge with the higher Makefile.inc 2016-01-23 18:54:15 +00:00
pgoyette
7e70dfdc14 Remove a left-over debugging variable. Fix the build. 2015-12-27 08:21:44 +00:00
pgoyette
738ca054ba When MODULAR kernels grew a MODULAR_DEFAULT_AUTOLOAD option, (in rev 1.98
of src/sys/kern/kern_module.c), the default was "off" for all kernels
including rump kernels.  While many (most?) kernel config files were
updated to include the new option, rump kernels weren't so lucky.  Thus,
rump kernels still had autoload disabled.

This commit uses rump_sysctl to change the module_autoload_on value to
true (ie, enabled) before trying to test if autoloading actually works.

For now, I am _not_ changing the default for all rump kernels.  I'll
leave that for another day, after all appropriate discussion has occurred.
2015-12-27 06:36:36 +00:00
pooka
fff8d9a1f5 call previous with the correct args too 2015-01-21 15:19:01 +00:00
pooka
d08959252d check that setuid() works for procs with >1 lwp 2015-01-21 15:00:50 +00:00
pooka
0397f3a735 Move sysproxy support into a separate component, rumpkern_sysproxy,
instead of it being always provided by the rump kernel base.  This
move accomplishes two things:

1) it is no longer necessary to provide sysproxy hypercall stubs for
   platforms which do not want to use sysproxy
2) it is easier to reason about the security aspects, since configurations
   not linking the sysproxy component simply do not support remote
   system calls

discussed on rumpkernel-users
2015-01-07 22:24:03 +00:00
gson
56e22ea3cf On systems that have only 32M of memory, the stress_short and
stress_long tests thrash a lot, and the stress_long test sometimes
times out, so skip them if we don't have at least 64M.
2014-08-30 12:14:17 +00:00
he
f693807fd8 Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser.  Fixes build for sun2.
2014-06-10 04:28:39 +00:00
christos
639c8a82b3 CID 978337: Fix resource leak 2014-05-12 15:33:12 +00:00
dholland
c93eb026cf remove sys/simplelock.h (straggler) 2014-03-21 22:18:57 +00:00
pooka
495782ee0e Move the "is arch capable of loading native kernel modules into
rump kernel" clauses from bsd.own.mk to Makefile.rump.  Also,
add a rump_nativeabi_p() call to determine if rump kernel is
compiled with native ABI support.
2014-03-10 22:38:53 +00:00
hannken
97834f7ba0 Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
pooka
8b99c7c824 Use 8 TCP/IP stacks instead of 16. That still gives us plenty crossping
testing for 1/4th of the cost.
2013-09-09 19:27:49 +00:00
njoly
17b707526d New testcase which checks that rump copyin/copyout/copyinstr/copyoutstr
version return EFAULT for special NULL "user" address.
ok pooka@.
2013-07-26 16:09:48 +00:00
hannken
0207daf65f Starting with Rev. 1.191 of kern/subr_pool.c a pool has to be inactive
for at least 10 seconds before it can be reclaimed.

Change the uvmwait test timeout from 10 to 30 seconds so it has a chance
to reclaim memory and succeed.
2012-03-17 18:00:28 +00:00
njoly
dc7e929d73 Adjust MEMFREE expected output to recent kmem(9) changes. 2012-01-30 13:05:52 +00:00
rmind
b82e29ffe8 tsleep(9) no more. 2012-01-28 12:23:56 +00:00
rmind
a0ffc02ab8 Rename slightly misleading KTHREAD_JOINABLE to KTHREAD_MUSTJOIN. 2011-08-07 14:03:15 +00:00
christos
88d695edac fix fallout from including signal.h in rump_syscallargs.h 2011-06-26 13:17:36 +00:00
mrg
d78c2159a8 vmobjlock is now a pointer to kmutex_t. use it as one. 2011-06-12 06:38:14 +00:00
pooka
bbc7636114 Add a test checks that 16 rump kernels on one shmif bus can ping
each other.
2011-03-10 14:09:46 +00:00
pooka
c97bdaa639 in reconnect, ignore any all reconnect messages 2011-02-24 08:40:06 +00:00
pooka
6ac867388f One more lseek test case: in case of an error, check rv == -1
(so that it's not e.g UINT_MAX).
2011-02-22 13:25:18 +00:00
pooka
9107903fbe test lseek return value (off_t, might be >register_t) 2011-02-22 10:36:13 +00:00
pooka
d9795c60c4 explicitly set the signal model 2011-02-20 19:45:45 +00:00
pooka
362dcd5366 set reconnect property now that it's off by default 2011-02-19 09:56:45 +00:00
pooka
6296f7395c Limit test duration based on wall time instead of loops
(took a long time on slow platforms).
2011-02-07 20:05:09 +00:00
pooka
7605725b2b test for rumpclient reconnect feature 2011-01-24 17:51:29 +00:00