Commit Graph

1104 Commits

Author SHA1 Message Date
des
dec8ea3d4a Ignore generated files. 2006-03-02 13:54:01 +00:00
sam
87272c821c when acpi does not explicitly enumerate lapic/cpu's there should
only be 1

Reviewed by:	jhb
2006-02-28 17:48:33 +00:00
wkoszek
c5c882e144 Fix the way in which median is calculated. If the data source has even
number of data points, value should be calculated by adding two middle
elements and dividing them by 2.

Approved by:	cognet (mentor)
2006-02-23 20:46:10 +00:00
sam
d1c19fee82 test program to check cpu counting
MFC after:	1 week
2006-02-22 21:51:09 +00:00
mdodd
c21de88b4e Add option -w to specify graph width.
Use COLUMNS, terminal width for default graph width.

Reviewed by:	 rwatson
2006-02-22 04:10:20 +00:00
rwatson
c3b5251962 Add multi-process support to simple http micro-benchmark, now the default.
Use -t for thread support.  Also added are -n to specify number of threads
or process, and -s to set the length of the test.
2006-02-22 02:54:43 +00:00
rwatson
6132f1f066 Add multi-process support to simple httpd micro-benchmark, which is now
the default.  With -t, threads are used.
2006-02-22 02:54:04 +00:00
pjd
24e4deddbc Add regression test which verifies that options -P and -i cannot be used
together.

MFC after:	3 days
2006-02-12 02:07:56 +00:00
des
c240423edc Use -O2 on RELENG_6 as well 2006-02-03 10:55:00 +00:00
pjd
41ffd5b92b Add regression tests which will verify that giving no key components for
init/attach/setkey subcommands is really impossible.

MFC after:	3 days
2006-02-01 15:17:45 +00:00
pjd
9cd2981517 Add simple tests which verify that redzone(9) works properly. 2006-01-31 11:20:13 +00:00
des
e4d6027c5e Avoid triggering autovivification of %config entries, which would result in
an empty addenda section.

Handle kernel configs that lack a "machine" line by guessing at the location
of GENERIC (assuming that it is in the same directory as the config file)
2006-01-30 10:46:01 +00:00
rwatson
fe40c56797 Use $FreeBSD$ for the juggle version, rather than $P4$. This is good for
two reasons:

(1) juggle is now maintained in CVS, not P4, so the CVS revision number is
    the authoritative one.
(2) Apparently $P4$ requires special handling and juggle was not marked
    as needing it, resulting in problems for the P4 importer.

Requested by:	gordon
2006-01-28 21:03:16 +00:00
flz
62ab7f1b8e - Fix infinite loop in strip_log().
- Remove useless variable.

Submitted by:	jkim
Approved by:	jkim
2006-01-25 23:47:12 +00:00
davidxu
af24439a4a s/sigval/sival/g 2006-01-22 03:46:03 +00:00
phk
7b3ba5ee36 Add two new variables:
# Size of the /etc ramdisk in 512 bytes sectors
	NANO_RAM_ETCSIZE=10240

	# Size of the /tmp+/var ramdisk in 512 bytes sectors
	NANO_RAM_TMPVARSIZE=10240

And a last_orders() shell function which can be redefined to copy
finished images away, order peanuts or whatever else is appropriate
2006-01-17 08:33:53 +00:00
flz
a09ac92281 I missed a whitespace in the generated commit message.
Approved by:	ssouhlal (implicit)
2006-01-15 01:01:46 +00:00
flz
ddde03f5b7 Bump version.
Approved by:	ssouhlal (implicit)
2006-01-13 20:43:00 +00:00
flz
d3e7eac46b Now with multi-commit support.
Use: `./mfc.pl -m "msg-id-1 msg-id-2" -i hurray'
or   `./mfc.pl -f - -i yippee' and copy/paste two commit logs

