Commit Graph

1247 Commits

Author SHA1 Message Date
sam
9b195917de create empty opt_ah.h for compiling athstats.o; it just needs
the PHY definitions and not the descriptor so it doesn't matter
if it's correct relative to the hal.o
2007-02-02 02:39:56 +00:00
rafan
fb2efa60c3 Remove old libmytinfo link.
Approved by:	delphij (mentor)
Requested by:	ache
2007-02-01 08:45:27 +00:00
pjd
9821af6a61 Simple README file which shows how to use fstest. 2007-01-28 00:10:28 +00:00
delphij
2089860135 Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
pjd
0dfda7f53e MFp4: - When new object is created, it's group ID can be set to process'
effective group ID or to group ID of its parent directory.
	- Add some comments from POSIX.
	- Verify that after successful O_TRUNC open, size is equal to 0.
2007-01-25 20:50:02 +00:00
pjd
e53af3d8e5 MFp4: When user is not a member of the group which owns a file, even if
he is the file's owner, he can't set set-gid bit.
	POSIX requires to return 0 and clear the bit, but FreeBSD returns
	EPERM for UFS in such case. For now do the same in ZFS.
2007-01-25 20:48:14 +00:00
jeff
04228656e7 - Add a horrible bit of code to detect tsc differences between processors.
This only works if there is no significant drift and all processors are
   running at the same frequency.  Fortunately, schedgraph traces on MP
   machines tend to cover less than a second so drift shouldn't be an issue.
 - KTRFile::synchstamp() iterates once over the whole list to determine the
   lowest tsc value and syncs adjusts all other values to match.  We assume
   that the first tick recorded on all cpus happened at the same instant to
   start with.
 - KTRFile::monostamp() iterates again over the whole file and checks for
   a cpu agnostic monotonically increasing clock.  If the time ever goes
   backwards the cpu responsible is adjusted further to fit.  This will
   make the possible incorrect delta between cpus as small as the shortest
   time between two events.  This time can be fairly large due to sched_lock
   essentially protecting all events.
 - KTRFile::checkstamp() now returns an adjusted timestamp.
 - StateEvent::draw() detects states that occur out of order in time and
   draws them as 0 pixels after printing a warning.
2007-01-24 21:19:56 +00:00
jeff
9ea1e03533 - Print clock information so we know if something is not reported correctly
from the tsc.
 - Set skipnext = 1 for yielding and preempted events so we don't show the
   event that adds us back to the run queue.  It used to be 2 so we would
   skip the ksegrp run queue addition and the system run queue addition
   but the ksegrp run queue has gone away.
 - Don't display down to nanosecond resolution for scheduling events right
   now.  This can sometimes cause a division by zero.
2007-01-23 22:19:27 +00:00
pjd
2f68acd7f7 Add 3436 file system regression tests in 184 files.
Almost all regression tests are based on very flexible fstest tool.
They verify correctness (POSIX conformance) of almost all file
system-related system calls.

The motivation behind this work is my ZFS port and POSIX, who doesn't
provide free test suites.

Runs on:	FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS

To try it out:

	# cd fstest
	# make
	# find tests/* -type d | xargs prove
2007-01-17 01:42:12 +00:00
rwatson
f96ba0731c Ignore EINPROGRESS error on TCP connect(), and pick up the result of the
non-blocking connect later using select().  This case didn't trigger on
my UP test box, but did on Peter's SMP test box.

Spotted by:	peter
2007-01-12 22:17:31 +00:00
rwatson
24fdffb45d Add a regression test for sending and writing zero bytes to sockets of
various types, as well as pipes and fifos for good measure.  RELENG_6
currently passes all of these tests, but 7-CURRENT fails 0-byte writes
and sends on all stream socket types (and fifos, as they are based on
stream sockets).

Bumped into by:	peter
Diagnosed by:	jhb
Problem of:	andre
2007-01-12 21:49:36 +00:00
joel
1f2d2eae20 Fix typos. 2007-01-12 08:44:55 +00:00
sam
4280bacc67 add man page 2007-01-12 05:36:28 +00:00
sam
c8704d794f fix typo
MFC after:	1 week
2007-01-12 05:36:17 +00:00
imp
408953e1e6 Remove 3rd clause, per email from bms 2007-01-11 05:00:30 +00:00
stefanf
d7208a9c10 Add regression tests for exec.c rev 1.30. 2007-01-11 00:25:20 +00:00
das
8fda45acae Fix a few of the tests so that correct implementations actually pass them. 2007-01-07 09:25:22 +00:00
davidxu
d2158e6c48 Fix compiling. 2007-01-06 11:32:15 +00:00
jeff
c164b22f4a - Add colors for up to 8 cpus. 2007-01-06 04:40:44 +00:00
das
269e2dc492 Remove the test that ensures that when the string "nan(...)" is converted
to floating-point, the result is a quiet NaN.  The current implementation
may return a signaling NaN, and the vendor has no plans for changing this,
for reasons explained in the comment I added.
2007-01-03 21:28:26 +00:00
das
1b31fff938 Fix cut-and-paste bugs in the regression tests. 2007-01-03 05:38:08 +00:00
scottl
956f797038 Expand a comment for clarity and fix a missed substitution. 2007-01-02 04:51:26 +00:00
scottl
9742680fc8 Add a simple tool for checking the command queues in the MFI driver. Also add
a simple wrapper for running the MegaCLI tool.
2007-01-01 23:50:04 +00:00
bms
1a77168e4f Drop all received data mbufs from a socket's queue if the MT_SONAME
mbuf is dropped, to preserve the invariant in the PR_ADDR case.

