Commit Graph

247026 Commits

Author SHA1 Message Date
abhinav
96415509bf Fix a sentence. 2016-12-24 05:40:49 +00:00
abhinav
a4dca42e82 As per C99 the range of values for the %S format specifier is [0,60]
rather than [0,61]. The standard has removed mention of double leap seconds.
The standard has give the following rationale in the time.h man page:

"The range [0,60] seconds allows for positive or negative leap seconds.
The formal definition of UTC does not permit double leap seconds, so all
mention of double leap seconds has been removed, and the range shortened
from the former [0,61] seconds seen in previous versions of POSIX."
2016-12-24 05:33:51 +00:00
wiz
891f77d746 openssh-7.4 out. 2016-12-23 23:17:57 +00:00
christos
41f4de4258 Don't attempt to shorten resolved path names (via realpath) because it could
lead to inconsistencies between different builds.
2016-12-23 21:11:45 +00:00
nat
264caa09e9 Simplify. Handle draining of vc[0] differently.
Addresses PR kern/51710 audio playback works only once.
2016-12-23 21:01:00 +00:00
mrg
75ff26e817 note mips64 n64 binary fixes. 2016-12-23 20:49:02 +00:00
scole
3ac5d95c18 make kernel compilable after recent uvm changes 2016-12-23 17:26:43 +00:00
cherry
b94dbe7b54 balloon(4) can now use uvm_hotplug(9)
Do this.
2016-12-23 17:01:10 +00:00
maya
31a42b23da add SCTP_DEBUG to ALL kernels 2016-12-23 11:27:10 +00:00
maya
4a3120403d Remove extraneous parentheses. no functional change
Appeases clang
2016-12-23 11:11:28 +00:00
maya
90e99e5963 more psize_t physmem fallout. remove conflicting types. 2016-12-23 10:48:12 +00:00
mrg
0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
skrll
8e2dc22e79 Fix uvm_page_physget_freelist so that it actually performs the two passes
it mentions.
2016-12-23 09:36:55 +00:00
maya
5aa4cebe72 Use PRIxPSIZE when printing psize_t.
Fixes i386 kernels build.
2016-12-23 09:24:57 +00:00
skrll
1547d2d3eb PRIxPHYSMEM -> PRIxPHYSSEG to fix the build 2016-12-23 09:18:02 +00:00
skrll
b9250ac781 PHYSMEM -> PHYSSEG to fix build 2016-12-23 09:16:46 +00:00
skrll
cee8cc2148 Whitespace 2016-12-23 08:53:56 +00:00
maya
6e0b406276 remove conflicting declarations of physmem. we want it to be psize_t 2016-12-23 08:09:54 +00:00
cherry
a9cac8fa8f Omitted assigning handle return value for the case:
(VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)

Fix this.
2016-12-23 07:42:32 +00:00
maya
f08e73106c Remove conflicting declaration of physmem 2016-12-23 07:40:05 +00:00
cherry
3b1622fa3c "Make NetBSD great again!"
Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
2016-12-23 07:15:27 +00:00
mrg
20c21f9f52 in getpcblist_sysctl() if sysctlnametomib() fails, return NULL and
set *len = 0, rather than bailing.  now "netstat" doesn't give up
early on kernels without INET6.
2016-12-23 06:22:00 +00:00
abhinav
93864c5433 Complete a sentence
and replace full stop with a comma at one place as the sentence wasn't finished
2016-12-23 06:01:41 +00:00
mrg
65d0ad5f99 add the member name to an error string so we know what object failed
while being requested.
2016-12-22 22:41:02 +00:00
kamil
b837326c3b The cgd(4) module requires des and blowfish symbols
This has been exposed with the MODULAR kernel.

kobj_checksyms, 979: [cgd]: linker error: symbol `BF_set_key' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_key_sched' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_ede3_cbc_encrypt' not found
WARNING: module error: unable to affix module `cgd', error 8

Reviewed by <riastradh>
2016-12-22 20:57:33 +00:00
abhinav
6672db53ac Remove trailing comma at the end of the last .Nm entry in the NAME section 2016-12-22 17:39:28 +00:00
abhinav
d52ecd3afc Grammar fixes at few places
Also, don't use .D1 inside .Bd (mandoc -Tlint was complaining)
Remove whitespace at the end of a sentence
2016-12-22 17:27:02 +00:00
maya
b6407b6ab6 add new header (uvm_physseg.h) to set list. 2016-12-22 16:32:31 +00:00
bouyer
ad7eb753d3 Xen doens't need lapic so don't allocate a lapic VA/PA for Xen.
As a side effect this makes XEN3PAE boot again but I don't know why ...
2016-12-22 16:29:05 +00:00
cherry
3a405f030d physmem should be of type psize_t
Also, use PRIxPSIZE when printf(9)ing physmem.
2016-12-22 16:05:14 +00:00
cherry
d24c42c87d Turn off uvm_hotplug option selection until we actually have it.
Should fix the build.
2016-12-22 15:54:35 +00:00
cherry
e08917ef90 switch all ports to use uvm_init.c:uvm_md_init()
uvm_setpagesize() is now subsumed within this funciton.
2016-12-22 14:47:53 +00:00
mlelstv
46f58a90c6 When balancing threads over multiple CPUs, use fixpoint arithmetic
for averages. Otherwise the decisions can be heavily biased by rounding
errors.

