Commit Graph

242024 Commits

Author SHA1 Message Date
christos eabf50fc2e properly check for type id overflow 2016-04-09 17:51:50 +00:00
riastradh dc0a3c082c Say `loop header', not `loop head'.
`Head' means something else in this context -- a list head.
2016-04-09 17:50:54 +00:00
riastradh 236db44756 Fix a vestige of an earlier word choice: s/connected/associated/1 2016-04-09 17:48:32 +00:00
riastradh 445c99ba1f Fix wording around `list heads'.
A list head is not a list, conceptually.
2016-04-09 17:37:55 +00:00
riastradh ff614a8724 Tighten opening paragraph. Split into two smaller sentences. 2016-04-09 17:34:57 +00:00
riastradh 47b2d8f8b3 Add missing argument to kernhist_dump.
Hi nick!
2016-04-09 17:04:53 +00:00
riastradh a7a62321c9 Fix the ABI of idtype_t. 2016-04-09 17:02:51 +00:00
riastradh 905764595d Don't pollute <sys/condvar.h> with <sys/mutex.h>.
Instead, forward-declare struct kmutex, since we only need to
describe pointer types to it.

This breaks an include cycle on several architectures:

sys/cpu_data.h
-> sys/condvar.h
-> sys/mutex.h
-> sys/intr.h
-> machine/intr.h
-> machine/cpu.h
-> sys/cpu_data.h
2016-04-09 16:59:43 +00:00
riastradh 989878b760 Add autounload logic to dtrace module prototype. 2016-04-09 15:18:48 +00:00
riastradh 51346d2825 Disable autoload if there are any profile probes. 2016-04-09 15:17:58 +00:00
riastradh 4026866f8e Use imperative mood consistently. 2016-04-09 15:09:42 +00:00
riastradh 18390450e2 Fix missing NAME operand to PSLIST_ENTRY_DESTROY. 2016-04-09 15:08:39 +00:00
riastradh 7256e74462 Prevent autounload while cyclics are still in use. 2016-04-09 14:50:08 +00:00
uwe 56571e06b5 Use \(em for em-dash. 2016-04-09 13:38:20 +00:00
uwe 1ecc79c9d0 Add couple of missing .Ns 2016-04-09 13:34:33 +00:00
martin bd8b9a5dcb Add t_pslist.debug 2016-04-09 09:58:11 +00:00
riastradh c03dceb184 Add passive references, intermediate between pserialize and refcount.
Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2016/01/24/msg020069.html

API is still experimental and likely to change.  (Obvious changes:
either remove extra arguments everywhere, or shrink psref_target to a
single bit, at the expense of possibly valuable diagnostic checks.)
Should do some real testing before we use this in anger!
2016-04-09 06:21:16 +00:00
riastradh 57883e65af Fix name of example list head. 2016-04-09 05:16:23 +00:00
riastradh 4f7dd3337d Introduce pserialize-safe linked lists.
These are like LIST_* from queue(3), but issue the appropriate memory
barriers for pserialize readers and writers.

Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2016/04/03/msg020365.html
2016-04-09 04:39:46 +00:00
riastradh 2233768047 Make this list diff- and sort-friendlier.
No functional change.
2016-04-08 21:53:10 +00:00
roy 5614feca68 Revert prior. 2016-04-08 14:52:56 +00:00
roy 111ee86de4 Revert prior. 2016-04-08 14:30:47 +00:00
christos d5e7bf8bbf - remove printf
- fix indent
2016-04-08 12:01:22 +00:00
christos 7be14baef5 remove HAVE_FPARSELN 2016-04-08 11:56:43 +00:00
gson 5973801c0c Add regression tests for some past gdb bugs. 2016-04-08 10:09:16 +00:00
riastradh feb61835e6 __diagused, not __unused -- used in an assert. 2016-04-07 23:29:59 +00:00
christos 5d7cee0467 Use sockaddr_dl_init 2016-04-07 21:41:02 +00:00
palle d0242aefce Rework locking mechanism introduced in rev. 1.21: use __cpu_simple_lock... instead of mutex_... since this causes issues when LOCKDEBUG is defined 2016-04-07 19:46:39 +00:00
mrg 360285623c include opt_compat_netbsd.h to get COMPAT_SOCKCRED70 defined. 2016-04-07 17:48:40 +00:00
riastradh f408525b7f Reminder to add RCSIDs in any future DRM update. 2016-04-07 15:36:42 +00:00
christos 57b625b6f2 remove more ifdefs 2016-04-07 12:06:50 +00:00
dholland eb0c9743f2 _SC_PAGESIZE is not the page size; it's a symbolic code for retrieving
the page size.
2016-04-07 06:21:48 +00:00
christos c586dc1f9c remove useless cast. 2016-04-07 04:04:47 +00:00
christos 03c12592a0 Add PAX_MPROTECT_DEBUG 2016-04-07 03:31:12 +00:00
christos b988d754df - tidy up error messages
- add a length argument to arpresolve()
- add KASSERT for overflow
2016-04-07 03:22:15 +00:00
christos cba63d3064 Don't create an RTM_MISS message for every route allocation.
GC unused code and variables.
2016-04-07 03:09:56 +00:00
macallan 06576a066a moar registers, less tpyos 2016-04-07 01:00:05 +00:00
skrll 1a04d8c9f0 Improve ddb(4) show kernhist
1) really prints all the histories merged together (rather than just the
   "first" when no argument specified
2) dumps a single history when an argument is given, e.g.
   "show kernhist usbhist"
3) uses db_printf correctly
2016-04-06 21:56:24 +00:00
roy bb67ec8f00 Add sc_pid to sockcred so that SOCK_DGRAM and LOCAL_CREDS socket option
can learn the process id of the AF_LOCAL sender.
Add compat glue for old structure.
2016-04-06 19:45:45 +00:00
christos ee5f11c12c pretty-print link addresses. 2016-04-06 18:04:58 +00:00
christos d5ee3894c1 Don't interpret routing requests by interface index as arp entry additions! 2016-04-06 17:34:33 +00:00
roy 3fca7e8b13 Fix rssi 2016-04-06 15:10:35 +00:00
roy 50101ec8fb ieee80211 users in Other OS export rssi and noise as int8_t.
We should not be the odd one out for no good reason and the majority
of the ieee80211 drivers treat rssi as int8_t.
2016-04-06 14:42:16 +00:00
roy cdda39d7e5 Revert prior, no idea why it was causing me problems, but it no longer does. 2016-04-06 11:07:58 +00:00
gson 4efe3992f9 Fully avoid the nonstandard types u_char, u_int, and u_long, which
were only used inconsistently in a few places anyway.
2016-04-06 09:57:00 +00:00
ozaki-r 59c50f3fa9 Fill rtm_addrs properly
This fixes that arp(8) on some archs (only 32bit?) shows "(weird)"
for every entries unexpectedly.

Confirmed on evbarm by ryo@ and i386 by me.
2016-04-06 08:45:46 +00:00
wiz 54920d4dc7 Drop trailing whitespace. 2016-04-06 08:18:35 +00:00
ozaki-r 25d196eae4 Fill sdl with sockaddr_dl_init
And add an assertion of if_addrlen and ll_addr.

From christos@
2016-04-06 07:59:26 +00:00
christos 7ffce30f1b revert part of previous; not needed. 2016-04-06 04:09:10 +00:00
christos e533605fa6 Use WIFCONTINUED. 2016-04-06 03:52:27 +00:00