Commit Graph

273476 Commits

Author SHA1 Message Date
thorpej 1a2cab1766 Adopt <net/if_stats.h>. 2020-01-29 05:20:26 +00:00
thorpej b331a82b58 Adopt <net/if_stats.h>. 2020-01-29 04:37:24 +00:00
thorpej 74f4907c2d Do not reference ifp->if_data directly; use if_export_if_data(). 2020-01-29 04:35:13 +00:00
thorpej d99f8f369a Adopt <net/if_stats.h>. 2020-01-29 04:28:27 +00:00
thorpej 70b554e641 Adopt <net/if_stats.h>. 2020-01-29 04:11:35 +00:00
kamil 6639a5abb4 Add new fork/vfork/posix_spawn ATF tests in t_ptrace_wait*
Add unrelated tracer variation of tests: fork1-16, vfork1-16,
posix_spawn1-16.

All tests pass.
2020-01-29 03:51:56 +00:00
thorpej da7319bed1 Add <net/if_stats.h>. 2020-01-29 03:17:34 +00:00
thorpej 72416f91e2 Add support for MP-safe network interface statistics by maintaining them
in per-cpu storage, and collecting them for export in an if_data structure
when user-space wants them.

The new if_stat API is structured to make a gradual transition to the
new way in network drivers possible, and per-cpu stats are currently
disabled (thus there is no kernel ABI change).  Once all drivers have
been converted, the old ABI will be removed, and per-cpu stats will be
enabled universally.
2020-01-29 03:16:28 +00:00
thorpej bff1218097 - Make _NET_STAT_GETREF()'s return value a net_stat_ref_t, which is
defined as a "void *" to prevent using a net_stat_ref_t as an array.
- For each _NET_STATADD(), etc. macro, also define a _NET_STATADD_REF()
  macro that takes a ref returned by _NET_STAT_GETREF() as an argument.
  This is intended to replace direct subscripting of the refernce;
  consumers of this API will be updated in future commits.
2020-01-29 03:04:55 +00:00
knakahara f732035d8e Fix typo in evcnt description. Pointed out by yamaguchi@n.o. 2020-01-29 02:58:51 +00:00
msaitoh cdec9b8ea7 u_int{32,64}_t -> uint{32,64}_t. No functional change. 2020-01-29 02:16:02 +00:00
manu c892c08674 Fix startup crashes caused by wrong memory map handling
init_x86_vm() takes the memory map from BIOS and EFI and selects
regions suitable for memory allocation. This involves removing
areas used by the kernel, but the logic missed some corner cases,
which led to possible allocation in regions for which later memory
access would cause a panic.

The typical panic from this bug in GENERIC is at SVS startup:
cpu_svs_init / uvm_pagealloc_strat / pagezero