Add a regression test to detect this condition, but do not hook it
up to the build for now.

PR:             kern/38495
Submitted by:   James Juran
Reviewed by:    sam, rwatson
Obtained from:  NetBSD
MFC after:      2 weeks
2006-12-23 21:07:07 +00:00
davidxu
bdbe991e7c initialize mutex and cv. 2006-12-06 00:03:42 +00:00
davidxu
d8269ebb49 Fix spelling. 2006-12-05 05:31:49 +00:00
davidxu
67b2870c21 Add a test for pthread's cv and cancellation. 2006-12-05 05:14:56 +00:00
dds
db1000c626 New test cases demonstrating fixed bugs, and the reason why
fmtcheck can't be used.
2006-12-03 19:18:41 +00:00
yar
f023e30b98 /usr/sbin/faithd is an INET6-specific tool, and now it won't be built
if MK_INET6 is "no", so add it to the MK_INET6 block.

PR:             bin/100805 (audit-trail)
2006-11-27 13:33:31 +00:00
n_hibma
c75497ed80 Shorten the KERNCONF filename to the basename in the install target as
well as in the build target, although it is not used in this target.
2006-11-27 12:16:03 +00:00
sam
e0945d6033 add rate knob for net80211 rate control modules
MFC after:	1 month
2006-11-26 19:56:25 +00:00
netchild
ae8af45403 ah_if.m was removed a while ago 2006-11-26 14:41:17 +00:00
delphij
361abdf198 Make use of mk/ files from a fresh source tree, rather than
the currently installed ones.  This makes it possible to use
the script against Makefiles that uses bsd.own.mk on an old
system.

Submitted by:	bushman
2006-11-24 09:07:26 +00:00
yar
af6cce5172 Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
2006-11-23 11:55:17 +00:00
rodrigc
47fea8ad7d Remove references to mount_devfs, mount_fdescfs, mount_linprocfs,
mount_procfs, and mount_std.

Reminded by:	ru
2006-11-22 00:26:55 +00:00
jkim
be0e24cc9d Fix message size tests for msgsnd(3) and msgrcv(3). msgsz is the length of
actual message and it should not include size of message type.
2006-11-16 19:51:10 +00:00
benno
0168d3765c Add the Transcend 2GB card specs. 2006-11-16 08:04:29 +00:00
rwatson
4bfbd5c778 Add a short regression test to try to exercise races in the non-atomic
nature of implied connect via sendto().  Oddly, uipc_usrreq.c implements
this for stream sockets, but doesn't set the flag in its protocol
definition so that it can actually be used.  As such, the stream test is
implemented but doesn't run for now.
2006-11-15 12:43:45 +00:00
maxim
90c11a6b82 o Indent by tab. 2006-11-11 18:45:20 +00:00
maxim
42ff530d83 o Add several regression tests for dup(2), dup2(2) and fcntl(F_DUPFD).
Obtained from:	OpenBSD
2006-11-11 18:32:50 +00:00
bms
ed19ab972b Update copyright date.
MFC after:	3 weeks
2006-11-09 11:45:44 +00:00
bms
67a51422fc Use C99 types.
MFC after:	3 weeks
2006-11-09 11:42:38 +00:00
bms
8d49d67d0a Rewrite the format of pirtool output to match what the kernel currently
prints out if bootverbose is set. This is to facilitate the code being
removed from the kernel at a later date.

While we're here, fix the __packed structures, and add some other
PCI interrupt router IDs.

Submitted by:	jhb (with some tweaks)
MFC after:	3 weeks
2006-11-09 11:39:34 +00:00
jkim
883def490b Use z modifier for size_t and ssize_t. 2006-11-07 23:28:30 +00:00
dds
c1bff9358c Add the examples from the manual page. 2006-11-06 15:05:03 +00:00
dds
5f9d5575d3 Updated results for bin/68981
PR:		bin/68981
2006-11-06 15:00:37 +00:00
dds
162bf8c18e Regress.out is now regress.x.out. 2006-11-06 08:49:43 +00:00
dds
785f45c300 Test the handling of supplied and default parameters. 2006-11-06 08:39:52 +00:00
stefanf
5d1b410c9d Add regression tests for PR 105078. 2006-11-05 18:41:23 +00:00
n_hibma
3d639ea5f8 Only use the filename part of the kernel configuration file as an argument to
KERNCONF after the file has been copied to the sys/${ARCH}/conf directory. This
allows the use of one kernel config file for multiple images. E.g.:

	NANO_KERNEL=../../../../software/nanobsd/default/SOEKRIS

MFC: after 6.2
2006-11-02 20:43:20 +00:00