Approved by:	ssouhlal (implicit)
2006-01-13 20:41:04 +00:00
flz
928a616e4c - Fix issue when X-FreeBSD-CVS-Branch is not HEAD.
Submitted by:	jkim
Approved by:	jkim
2006-01-13 00:47:42 +00:00
flz
e507241549 Ok, I've created a test suite to avoid such regressions. Sorry for the noise.
Approved by:	ssouhlal (implicit)
2006-01-11 16:51:21 +00:00
flz
9596321736 - Fix another bug, it seems sometimes mail is sent to cvs-all but not cvs-ports.
Approved by:	ssouhlal (implicit)
2006-01-11 16:22:24 +00:00
flz
9b38678336 - Fix search.
- Fix author matching.

Approved by:	ssouhlal (implicit)
2006-01-11 16:00:38 +00:00
flz
b06663f584 - Remove netcat dependency by using fetch (not sure why i used nc
in the first place).
- Add some XXX lines as a TODO.
- Add a cvs diff command to the generated commit script.
- Add cdiff/colordiff to the list of optional dependencies.
- Fix a problem when giving the commit mail without the headers to
mfc.pl -f, it should now work correctly.
- Bump version.

Approved by:	ssouhlal (implicit)
2006-01-11 02:53:54 +00:00
flz
9c5f1c972a - Add a new MFC script that takes a message-id, a commit mail or a query string and
generates a patchset along with a commit message and a commit script if the user has
commit rights.
- Add a README file to give a quick description of each script's purpose.

Approved by:	netchild
2006-01-10 14:33:20 +00:00
phk
7b907043bc Add missing ' and '
Submitted by: simon
2006-01-06 11:31:59 +00:00
phk
c4b1bbc886 Make this more readable and add more devices.
Partially from:	mich@FreeBSD.org
2006-01-06 11:11:03 +00:00
harti
9cca28b4d7 Add a new leaf to the net.link.generic.ifdata.%d sysctl to retrieve
the name and unit number assigned by the driver. This is needed by
SNMP to find interfaces after they have been renamed.

MFC after:	4 weeks
2006-01-04 12:57:09 +00:00
avatar
e9ab99b720 Adding another multi-byte characters related regression test for recent
nmount(2) adoption.
2006-01-01 01:28:31 +00:00
dfr
d9cbcb50b5 Add a new extensible GSS-API layer which can support GSS-API plugins,
similar the the Solaris implementation. Repackage the krb5 GSS mechanism
as a plugin library for the new implementation. This also includes a
comprehensive set of manpages for the GSS-API functions with text mostly
taken from the RFC.

Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)
2005-12-29 14:40:22 +00:00
rwatson
9109f4fe31 Add 'juggle', a simple IPC micro-benchmark that uses various IPC types to
perform varying number of small IPC operations.  It runs using a single
process and one thread, a single process and two threads, and using
multiple processes.  Critical to its performance measure are the cost and
frequency of context switches, locking overhead, and threading
performance.  The benchmark generates .csv output appropriate for reading
into a spreadsheet to generate summary statistics and perform statistical
tests easily.
2005-12-28 12:42:12 +00:00
scottl
614b41dc53 Fix compiling on platforms with 64bit time_t. 2005-12-16 06:02:44 +00:00
des
bf3fd57aac Add a -c option to control caddr_t replacement (which was commented out in
the previous revision)
2005-12-13 22:21:46 +00:00
sam
785a4a0c55 fix include path 2005-12-13 22:15:09 +00:00
sam
3ed8b07f30 update 2005-12-13 22:13:41 +00:00
sam
13765a0cc1 fix include pathnames 2005-12-13 22:12:16 +00:00
des
7f2789bdd6 Add a script that converts K&R-style function definitions to ANSI style. 2005-12-13 22:09:50 +00:00
des
b09cdadf21 Print user, system and real time upon exit. 2005-12-13 17:51:56 +00:00
sam
11460b5b71 this didn't make it in the last commit 2005-12-11 23:15:24 +00:00
sam
310b3b7c69 o move programs to separate directories and use stock Makefiles;
this simplifies including them in crunchgen images
o rename 80211* programs to wlan* as was originally intended
2005-12-11 23:13:54 +00:00
sam
97e6ad836b remove cts burst extension stats 2005-12-11 22:46:41 +00:00
rwatson
cb090e1386 After printing per-cpu cache contents, summarize total cached items and
entries across the caches.

