Commit Graph

216973 Commits

Author SHA1 Message Date
christos
64598e0663 add a major for dtrace 2013-02-28 02:00:03 +00:00
matt
50c11d9550 Actually use zero_p now that we pass it in. 2013-02-27 22:15:46 +00:00
joerg
db135d737c Add infrastructure for building MCLinker. 2013-02-27 21:25:05 +00:00
wiz
cd5f9eed2e Remove trailing whitespace. 2013-02-27 21:21:47 +00:00
is
959a998bde Fix terminology issue brought up by Bug Hunting in PR 47314.
The boot records in extended partitions are called "Extended Boot Record"
(EBR); use that in the documentation where appropriate.
2013-02-27 20:43:00 +00:00
christos
00db437ab4 update dates, version 2013-02-27 20:12:44 +00:00
christos
1b48e11e47 skip the tests if rpcbind is not responding. 2013-02-27 18:39:58 +00:00
matt
0657ae47dd Don't include <machine/param.h> since we should be getting that stuff from
"assym.h"
2013-02-27 17:52:44 +00:00
matt
2f4dafd1d8 Define PAGESHIFT using PGSHIFT 2013-02-27 17:50:07 +00:00
matt
aaa103b16b Add a zero flag to valloc_pages so that we can *not* zero the msgbuf so it
will be preserved across boots.
2013-02-27 16:55:39 +00:00
msaitoh
3ee327ba9a No functional change:
- Fix comments.
- Change macro name.
- Change sysctl related functions for consistency.
2013-02-27 14:19:38 +00:00
msaitoh
1338751444 regen. 2013-02-27 13:59:30 +00:00
msaitoh
3bb21e23fc - Add APPLE BCM5701
- Add BROADCOM BCM57766
- BCM5719 is not 10G but 1G
2013-02-27 13:59:00 +00:00
msaitoh
eb9c80ef1e Fix macro definitions. No binary change. 2013-02-27 13:53:51 +00:00
martin
3a6917eb92 Disable ICBOPT_FAST_POST for ISP 2100.
Fixes PR kern/47302. From Matthew Jacob.
2013-02-27 09:29:21 +00:00
christos
46f24da1d2 add a new rpc test 2013-02-26 17:08:20 +00:00
christos
d7abae09ac Add a test for the rpc getaddr bug lib/13082.
Timeout added, but it needs rpcbind to be running to succeed.
2013-02-26 17:06:55 +00:00
christos
7ecc2916f6 PR/13082: Thorsten Brehm: Fix wrong memcpy that caused possible memory
corruption. XXX: pullup to 6.
2013-02-26 16:33:57 +00:00
jmmv
63c0fb4108 Cherry-pick upstream change 70aefdbe5b843d6b24b5a9b816e47f2fb026dde2:
Properly handle tabs when parsing config files

Backslashes within [] in a regexp don't have any meaning, so [ \t]
did not have the intended effect of being evaluated to a space and
a tab.  Fix this by writing an actual tab in the regexp.

Problem found by Valeriy E. Ushakov.
2013-02-26 15:23:19 +00:00
msaitoh
2fc0660020 Add some bugfixes and enhancement from FreeBSD:
- Workaround for BCM5906 silicon bug. When auto-negotiation results in
 half-duplex operation, excess collision on the ethernet link may cause
 internal chip delays that may result in subsequent valid frames being
 dropped due to insufficient receive buffer resources.
 (FreeBSD: r214219, r214251, r214292)

- Allow write DMA to request larger DMA burst size to get better
 performance on BCM5785.
 (FreeBSD r213333: OpenBSD 1.294)

- Enable TX MAC state machine lockup fix for both BCM5755 or higher
 and BCM5906. Publicly available data sheet just says it may happen
 due to corrupted TxMbuf.
 (FreeBSD r214216)

- Follow Broadcom datasheet:
 Delay 100 microseconds after enabling transmit MAC.
 Delay 10 microseconds after enabling receive MAC.
 (FreeBSD r241220)
2013-02-26 11:06:23 +00:00
msaitoh
f8a310f89b Use macro. Remove extra semicolon. No functional change. 2013-02-26 11:03:17 +00:00
christos
9208117e65 PR/45042: Thomas Cort: HAVE_foo for setrlimit(2) and setpgid(2) 2013-02-26 00:45:27 +00:00
jmmv
f2f2e0cf47 Cherry-pick upstream change d0daf9983f5a0e635f1127dbc827aa114daa90d8:
Fix broken variable parsing with NetBSD's /bin/sh

Quote the expansion of a $() command that was not properly surrounded
by quotes so that this runs properly with NetBSD's /bin/sh.
2013-02-25 18:49:51 +00:00
apb
6cee3c7cf5 Explain what PTHREAD__COMPAT is for. This comment in
src/libpthread/Makefile is adated from a comment in
src/doc/CHANGES.prev.
2013-02-25 17:04:46 +00:00
mhitch
421f8ba1fb Bump size of image. 2013-02-25 16:52:57 +00:00
matt
f8291815d6 Bump max text/data/stack sizes to more reasonable values. 2013-02-25 16:12:13 +00:00
jmmv
82977e8c6a Provide Kyua instructions in tests(7) when MKKYUA!=no.
I was first going to do this by doing automatic replacements of special
macros within the tests.7 file, but that turned out to be too complex
and confusing.

