250763 Commits

Author SHA1 Message Date
wiz
c31cf69d08 Use more, or more appropriate, markup. 2017-05-14 10:53:26 +00:00
nat
39282196c2 Restore the use of sc_intr_lock as it was in rev 1.334.
The ring buffer pages are now wired so the use of the interrupt lock won't
cause panics.

Ok riastradh@.
2017-05-14 10:08:49 +00:00
nat
9e6d88076d Use uvm_map_pageable to wire audio ringbuffer pages an virtual addresses.
Ok riastradh@.
2017-05-14 10:01:34 +00:00
skrll
eb51ea4024 Set mci_{,i}cache_alias_mask for all variants that can have virtual cache
aliases

Set ncolors appropriately

These align to dcache and expect icache aliases to be dealt with by the
pmap directly.
2017-05-14 09:37:13 +00:00
skrll
c1ad39ae48 Really fix typo that got dcache alias mask set from icache way_mask 2017-05-14 09:33:17 +00:00
skrll
c6b7009b4c Fix typo that got dcache alias mask set from icache way_mask 2017-05-14 09:32:01 +00:00
kamil
0593bf96cb Remove regress lseek tests, obsoleted by ATF
Many tests verify lseek through rumpkernels:
 - tests/dev/cgd/t_cgd_3des
 - tests/dev/cgd/t_cgd_aes
 - tests/dev/cgd/t_cgd_blowfish
 - tests/rump/rumpvfs/t_basic
 - tests/rump/rumpvfs/t_etfs

There are traditional lseek(2) tests too:
 - tests/kernel/kqueue/read/t_file
 - tests/kernel/kqueue/read/t_file2
 - tests/kernel/t_lockf
 - tests/lib/libc/stdio/t_fflush
 - tests/lib/libc/stdio/t_fopen
 - tests/lib/libc/sys/t_msync
 - etc
2017-05-14 04:26:40 +00:00
kamil
38ae1c8035 Remove regress getdents test, obsoleted by ATF tests
There are ATF tests using rumpkernel to verify getdents:
 - tests/fs/hfs/t_pathconvert
 - tests/fs/kernfs/t_basic
 - tests/fs/vfs/t_union
2017-05-14 04:21:52 +00:00
kamil
d43b0e8728 Remove dead leftover Makefiles from src/regress 2017-05-14 04:19:06 +00:00
kamil
4dd06720f4 Remove tests for executable/non-executable stack.
These tests were not portable across compilers and recently NetBSD moved
to PaX MPROTECT.
2017-05-14 04:17:25 +00:00
kamil
523f038f8a Drop broken tests (no longer builds in years)
Removed:
 - callout1
 - mutex1
 - mutex2
 - priority_inheritance1
 - rwlock1

These tests used to require lkm code, that has been removed.
Today they are implicitly mostly verified by rumpkernel tests in ATF.
2017-05-14 04:01:10 +00:00
kamil
e57d224cf0 Remove bpf regress tests, obsoleted by ATF net/bpf and rump 2017-05-14 03:50:42 +00:00
kamil
f48b8fbc38 Remove regress sys/crypto tests, obsoleted by ATF ones
These algorithms are used in ATF tests/net/ipsec