Add sysctl kern.sched_average_weight to change the weight of
historical data, the default is 50%.
2016-12-22 14:11:58 +00:00
mlelstv
8a03ce05bd Fix race condition in dksubr, where a dk_start from another thread
or interrupt was ignored while the queue was processed.

Bump kernel revision for changed dk_softc.
2016-12-22 13:42:14 +00:00
cherry
8af61ebf0c Use uvm_physseg.h:uvm_page_physload() instead of uvm_extern.h
For this, include uvm_physseg.h in the build and include tree, make a
cosmetic modification to the prototype for uvm_page_physload().
2016-12-22 13:26:24 +00:00
maya
0805fb3a53 fix release build after the addition of uvm_hotplug man9 page
by adding it to the set lists.
2016-12-22 12:57:18 +00:00
ozaki-r
95d40beaa9 Fix that rump.ifconfig shmifN destroy hangs up
rump.ifconfig shmifN destroy sometimes hangs up on closing a file
descriptor of kqueue under heavy load. It seems it happens because of
a race condition between closing a fd and kevent to the same fd on
another kthread for packet Rx. Fix it by executing the close operation
after the kthread left.
2016-12-22 12:55:28 +00:00
cherry
d916fc674d Add a new function called uvm_md_init() that can be called at the
appropriate time in the boot path by MD code.
2016-12-22 12:55:21 +00:00
abhinav
c665c84ea5 We don't have any ``name'' program, so remove its reference
and use markup to refer finger(1).

ok wiz@
2016-12-22 12:42:24 +00:00
abhinav
2faad91b8c Instead of saying "The finger displays information..." say "The finger utility"
(not sure if it was intentionally written like that :)

Also, add an xref to fingerd(8)
2016-12-22 12:39:40 +00:00
cherry
8cea678b1d Add the uvm_hotplug.9 manpage to the build tree. 2016-12-22 11:46:48 +00:00
mlelstv
b4b1e3daf4 fix comment. request_sense is called unlocked. 2016-12-22 11:19:21 +00:00
ozaki-r
bf6d49ecb3 Fix handling return value of rumpcomp_shmif_watchwait 2016-12-22 10:13:09 +00:00
abhinav
c8a3a46962 Add xrefs to ipsec_set_policy(3) and signal(7) 2016-12-22 09:44:56 +00:00
cherry
e6ff351e1a convention about function names for predicate checking:
s/uvm_physseg_valid()/uvm_physseg_valid_p()/

per. matt@
2016-12-22 08:15:20 +00:00
mrg
1fee883e7a fix lp64 kvm access for many kernel addresses.
in mm_md_kernacc() allow an address if it matches MIPS_KSEG0_P().

now a static n64 kvm-using binary runs sanely on an n64 kernel.
(dynamic n64 has problems with non-trivial programs.)

ok matt@.
2016-12-22 07:56:38 +00:00
knakahara
50b2b110c2 pserialize_perform() is required *after* PSLIST_WRITER_REMOVE. 2016-12-22 04:54:54 +00:00
ozaki-r
ec260ed075 Remove assertion that the lock isn't held
It's useless in this case, because without it we can know that
the lock is held or not on a next lock acquisition and even more
if LOCKDEBUG is enabled a failure on the acquisition will provide
useful information for debugging while an assertion failure will
provide just the fact that the assertion failed.
2016-12-22 03:46:51 +00:00
wiz
154b520e6c New sentence, new line. 2016-12-21 22:49:14 +00:00
kamil
49e3a2363a Add a walkaround for TLS bug in libstdc++ exposed with std::call_once
Currently std::call_once with libstdc++ works only with static linking.
Disable code path using __thread types and introduce FIXME_PR_51139.
Problem discussed in PR 51139

Functional std::call_once is required in LLVM and LLDB codebase.

Example code to test std::call_once:
#include <iostream>
#include <thread>
#include <mutex>
#include <cstdlib>
std::once_flag flag;
int main(int argc, char **argv)
{
        std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });
        return EXIT_SUCCESS;
}

Sponsored by <The NetBSD Foundation>
2016-12-21 21:55:46 +00:00