Instead, just rename the previous tests.7 to tests.atf.7 and add a new
tests.kyua.7 file.  Choose which one to install as tests(7) depending on
the MKKYUA knob.
2013-02-25 02:02:41 +00:00
dholland
21fc2b5d09 Fix obvious typo. 2013-02-25 01:57:14 +00:00
msaitoh
1b516b1c13 Use macro. Remove duplicated macro. Remove unused variable.
No functional Change.
2013-02-25 00:36:22 +00:00
jmmv
d2c8856410 Note new import of kyua-atf-compat, version 0.1. 2013-02-25 00:34:52 +00:00
jmmv
b82c36bd08 Update file lists to reflect the import of kyua-atf-compat, which has the
side-effect of marking several atf-related entries as obsolete (when
MKKYUA!=no).
2013-02-25 00:34:13 +00:00
jmmv
58ac8c454c Run tests in kyua-atf-compat if MKKYUA!=no. 2013-02-25 00:33:19 +00:00
jmmv
48b2f2c970 Add new directories for kyua-atf-compat. 2013-02-25 00:31:51 +00:00
jmmv
9c3a2b4adc Do not bother installing any XML calatog when MKKYUA!=no. We won't need
these any more, and we can possibly get rid of the directory altogether
at a later point.
2013-02-25 00:23:01 +00:00
jmmv
8c23905fbe Do not install atf-config, atf-report, atf-run nor atf-version when
MKKYUA!=no.  The newly imported kyua-atf-compat module provides a
backwards-compatibility implementation of atf-report and atf-run
based on kyua(1).
2013-02-25 00:22:10 +00:00
jmmv
1a338a3807 Descend into kyua-atf-compat when MKKYUA!=no. 2013-02-25 00:21:04 +00:00
jmmv
3bca2a4367 Add reachover build files for kyua-atf-compat. 2013-02-25 00:20:08 +00:00
jmmv
b92cbc7321 Initial import of kyua-atf-compat, version 0.1:
This is the last component of the import of Kyua and its build will be
guarded by the MKKYUA knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-atf-compat, provides tools to ease the transition from
ATF to Kyua.  In particular, this includes a tool to convert Atffile
files to Kyuafile files in an automated manner, and drop-in replacement
wrappers for both atf-run and atf-report.
2013-02-25 00:17:26 +00:00
dholland
b3e2273034 typo in comment 2013-02-25 00:15:09 +00:00
christos
34b0d22580 While it is nice to have the same function do both the upper case and
lower case conversion, it ends up eating 4% of the total time we spend
in make calling tolower() while building libc.
2013-02-24 19:43:37 +00:00
matt
1c06d41d98 Initialize t_softc. 2013-02-24 06:21:36 +00:00
matt
b1b902384f Add a t_softc member to struct tty in which a driver can store a pointer
to its softc.  (analogous to if_softc in struct ifnet).
2013-02-24 06:20:24 +00:00
jmmv
b02153e645 Install kyua-testers' distribution documents.
(Followup to my previous commit as I forgot to include these new files.)
2013-02-24 03:12:59 +00:00
jmmv
47840f72d0 Install a kyua.conf file that sets unprivileged_user to _tests. 2013-02-24 03:06:13 +00:00
jmmv
7c357179a8 Remove duplicate (and possibly invalid) 'atf' tags from 3 tests. 2013-02-23 22:56:46 +00:00
jmmv
704facb580 Autogenerate Kyuafiles next to Atffiles when MKKYUA is set.
This is suboptimal: the current high-level definitions of test programs
in the Makefiles do not carry enough information to support all the
features of Kyuafiles.  For example, it is not possible to register test
programs that do *not* use the ATF libraries, which is something that
has been frequently requested around here; nor it is possible to attach
arbitrary metadata to test programs from the Makefile, which is handy
particularly for ATF-less test programs.

For these reasons, consider this a transitional step.

Note that, with this change, you should now be able to use the 'kyua'
tool to run the tests in /usr/tests.
2013-02-23 22:01:51 +00:00
jmmv
5b7eb38d00 Stop assuming that test programs and directories are the same thing during
Atffile generation.

This is needed to be able to generate Kyuafiles (coming later), as these
clearly differentiate between the definition of test programs and the
recursion into other subdirectories (or files).

In particular: rename ATFFILE_EXTRA_TPS to ATFFILE_EXTRA_SUBDIRS and
change the logic in bsd.test.mk to keep track of subdirectories aside from
_TESTS when creating the Atffile.
2013-02-23 21:20:14 +00:00
jmmv
8faee98977 Cherry-pick upstream commit 9f81e6f6fece7f7e26643022a5efb93c3595e9bc:
Escape backslashes in test metadata

The previous code in kyua-atf-tester escaped single quotes in the
metadata of test cases so that those single quotes did not yield
invalid Lua strings in the output of the tester.

It turns out we also need to escape backslashes for things to work
properly.  Backslashes also have special meaning within Lua strings.

Found while running the NetBSD test suite.  In particular, the
lib/libc/gen/t_fnmatch test program had the '\'' sequence in the
description of a test and this made the test program be reported
as bogus.
2013-02-23 21:04:28 +00:00
jkunz
bf9547b278 Contribution from Petri Laakso:
- Support for passing kernel arguments.
- entropy_init() removed as OLINUXINO doesn't generate entropy bits without
  user interaction.
- FIFO contents are flushed when DEBUG is enabled.
2013-02-23 16:22:38 +00:00
jmmv
edcb14a44e Install kyua-testers' distribution documents. 2013-02-23 14:58:11 +00:00