Fix an off-by-one error in counting caches.
2005-12-08 13:33:12 +00:00
rwatson
f2a96cd9c9 Teach umastat about the variable-length array of per-CPU caches at the end
of struct uma_zone.  It is declared as an array of size [1], but then
sized at run-time by UMA to include room for mp_maxid+1 CPUs.  We have to
copy the uma_zone first at the declared structure size, then check to make
sure it's not an internal zone before copying the larger size (UMA
internal zones don't use per-CPU caches).  This fixes umastat for SMP.
2005-12-08 13:16:22 +00:00
pjd
4ed0dcf09f Convert gstripe(8) regression tests to the new framework. 2005-12-07 01:30:44 +00:00
pjd
5250c7022c Convert gshsec(8) regression tests to the new framework. 2005-12-07 01:29:50 +00:00
pjd
ef0831aea7 Convert graid3(8) regression tests to the new framework. 2005-12-07 01:28:59 +00:00
pjd
970cb6f33a - Make use of geom_subr.sh to improve regression tests.
- Keep class-specific data in conf.sh file.
2005-12-07 01:27:23 +00:00
pjd
65dce3ed0a Finish conversion of gconcat(8) regression tests to the new framework. 2005-12-07 01:24:25 +00:00
pjd
49984acede Add file with helper functions for geom tools regression tests. 2005-12-07 01:20:18 +00:00
pjd
878b30658c Convert gnop(8) regression tests to the new framework. 2005-12-07 00:37:14 +00:00
pjd
9795800eb3 Convert gmirror(8) regression tests to the new framework. 2005-12-07 00:34:27 +00:00
rwatson
92cbca9c0a Add a simple KVM tool to dump the kernel state of UMA, including walking
the keg/zone lists, summarizing cache state, and walking bucket lists in
each zone.  I seem to get inconsistent results on SMP, possibly due to
local header problems, but it seems to work quite well on UP.  This tool
requires sufficient privilege to read /dev/mem (or a core dump), and is
for debugging purposes rather than administrative monitoring purposes
(use vmstat instead).
2005-12-05 13:04:00 +00:00
ru
abad3468e5 Move the 2->3 upgrade kit on the attic. 2005-12-03 20:30:29 +00:00
davidxu
b2bbf4f8ad Add code to test POSIX message queue. 2005-11-26 13:19:09 +00:00
scottl
01fb37711b Teach schedgraph how to parse KTR_CRITICAL records. critical_enter/exit
events are now plotted as a counting graph, similar to CPU load, so that
their duration and critnest values can be visualized.
2005-11-21 21:27:40 +00:00
phk
644983853b Add geometry of SiliconSystems 4GB CF card 2005-11-15 18:48:52 +00:00
des
cfa8912c5b Use the new syntax for GENERIC. 2005-11-14 13:34:15 +00:00
des
13b6012c65 Build a PAE kernel if a PAE config exists. 2005-11-14 13:33:17 +00:00
des
837b394189 Add support for the += operator, which appends to a multiple-value variable. 2005-11-14 13:32:30 +00:00
des
8ec73786a5 Add support for building other kernels than LINT and GENERIC. 2005-11-14 12:59:10 +00:00
marcel
7e399ad83e Update to match geom_gpt:1.35
o  Change the result of gctl(001) now that a bogus verb still requires
   a valid geom,
o  Insert gctl(024) to test for an appropriate error when a bogus verb
   is given that does have a proper geom parameter.
2005-11-13 22:02:04 +00:00
marcel
9ea593a1fb Instead of saving the unit number of the md(4) device name, save the
whole name. This does not unnecessarily close the door that in some
future we want to test on something other than md(4) devices.