Today it's better to use rumpkernel to verify this code instead of
reinventing testsuites linking with selected kernel private source files.
2017-05-14 03:42:42 +00:00
kamil
1df0208250 Drop regress test for des, obsoleted by ATF tests/lib/libdes/t_des 2017-05-14 03:36:36 +00:00
kamil
c47a46da1c Drop usr.bin/rtld/testlib, replaced with ATF tests in usr.bin/c++/*
This regress tests used to check dynamically loaded objects:
constructor/destructor call for static objects, C++ runtime support.

This is mostly - although without virtual functions, inheritance - covered
by existing ATF tests.

Stop descending into regress/usr.bin.
2017-05-14 02:30:27 +00:00
kamil
27a2f60665 Eliminate regress/usr.bin/c++/static_destructor - obsoleted with ATF tests
Replaced and enhanced with tests/usr.bin/c++/t_static_destructor.
2017-05-14 02:07:58 +00:00
kamil
d1be05c0a9 Add new ATF C++ tests in usr.bin/c++: t_static_destructor
These tests are cloned from t_cxxruntime and check proper order of destructor
calls. They must be reported in reverse order of constructor completion.

Added tests:
 - static_destructor
 - static_destructor_pic
 - static_destructor_pie
 - static_destructor32

This test file replaces src/regress/usr.bin/c++/static_destructor.
2017-05-14 02:02:25 +00:00
kamil
179f19cf82 Use more C++ sugar in t_cxxruntime (ATF test) 2017-05-14 01:13:44 +00:00
kamil
9fab767d88 Add new ATF C++ tests in usr.bin/c++
These tests are cloned from t_hello and use c++ runtime basic functions.

Added tests:
 - hello
 - hello_pic
 - hello_pie
 - hello32
2017-05-14 01:03:21 +00:00
kamil
b971227c60 Add new c++ ATF tests in usr.bin/c++: t_hello
This is a copy of t_hello from usr.bin/cc.

Added tests:
 - hello
 - hello_pic
 - hello_pie
 - hello32

These tests do not use c++ runtime library functions.

Protect these tests with MKCXX.
2017-05-14 00:07:07 +00:00
kamil
4dde76f99d Correct hellp_pic ATF test in usr.bin/cc
Drop "-dPIC", this is misspelled "-DPIC" option for libtool.
Enhance code example to be more pedantic.
2017-05-13 23:51:39 +00:00
htodd
d49fbd2243 Fix debug build. 2017-05-13 21:27:11 +00:00
jdolecek
7b999ff997 refactor error handling in vioscsi_scsipi_request() to avoid the goto maze,
and add missing virtio_enqueue_abort() call when bus_dmamap_load() fails;
abort is only done implicitely when virtio_enqueue_reserve() fails,
must do it explicitely if there is other reason

also now always print error when bus_dmamap_load() or virtio_enqueue_reserve()
fail - the former shouldn't fail due to BUS_DMA_ALLOCNOW, and the latter
shouldn't ever fail now after the maxnsegs fix for virtio_alloc_vq(), so
error there means driver bug
2017-05-13 20:35:20 +00:00
jdolecek
173733511a fix number of maximum segments in the queue allocation so that
MAXPHYS-sized tranfer fits inside the indirect descriptor; avoids the
!indirect path in virtio_enqueue_reserve() for these transfers,
which runs out of the vq_entries and triggers XS_RESOURCE_SHORTAGE for
bigger number of outstanding tranfers

fixes PR kern/52199 by MB
2017-05-13 20:17:42 +00:00
kardel
acf7aadada avoid a double ifa_release() and thus a panic when e. g. running ifmcstat 2017-05-13 20:13:26 +00:00
maya
fd5c025f1f blindly bump libm shlib version here too
seems to be the right thing
2017-05-13 15:07:58 +00:00
gson
2f4fb9689f Fix inconsistent whitespace 2017-05-13 15:03:34 +00:00
maya
5b9767ae88 Belatedly bump minor.
lots of changes since -7 (libm.so.0.11), including:
new functions: llroundl, lroundl, erfl, erfcl
partial switch to freebsd catrig
2017-05-13 13:17:11 +00:00
hubertf
f468e54647 minor cleanup in customize_evbarm():
keep handling of /etc/rc.conf in one place
2017-05-13 10:44:58 +00:00
kre
5dd8362a86 The beginnings of the great shell DEBUG (tracing) upgrade of 2017...
First, be aware that the DEBUG spoken of here has nothing whatever to
do with MKDEBUG=true type builds of NetBSD.   The only way to get a
DEBUG shell is to build it yourself manually.

That said, for non-DEBUG shells, this change makes only one slight
(trivial really) difference, which should affect nothing.

Previously some code was defined like ...

function(args)
{
#ifdef DEBUG
	/* function code goes here */