We fix the bug by adding logic for the missing cases of memory
regions overlapping with the kernel. While there, add more #idef'ed
debug output.
2020-01-29 01:54:34 +00:00
jmcneill cfe3c0c500 Do not extract mmap flags from the bus_space_mmap cookie as they may
conflict with the bo's existing protection flags. This caused VRAM to
be incorrectly mapped as Device-nGnRE on Arm64 instead of Normal-NC. Ok
riastradh@.
2020-01-28 23:24:09 +00:00
jmcneill 6d7752e1d5 ttm_io_prot: follow linux semantics and set either PMAP_WRITE_COMBINE or
PMAP_NOCACHE when existing cache flags are not set
2020-01-28 23:21:05 +00:00
ad 81d0e040cc gang_lookup_scan(): if a dense scan and the first sibling doesn't match,
the scan is finished.
2020-01-28 22:20:45 +00:00
ad 13d808bd75 NetBSD 9.99.43 - struct lwp, pri_t changed 2020-01-28 20:35:04 +00:00
martin 34c1cedf61 Bump timeout to 3600 - the libarchive tests take quite a while to
complete (on a nearly 1 GHz dual armv7 machine it takes more than 700s)
2020-01-28 18:18:32 +00:00
maxv 769871b8a3 More SCTLR. 2020-01-28 18:02:30 +00:00
maxv 0ab2a45ba5 Fetch ID_AA64MMFR2_EL1. Okayed by Nick the other day. 2020-01-28 17:47:50 +00:00
maxv ef9fd509e8 More identification. 2020-01-28 17:36:42 +00:00
maxv 176a543db0 Jazelle and T32EE are not part of ARMv8, fix the bits to their real
meanings. No functional change.
2020-01-28 17:33:07 +00:00
maxv adac608f11 More definitions. 2020-01-28 17:23:30 +00:00
ad 6ddd6fb429 Put pri_t back to an int. It looks like there might be a sign extension
issue somewhere but it's not worth the hassle trying to find it.
2020-01-28 16:40:27 +00:00
ad 244423bf9f Call radix_tree_init() earlier, so more stuff can make use of radixtree. 2020-01-28 16:35:39 +00:00
ad e4d889e5b3 Add a radix_tree_await_memory(), for kernel use. 2020-01-28 16:33:34 +00:00
ad c6559e920a - A bit more alignment in __pthread_st especially for the rbtree node.
- Use COHERENCY_UNIT from sys/param.h.
2020-01-28 13:08:40 +00:00
isaki 7d2f73c9d5 Set heap area explicitly.
Until the load address was moved, the heap was placed at _end (it's default)
and it was large space.  After moving, this default space was too small.
2020-01-28 12:02:02 +00:00
isaki 0d391af2a9 Revert placing .bss right after .data, and make .bss fixed at 0x5000.
.bss placed right after .data was overwritten when first 1KB loads full
.text+.data.
2020-01-28 11:57:22 +00:00
isaki 84527468e8 Use __bss_start rather than edata to point the beginning of .bss.
Currently the .bss is placed right after .data.  In that case, edata
points to the beginning of .bss so that there is no visible changes at
least currently.
2020-01-28 11:52:21 +00:00
ad a15e545ef6 pthread_join(): add a temporary hack to make lib/libpthread/t_detach pass.
The correct fix is to do this in kernel (I have that change, but it's part
of the wider change to index LWPs in a tree).
2020-01-28 09:23:15 +00:00
martin b476da6354 First arg of cpu_setmodel needs to be a format string - fix the llvm build.
From maxv.
2020-01-28 08:09:19 +00:00
skrll 3c29e82abb Traiing whitespace 2020-01-28 07:47:26 +00:00
martin 13c212dcb2 Too much disklabel magic happening in the kernel - to compensate force
MBR first when trying to identify the existing partitioning scheme of
a disk.
2020-01-28 07:43:42 +00:00
martin 968a2fe40d PR 54902: fix octal numbers accidently spelled as decimal. 2020-01-28 07:12:08 +00:00
msaitoh ffa2c4cca6 Fix comment. 2020-01-28 05:08:02 +00:00
msaitoh b636a557bc Regen. 2020-01-28 02:28:09 +00:00
msaitoh 0f3d40ab8d Remove duplicated entries. 2020-01-28 02:27:46 +00:00
jmcneill 74b8f33291 Match any node with device_type = "cpu" 2020-01-27 23:26:15 +00:00
ad 038210787f Drop the alignment check if __NO_STRICT_ALIGNMENT (x86, m68k, vax). 2020-01-27 22:22:03 +00:00
ad 42a88f8ef1 bcmp() / memcmp(): compare in uintptr_t sized chunks when it's easy to. 2020-01-27 22:13:39 +00:00
ad 78780d1e41 x86 uses the C versions of bcmp() and memcmp() now. 2020-01-27 22:09:21 +00:00
ad 60f1ad4e64 Make x86 use the C versions of bcmp() and memcmp(). 2020-01-27 22:08:08 +00:00
ad 456dddb366 Make x86 use the C version of memcmp(). 2020-01-27 22:06:13 +00:00
ad f2686a49e2 Remove comment that is out of date and I think hinting at something other
than what it says (preemption case for SCHED_FIFO).
2020-01-27 22:05:10 +00:00
ad 6c8b9827ed - lwp_wait(): if the process is exiting and no progress is being made, wake
every clock tick and kick all the LWPs again.

- lwp_create(): copy the LW_WEXIT etc flags while holding the parent's
  p_lock.  Copy only LW_WREBOOT in the case of fork(), since a pending
  coredump or exit() in the parent process isn't for the child.
2020-01-27 21:58:16 +00:00
martin 6a7f7ee8d0 Use a few strlcpy() instead of strncpy() for network ioctl structs.
We seem to have no formal documentation stating the various

	char if*_name[IFNAMSIZ]; /* if name, e.g. "en0" */

elements in ioctls are nul terminated, but the peanut gallery claims
it is so - and at least half of the code in-tree touching them agrees.
2020-01-27 21:30:17 +00:00
martin 86906049de Fix support for non-512-byte/sector disks again after I broke it when
introducing the abstract partition backends.
2020-01-27 21:21:21 +00:00
roy 476bf46ea4 Note import of openresolv-3.10.0 2020-01-27 21:14:17 +00:00
roy 9cbb0fe2f0 Sync 2020-01-27 21:13:05 +00:00
roy 41bc2f7362 Update to openresolv-3.10.0 with the following change:
Add allow_interfaces and deny_interfaces configuration knobs
2020-01-27 21:11:12 +00:00