Also add a "conf" action so that we can check whether a gctl actually
did the right thing or not. It's one thing to check that the result
strings are as expected, but it doesn't tell us if the end result is
correct. This needs a bit more fleshing out, but for now a visual
(i.e. manual) check suffices.
2005-11-12 20:17:08 +00:00
rwatson
c87b604005 Add unix_passfd, a simple set of regression tests for UNIX domain socket
file descriptor passing.  These tests are not all currently passed.
2005-11-09 21:41:20 +00:00
davidxu
622bb31c9a Add code to test queued SIGCHLD. 2005-11-08 09:19:44 +00:00
pjd
2d70eabb28 Add tests for -t option with short tty name - pkill(1) should accept both
(eg. "ttyv0" and "v0").
2005-11-07 16:56:16 +00:00
davidxu
18fc4b11b9 Add sigqueue test code. 2005-11-07 14:10:33 +00:00
rwatson
192c946ba5 Fix two minor typos that caused schedgraph to exit with an exception
when running on traces referencing >2 CPUs.
2005-11-06 17:43:25 +00:00
maxim
825ca06c57 Fix the path to aac_ioctl.h in the comment and style includes.
MFC after:	1 week
2005-11-06 15:47:06 +00:00
maxim
bf0e2510aa Fix include: aac_ioctl.h was moved from sys/dev/aac/ to sys/sys.
PR:		misc/88549
Submitted by:	Sokolov Alexey
MFC after:	1 week
2005-11-06 15:40:59 +00:00
stefanf
8723c51d6b Add test cases for the command built-in, including its -v and -V options which
I'll commit real soon.

Count the number of found test cases instead of hard-coding them.  Allow an
arbitrary exit status.
2005-10-28 14:02:42 +00:00
pjd
b4784d4ebf Change u_int64_t to uintmax_t and use %ju, so it compiles on 64bit archs.
I changed every u_int64_t to uintmax_t, as we should use eventually
uint64_t anyway those days.
2005-10-26 19:44:17 +00:00
rwatson
639ffa42d9 Updates and enhancements to the multi-threaded httpd performance test
tool:

- Use uname(3) to query the OS name to report in the HTTP headers.
  This is probably more useful than hard-coding FreeBSD.

- If no path is specified, create a 1k temporary file and send that
  instead.  Pass a file descriptor into http_serve() rather than using
  a global fd.

- Add more carriage returns to the HTTP headers to be a bit more
  correct.  (Suggested by: andre)

- Read to a buffer rather than a single character to reduce the number
  of recv() system calls pulling in the HTTP request.

- Properly wait for two, not one, \n's on input.
2005-10-25 18:47:12 +00:00
harti
d0b8720651 Add first tests for semicolon handling. The first test fails. This is
probably a bug in the parser.
2005-10-18 07:28:09 +00:00
harti
2733c20457 Add more tests for escaped newline handling and fix a test that currently
should fail because of a bug in the parser (test 2).
2005-10-18 07:20:14 +00:00
ambrisko
a7fa49849e This test can run now. 2005-10-12 18:04:18 +00:00
des
bebf0068f7 Add RELENG_6_0. 2005-10-09 18:01:55 +00:00
marcel
6c3e0035da Rough implementation of the create and add verbs. The verbs cause
in-memory changes only and as such are only useful for prototyping
and regression testing purposes.
2005-10-09 17:10:35 +00:00
damien
83f4245cc4 Import iwi-specific tools. Can help debug firmware or connection issues. 2005-10-07 18:27:21 +00:00
rwatson
5770eb4200 Don't hard-code port numbers, let the user specify them. 2005-10-06 12:20:33 +00:00
rwatson
b443e80b51 Improve realism of benchmark httpd: return some HTTP headers as part
of the sendfile() system call.
2005-10-06 10:28:31 +00:00
rwatson
15415175d5 Add basic simplified HTTP benchmark tools to the netrate suite:
- http is a lightweight, multithreaded HTTP query tool, which performs
  a timed measurement of the rate at which it can download files using
  single-fetch HTTP/1.0.  Other than specifying the IP and a URL path,
  it requires zero configuration.

- httpd is a lightweight, multithreaded HTTP server tool, which exports
  a single file of choice to the HTTP client, and responds with it no
  matter what the request.  Other than specifying the file to export,
  it requires zero configuration.

