Commit Graph

249644 Commits

Author SHA1 Message Date
christos
6e0bd5329a factor out getauxv code. 2017-03-30 20:17:11 +00:00
christos
8918be50e1 Add auxv 2017-03-30 20:16:42 +00:00
christos
2d1443a6bc add an auxv node. 2017-03-30 20:16:29 +00:00
abhinav
ad5244b4e8 Use Sy to highlight the table header. 2017-03-30 20:00:21 +00:00
abhinav
1bf28fdbff Add missing functions 2017-03-30 19:56:36 +00:00
abhinav
33d7e92834 Add getmntoptstr, getmntoptnum, and freemntopts to the NAME section
Fix couple of sentences

getmntoptstr, getmntoptnum, and freemntopts need to be linked to the getmntopts(3)
man page as well. Will do in a later commit after doing a relase build test.
2017-03-30 19:41:41 +00:00
abhinav
cd4acf025e Add getdiskcookedname to the NAME section
Fix couple of typos.
2017-03-30 19:23:06 +00:00
abhinav
21edcefd45 Remov comma from the last Nm entry
Use Xr instead of Fn to refer rmdir(2)
Fix couple of sentences
2017-03-30 18:54:26 +00:00
abhinav
0af8949ce2 Add `preexist' 2017-03-30 18:38:19 +00:00
sevan
2ee60d16a4 Set the relevant options to build a kernel with the necessary components to
support DTrace on the Jornada 710/720 devices.
- Modular
- Built with DTrace hooks and full symbol table
2017-03-30 17:40:09 +00:00
sevan
d3669c6273 While KDTRACE_HOOKS is enabled by default in GENERIC.common, the BEAGLEBONE
config does not make use of this config file yet.
Revert previous change (r1.39).
2017-03-30 17:17:41 +00:00
jdolecek
22308629ce support DIOCGCACHE - result is intersection of flags returned by underlying
devices; devices can't be added or removed, so the feature flags remain
static

add support for DIOCGSTRATEGY while here, mainly to make dkctl(8) output neater
2017-03-30 16:50:32 +00:00
hannken
d0dc55acf0 Locking a layer vnode is racy as it may become reclaimed before
calling the operation on the lower vnode.

Replace vi_lock with a rw_obj and change layered file systems
to share the lock with the lower vnode.

Layered file systems now use genfs_lock()/_unlock/_islocked().

Welcome to 7.99.67
2017-03-30 09:16:52 +00:00
hannken
799c5cfefa Change the operations vector before changing the mount.
Vnode operations enter the mount before using the vector.
2017-03-30 09:15:51 +00:00
hannken
1a31dbf3eb Change vrelel() to defer the test for a reclaimed vnode until
we hold both the interlock and the vnode lock.

Add a common operation to deallocate a vnode in state LOADING.
2017-03-30 09:14:59 +00:00
hannken
cf9ded4af4 Add flag VRELEL_FORCE_RELE to vrelel() to force release and
use it from vdrain_vrele() and vrele_flush() to prevent a
possible live lock from vrele_flush().
2017-03-30 09:14:08 +00:00
hannken
a644d1ecc8 Lock the vnode before changing its writecount. 2017-03-30 09:13:37 +00:00
hannken
dd67c605a3 Change _fstrans_start() to allocate per lwp info for layered file
systems to get a reference on the mount.

Set mnt_lower on successfull mount only.
2017-03-30 09:13:01 +00:00
hannken
3332a1029e Change last users of FSTRANS_LAZY to FSTRANS_SHARED and change
genfs_suspendctl() to move from FSTRANS_NORMAL to FSTRANS_SUSPENDED
and vice versa.
2017-03-30 09:12:21 +00:00
hannken
96f2116337 Remove now redundant calls to fstrans_start()/fstrans_done(). 2017-03-30 09:10:46 +00:00
hannken
63ce83dc30 Remove now redundant calls to fstrans_start()/fstrans_done().
Add fstrans_start()/fstrans_done() to lfs_putpages().
2017-03-30 09:10:08 +00:00
hannken
3c404d2c80 Protect tmpfs_getpages() against reclaiming vnodes. 2017-03-30 09:09:26 +00:00
msaitoh
4e4a66f80c Fix a bug that SR-IOV's system page size was doubled. ffs()'s bit are
numbered starting from 1.
2017-03-30 08:44:33 +00:00
skrll
e7e2876573 Indentation 2017-03-30 08:43:40 +00:00
ozaki-r
a0123401b6 Write about bpf's statistic counters 2017-03-30 06:50:53 +00:00
knakahara
90af23d20d KNF. pointed out by s-yamaguchi@IIJ 2017-03-30 06:42:05 +00:00
ozaki-r
6dc0e16b98 Write about lingering obsolete variables due to kvm(3) 2017-03-30 04:37:58 +00:00
kamil
04aac12dac Eliminate code duplication in the x86 dbregs_dr[0123]_trap_variable* tests
This is work in progress to remove no longer needed code overhead shared
between tests.

Sponsored by <The NetBSD Foundation>
2017-03-30 02:17:38 +00:00
kamil
f0df2ef69f Deduplicate shared code in dbregs_preserve_dr[0123]{,_yield,_continued}
Move common function code into shared subroutine.

While there remove checks for defined(HAVE_DBREGS). All x86 ports offer
debug register accessors.

Sponsored by <The NetBSD Foundation>
2017-03-29 23:50:09 +00:00
knakahara
26c3616f87 fix missing mutex_exit() in crypto_destroy().
crypto_destroy() is called only in error case or unloading module.
2017-03-29 23:02:43 +00:00
kamil
7c54169f6c Revert previous.
Pointed out by Christous Zoulas that ELF_AUX_ENTRIES * sizeof(AuxInfo)
assumption is incomplete. There is emulation code that can use different
values (smaller and larger).
2017-03-29 22:48:03 +00:00
jdolecek
6578d521a1 provide intr xname 2017-03-29 20:08:40 +00:00
kamil
1b2bf0e7ae Generate ELF AUXV for core(5) and ptrace(2) limited to the vector TYPE x V
Previously PT_DUMPCORE and PIOD_READ_AUXV and regular core dumping retrieved
the vector of AuxInfo {a_type, a_v} + MAXPATHLEN + ALIGN(1).

The extra data is not actually needed in the returned chunk. It can be
retrieved with PT_READ_I operations and it's the preferred way to access
them as the AuxInfo fields contain pointers (void* format) to them.

This changes the behavior of the kernel, no stable releases are affected
with this move. Current software is not affected as other systems already
stop generating data on AT_NULL. This streamlines the NetBSD behavior with
other ELF format OSes. This move also simplifies determination if we got
all the needed data inside the debugger and we no longer need to eliminate
the unneeded chunk at the end.

Sponsored by <The NetBSD Foundation>
2017-03-29 19:52:30 +00:00
christos
7ef1d3a265 Teach me about the NetBSD-CORE ELF AuxV note. 2017-03-29 15:28:42 +00:00
msaitoh
9842222b6c Fix 0x%d and 0x%u. 2017-03-29 09:04:35 +00:00
abhinav
e725035a25 Fix couple of typos. 2017-03-29 08:09:51 +00:00
nat
aabe0c0d56 Fix channel assignment for multiple channels.
This fixes a problem if two or more channels are opened and the first
(any but last channel) is closed and new channels are opened.
2017-03-29 06:24:22 +00:00
sevan
e1b35e316b Update the label text using Adobe Source Sans Pro Extra Light font at 10pt with sharp
anti-aliasing.
Replace the text option with options as there are more than one option to set on
the middle tab.

Adobe Source Sans Pro Extra Light font license (SIL Open Font License 1.1)
https://github.com/adobe-fonts/source-sans-pro/blob/master/LICENSE.txt
2017-03-28 20:32:43 +00:00
sevan
36cf084233 Replace icon with black NetBSD flag derived from NetBSD-bw.png.
The text was removed because when image was scaled down to 32x32 pixels it was a
small blurred mess.
2017-03-28 20:22:25 +00:00
chs
b3f822cf0e never pass mp->mnt_stat to dostatvfs(), always use a separate buffer.
dostatvfs() clears its buffer, but mp->mnt_stat should never be cleared.
2017-03-28 18:44:04 +00:00
maya
38f9590df4 Remove outdated CAVEATS.
Not sure everything is standards compliant, but I've been told non-default
values are supported and pshared exists.
2017-03-28 17:42:52 +00:00
skrll
7e00dd600f Enable xhci(4) 2017-03-28 15:09:29 +00:00
kamil
a730799971 Explain expected behavior for PTRACE_FORK events in t_ptrace_wait*
PR kern/52117 ptrace(2) PTRACE_FORK fails on some platforms

Add message similar to:
    We expect two SIGTRAP events, for child 22199 (TRAP_CHLD,
    pe_report_event=PTRACE_FORK, state.pe_other_pid=child2) and for child2
    (TRAP_CHLD, pe_report_event=PTRACE_FORK, state.pe_other_pid=child)

This should make the expected behavior more clear.

Sponsored by <The NetBSD Foundation>
2017-03-28 13:16:30 +00:00
kamil
203a7bc419 Mark PT_STEP tests in t_ptrace_wait* as broken on ARM
There is a definition of PT_STEP for userland, but no implementation
in the kernel.

PR kern/52119 PT_STEP not supported on arm 32-bit

Sponsored by <The NetBSD Foundation>
2017-03-28 12:39:07 +00:00
msaitoh
43a0a12a2b Sort & indent. No functional change. 2017-03-28 10:47:44 +00:00
msaitoh
213d5a45e6 Use macro. No functional change. 2017-03-28 10:30:27 +00:00
msaitoh
615a458937 Use correct macro "PCI_SATA_REV" instead of PCI_MSIX_CTL for SATA revision
register. This is not a real bug because PCI_SATA_REV and PCI_MSIX_CTL have
the same value.
2017-03-28 10:28:59 +00:00
msaitoh
307562a402 Indent. No functional change. 2017-03-28 10:25:11 +00:00
msaitoh
e6ece14757 Lowercase for consistency. No functional change. 2017-03-28 10:23:40 +00:00
ozaki-r
68574f659e Avoid touching a mbuf after enqueuing it 2017-03-28 08:47:19 +00:00