#endif
}

and called like ...

#ifdef DEBUG
	function(params);
#endif

resulting in several empty functions that are never called being
defined in non-DEBUG shells.   Those are now gone.   If you can detect
the difference any way other than using "nm" or similar, I'd be very
surprised...

For DEBUG shells, this introduces a whole new TRACE() setup to use
to assist in debugging the shell.

I have had this locally (uncommitted) for over a year...  it helps.

By itself this change is almost useless, nothing really changes, but
it provides the framework to allow other TRACE() calls to be updated
over time.   This is why I had not committed this earlier, my previous
version required a flag day, with all the shell's internal tracing
being updated a once - which I had done, but that shell version has
bit-rotted so badly now it is almost useless...

Future updates will add the mechanism to allow the new stuff to actually
be used in a productive way, and following that, over time, gradual
conversion of all the shell tracing to the updated form (as required,
or when I am bored...)

The one useful change that we do get now is that the fd that the shell
uses for tracing (which was usually 3, but not any more) is now protected
from user/script interference, like all the other shell inernal fds.

There is no doc (nor will there be) on any of this, if you are not reading
the source code it is useless to you, if you are, you know how it works.
2017-05-13 03:26:03 +00:00
maya
6c9a28baeb Drop superfluous ; in __warn_references 2017-05-13 02:58:03 +00:00
kamil
c6cafff5a0 Fix typo in "Interrupt"
Noted by <wiz>
2017-05-12 21:14:47 +00:00
abhinav
9f1571e578 Fix a typo: s/intepretation/interpretation 2017-05-12 21:01:36 +00:00
abhinav
8a253e32f4 Change section number from 1M to 1
The man page gets installed in section 1 anyway.

Ok christos, mrg
2017-05-12 20:58:35 +00:00
ryo
13f80cd683 replace in_fmtaddr() by IN_PRINT(), and delete function in_fmtaddr() 2017-05-12 17:53:53 +00:00
skrll
5dbdb89b56 KASSERT -> KASSERTMSG 2017-05-12 12:18:37 +00:00
skrll
da8d87b170 Trailing whitespace 2017-05-12 12:18:07 +00:00
roy
0dc9e8f6b9 carp should call if_link_state_change instead of affecting
if_link_state directly.
2017-05-12 09:22:01 +00:00
kre
f5bc33aa12 Improve the description of option processing (including the shell's
arg list processing), and the set command in general.
Also add some (new) commented out text related to options which may
be commented back in sometime soon...
2017-05-12 08:55:38 +00:00
kre
ea650deb66 Corrected some typos, added some (hopefully improving) extra text,
sorted stuff that needed sorting, and added some (probably incorrect)
markup...
2017-05-12 08:39:47 +00:00
christos
cbdf63e525 Call the right filter function for hook removal found by Stephen Borrill. 2017-05-12 08:03:26 +00:00
martin
eb66c2f831 Slightly increase the image size 2017-05-12 07:26:35 +00:00
martin
6c1d8de28f Fix a debug printf 2017-05-12 07:12:37 +00:00
skrll
8fb032d532 Sprinkle some KASSERTs 2017-05-12 06:49:31 +00:00
skrll
08e736b420 Code style and add a comment 2017-05-12 06:43:42 +00:00
skrll
85080b4d52 Don't access pg before the KASSERT it's not NULL 2017-05-12 06:38:18 +00:00
skrll
1ab746dbbf KASSERT -> MASSERTMSG 2017-05-12 05:46:39 +00:00
skrll
2a891dc6da Sprinkle some KASSERTs 2017-05-12 05:45:58 +00:00
nat
e2d7b30123 Blksize is now calculated on sc_pustream/sc_rustream.
Don't allow hw ring buffer to be saturated and data overwritten.

It should help PR kern/52175.
2017-05-12 04:15:40 +00:00
ozaki-r
e106de3177 Dedup some routines 2017-05-12 02:34:45 +00:00