The goal of these tools is to measure the network costs associated with
HTTP serving, rather than file system, HTTP protocol parsing, error
handling, etc, and as such, parts relating to less interesting components
of HTTP testing are intentionally omitted.  Both are linked against
libpthread by default.
2005-10-06 08:41:08 +00:00
rwatson
2c41d20bdd Add simple TCP connect and TCP receive benchmark components, intended to
measure the rate of TCP connection round trips supported by a host at
the socket layer.
2005-10-05 12:10:35 +00:00
brooks
0f2fe8b63d Add regression tests for trimdomain(3). 2005-10-05 04:46:10 +00:00
fjoe
5c713a5737 Use mkuzip(8) instead of create_compressed_fs. 2005-09-29 22:41:20 +00:00
phk
dc422f3b70 Fix a bug in disk geometry calculation.
Fix NANO_TOOLS usage in FlashDevice()
2005-09-29 16:06:59 +00:00
phk
7557f61ce6 This one goes as well. 2005-09-26 14:58:58 +00:00
phk
9ced30d43d Remove the old Makefile based nanobsd build method, the new shell script
based is far better and the only one supported from now on.
2005-09-26 14:57:27 +00:00
phk
58b495a6f0 Correct filesystem mountpoint 2005-09-25 21:23:19 +00:00
simon
b4151b2250 Make it possible to set the NANO_TOOLS variable to a directory outside
of $NANO_SRC, which can e.g. be used if the nanobsd scripts are not in
the source tree being built.

Improved by:	phk
Approved by:	phk
2005-09-24 12:26:59 +00:00
philip
1519e686de Fix typo. MAILWRAPER -> MAILWRAPPER.
Spotted by:	Andrea Campi <andrea+freebsd_cvs_all -at- webcom.it>
Pointy hat to:	philip
2005-09-21 12:32:06 +00:00
phk
936ef077e7 Update these scripts to be more userfriendly and usage safe. 2005-09-21 09:40:45 +00:00
phk
ed5e4faa71 Add a convenience function to set NANO_MEDIASIZE, NANO_HEADS and NANO_SECTS
for commonly used flash devices by

	FlashDevice Sandisk 256MB

in the config file.
2005-09-20 09:07:18 +00:00
phk
6b94e48157 Create an /etc/nanobsd.conf in the built image and put the disk drive name
there for scripts to use.

Create a noauto fstab entry for the configuration partition (/cfg).

Add NANO_TOOLS env-var to point to the nanobsd sources relative to
NANO_SRC.

Add -h argument which prints a usage.

Add -b argument which skips build steps and goes directly to install steps.

Complain about extraneous arguments, it's usually a forgotten '-c'

Add convenience function to register customization function.

Add some sample customization functions:
	cust_comconsole
	cust_allow_ssh_root

Rename setup_diskless() to setup_nanobsd(), it makes more sense.

Add various comments etc.
2005-09-20 08:38:59 +00:00
phk
e825dac28c Dump the environment for reference.
Add a function to add customization commands.
2005-09-19 20:55:44 +00:00
rwatson
aaf789e510 Small regression test tool to generate two forms of ENOSPC on a file
system: out of blocks, and out of inodes.  Useful for exercising the
uprintf(9) calls in UFS/ext2fs in order to detect races.
2005-09-19 16:29:36 +00:00
phk
9b9ea0137d Create fstab before linking stuff into /conf 2005-09-19 15:41:08 +00:00
phk
c235110658 Missing ')' 2005-09-19 12:12:07 +00:00
marcel
d94a6a6215 o Extend the suite to run more than just the driver. We need to run
mdconfig(8), because we need a disk to work on.
o  Extend the number of tests now that we have a disk.
o  Simplify the driver. All parameters are ASCII strings now.
2005-09-19 06:51:57 +00:00
marcel
37a0bbb7e5 Add the beginnings of a testsuite for testing GPT control requests.
The testsuite is based on a simple driver program that builds a
request from the arguments passed to it and issues the request to
Geom. The driver emits FAIL with the error string or PASS depending
on whether the request completed with an error or not. A -v option
has been added to the driver and causes the request to be dumped.
The -v option to prove(1) controls the -v option to the driver.

The testsuite itself contains a hash of which the key constitutes
the arguments and the value is the expected result.
2005-09-19 02:59:09 +00:00
rwatson
585452751e Add a regression test for listen()'s backlog argument, both at time of
creation and at time of update using an additional call to listen().
This test also exercises SO_LISTENQLIMIT, a forthcoming socket option
that allows the retrieval (but not setting) of the queue limit.

Discussed with:	andre
2005-09-18 13:42:19 +00:00