Commit Graph

399 Commits

Author SHA1 Message Date
jmmv 92ed1fa069 Remove the kernel and ipf tests that have been converted to atf and now
live in the tests subtree.
2009-02-20 21:45:47 +00:00
ad 24bd77dd94 A threaded benchmark for namei() 2009-01-29 21:24:19 +00:00
ad 5c71c34a14 - If given an arg, don't bind to curcpu.
- Set line buffering on stdout.
2009-01-28 21:52:49 +00:00
christos 466a16a118 fix time_t formats 2008-12-29 05:56:02 +00:00
ad b575edd757 A kernel module to test multithreaded performance of the kernel allocators. 2008-12-20 22:29:05 +00:00
apb ea7b5c7aff Use ${TOOL_AWK}, no ${AWK}. 2008-10-27 20:58:08 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
gmcgarry d818158a22 Avoid tests using nested functions when using PCC. 2008-09-09 00:16:05 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
christos b7cd7a548a test for write_append from Andy Shevchenko 2008-08-27 06:40:13 +00:00
darrenr 9f0bfbf3da 2020447 IPFilter's NAT can undo name server random port selection 2008-07-24 09:37:57 +00:00
rmind 481ae1556f - Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.
2008-06-16 01:41:20 +00:00
rmind 1ce83e28f1 Sync with the latest cpuset changes. 2008-06-16 00:33:24 +00:00
darrenr b002202839 fix a merge error that led to the expected file not being built for i19 2008-06-02 11:48:38 +00:00
ad e74e1f24d8 Another latency test. This one uses realtime threads, _lwp_park, and
measures how long preemption takes (kernel preemption if the arch
implements it).
2008-05-28 11:34:07 +00:00
ad f82d7874c2 A dumb test of how long it takes to send a byte through a pipe, using
timeshared threads and realtime threads.
2008-05-23 22:22:36 +00:00
darrenr 2f5a5e95ad Pullup IPFilter 4.1.29 from the vendor branch to HEAD.
See src/dist/ipf/HISTORY for a list of bug fixes since 4.1.23 (although
a few are already in NetBSD)
2008-05-20 07:08:06 +00:00
darrenr 675eb13106 Import IPFilter 4.1.29 to the vendor branch 2008-05-20 06:43:46 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad 43d8bae932 Give callout_halt() an additional 'kmutex_t *interlock' argument. If there
is a need to block and wait for the callout to complete, and there is an
interlock, it will be dropped while waiting and reacquired before return.
2008-04-22 12:04:22 +00:00
yamt 849fe720d6 test lockf deadlock detection. 2008-04-05 03:34:47 +00:00
apb e6806c2c83 Adapt to changes in m68k/060sp/asm2gas script: pass SED=${TOOL_SED:Q}
instead of TOOL_SED=${TOOL_SED:Q} in the environment.
2008-03-28 22:29:16 +00:00
ad e1fe405771 Add a test for callout_halt (and incidentally, fast softints). 2008-03-28 20:44:57 +00:00
ad 7b5d104e8d Make these compile again. 2008-03-28 20:28:27 +00:00
apb a749c03e28 Use "${TOOL_SED}" instead of just "sed" in sys/arch/m68k/060sp/asm2gas. 2008-03-27 07:15:16 +00:00
ad 0c65d1b648 - Use atomic_inc_uint() to maintain the global count.
- Use a barrier to sync thread start.

Ok yamt@.
2008-03-21 16:03:33 +00:00
yamt 9ff0d7c13c test select(2). 2008-03-21 12:27:12 +00:00
ad 2dc7c918f0 A test for the lwpctl preemption counter. 2008-03-12 11:02:21 +00:00
lukem 1f09f2e309 Use mkstemp() instead of mktemp().
Use snprintf() instead of sprintf().
Improve error reporting.
2008-03-02 12:51:59 +00:00
ad e6ac0b80ac Fix uninitialized variable that caused this to fail spuriously. 2008-02-29 16:28:12 +00:00
dholland 936ebf85ff use errno.h, not sys/errno.h 2008-02-24 21:37:47 +00:00
yamt 90306066c9 remove an unused prototype. (rdtsc) 2008-02-05 10:00:17 +00:00
uwe c2b2ccc344 Add -D_LOCORE to AFLAGS. 2008-02-02 18:18:14 +00:00
chris e083edeb16 Force the last loop to always walk all the data in the mbuf chain.
It appears that randomness was against me when I updated the arm version
as it crashes when used for real.  By forcing one full walk of the mbuf
chain the regression tool crashes, hinting that something is wrong.
2008-01-27 16:49:13 +00:00
simonb 2c3f5b99b6 Add some aligned tests for the more "normal" cases. Even though this is
primarily a regression tool, it's still a useful benchmark tool so we
might as well try relatively real-world tests as well.

Ok joerg@.
2008-01-26 04:56:45 +00:00
chris 8184079c4d Fix typo, assum.h -> assym.h 2008-01-26 02:07:13 +00:00
joerg c0e2333a0f Add regression test and benchmark for the upcoming cpu_in_cksum.
This is inspired by an older test case written by Charles Hannum.
cvs: ----------------------------------------------------------------------
2008-01-24 18:12:29 +00:00
dsl 9551b193fd The interval timers (setitimer()) are not inherited by fork (I've checked
the SuS) so start the timer in the correct process otherwise this test
will never timeout.
2008-01-12 11:10:08 +00:00
martin 5d0a5ce934 Use WEXITSTATUS() on wait() results. From David Laight. 2008-01-06 21:53:08 +00:00
yamt 0c9bd4f953 sprinkle sleep(1) to catch more bugs. 2008-01-04 16:18:52 +00:00
yamt 768cff817f iopl. 2008-01-04 15:39:25 +00:00
yamt ca99721f8d test i386_iopl. 2008-01-04 15:37:11 +00:00
yamt 599bbacd07 test i386_get_ioperm/i386_set_ioperm. 2008-01-04 14:23:00 +00:00
ad a33059bb24 A quick-and-dirty test that forces the softclock interrupt to block. 2007-12-04 08:02:24 +00:00
jmmv 9b7401e7cb Convert the regress/sys/fs/tmpfs tests to the atf
This change converts all the existing regression tests in
regress/sys/fs/tmpfs to the new framework provided by atf.  As a side
effect, this also moves all the tests programs in regress/sys/fs/tmpfs to
tests/fs/tmpfs.
2007-11-12 15:18:07 +00:00
jmmv 9b435895e8 Fix duplicate year in copyright notice. 2007-07-24 11:29:16 +00:00
jmmv 12f24779d1 Add some more tests to ensure that renaming a file to a directory and a
directory to a file fails with the appropriate error codes.  tmpfs still
fails these tests, but the fix is almost ready to go in.
2007-07-23 15:05:43 +00:00
jmmv e92cf7fb11 Add test cases to ensure that:
1) Renaming a directory to an empty directory works by replacing the target
   directory.
2) Renaming a directory to a non-empty directory fails.
This is all by calling rename(2) directly, not mv(1).

tmpfs currently fails those tests, raising an assertion if DIAGNOSTIC is
enabled.  A fix will hopefully follow soon.

Found by pooka@.
2007-07-23 12:51:35 +00:00
martin c77a3f5aad Upgraded IPFilter to v4.1.23 2007-06-16 10:52:24 +00:00