svn commit: r334522 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include

2018-06-01 Thread Bruce Evans
Author: bde Date: Sat Jun 2 05:48:44 2018 New Revision: 334522 URL: https://svnweb.freebsd.org/changeset/base/334522 Log: Fix high resolution kernel profiling just enough to not crash at boot time, especially for SMP. If configured, it turns itself on at boot time for calibration, so is

Re: svn commit: r334518 - head/usr.bin/top

2018-06-01 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > On 1 June 2018 at 21:32, Rodney W. Grimes > wrote: > >> Author: eadler > >> Date: Sat Jun 2 04:08:52 2018 > >> New Revision: 334518 > >> URL: https://svnweb.freebsd.org/changeset/base/334518 > >> > >> Log: > >> top(1): help scan-build along a bit

Re: svn commit: r334518 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
On 1 June 2018 at 21:32, Rodney W. Grimes wrote: >> Author: eadler >> Date: Sat Jun 2 04:08:52 2018 >> New Revision: 334518 >> URL: https://svnweb.freebsd.org/changeset/base/334518 >> >> Log: >> top(1): help scan-build along a bit >> >> Teach scan-build that some arrays are larger than zero,

svn commit: r334521 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 04:37:37 2018 New Revision: 334521 URL: https://svnweb.freebsd.org/changeset/base/334521 Log: top(1): const poison top(1) has a number of issues with writing to const strings. Begin helping this along by marking easy cases as const. Modified:

Re: svn commit: r334518 - head/usr.bin/top

2018-06-01 Thread Rodney W. Grimes
> Author: eadler > Date: Sat Jun 2 04:08:52 2018 > New Revision: 334518 > URL: https://svnweb.freebsd.org/changeset/base/334518 > > Log: > top(1): help scan-build along a bit > > Teach scan-build that some arrays are larger than zero, and thus not to > warn. > > Modified: >

svn commit: r334520 - in head/sys: amd64/amd64 i386/i386 i386/include libkern

2018-06-01 Thread Bruce Evans
Author: bde Date: Sat Jun 2 04:25:09 2018 New Revision: 334520 URL: https://svnweb.freebsd.org/changeset/base/334520 Log: Fix recent breakages of kernel profiling, mostly on i386 (high resolution kernel profiling remains broken). memmove() was broken using ALTENTRY(). ALTENTRY() is

svn commit: r334519 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 04:20:42 2018 New Revision: 334519 URL: https://svnweb.freebsd.org/changeset/base/334519 Log: top(1): clean up a bit - remove unused defines - use standard defines for STDOUT - don't cast for memset - avoid using (void) cast Modified:

svn commit: r334518 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 04:08:52 2018 New Revision: 334518 URL: https://svnweb.freebsd.org/changeset/base/334518 Log: top(1): help scan-build along a bit Teach scan-build that some arrays are larger than zero, and thus not to warn. Modified: head/usr.bin/top/display.c

svn commit: r334517 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 03:54:50 2018 New Revision: 334517 URL: https://svnweb.freebsd.org/changeset/base/334517 Log: top(1): Use uid_t for uid rather than 'int' Remove unneeded define while here. Modified: head/usr.bin/top/machine.c head/usr.bin/top/machine.h

svn commit: r334516 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 03:33:02 2018 New Revision: 334516 URL: https://svnweb.freebsd.org/changeset/base/334516 Log: top(1): Remove now-invalid NOTE Modified: head/usr.bin/top/top.1 Modified: head/usr.bin/top/top.1

svn commit: r334515 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 03:31:14 2018 New Revision: 334515 URL: https://svnweb.freebsd.org/changeset/base/334515 Log: top(1): avoid casting malloc Modified: head/usr.bin/top/display.c head/usr.bin/top/machine.c Modified: head/usr.bin/top/display.c

svn commit: r334514 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 03:25:15 2018 New Revision: 334514 URL: https://svnweb.freebsd.org/changeset/base/334514 Log: top(1): Use standard boolean rather than homegrown alternative Deleted: head/usr.bin/top/boolean.h Modified: head/usr.bin/top/commands.c

svn commit: r334513 - stable/11/etc/pkg

2018-06-01 Thread Glen Barber
Author: gjb Date: Sat Jun 2 02:06:48 2018 New Revision: 334513 URL: https://svnweb.freebsd.org/changeset/base/334513 Log: Revert r333474 in stable/11, which switches the default pkg repository from latest to quarterly, now that releng/11.2 had branched. Approved by: re (implicit)

svn commit: r334512 - svnadmin/conf

2018-06-01 Thread Glen Barber
Author: gjb Date: Sat Jun 2 02:05:31 2018 New Revision: 334512 URL: https://svnweb.freebsd.org/changeset/base/334512 Log: Thaw stable/11 after releng/11.2 has branched. Committers are requested to excercise caution for the duration of the 11.2-RELEASE cycle, especially regarding changes

svn commit: r334511 - in head/sys/fs: nfs nfsclient

2018-06-01 Thread Rick Macklem
Author: rmacklem Date: Sat Jun 2 00:11:26 2018 New Revision: 334511 URL: https://svnweb.freebsd.org/changeset/base/334511 Log: Fix the default number of threads for Flex File layout pNFS client I/O. The intent was that the default would be based on number of CPUs, but the code disabled

svn commit: r334509 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 00:02:15 2018 New Revision: 334509 URL: https://svnweb.freebsd.org/changeset/base/334509 Log: top(1): ansify, style(9). and nits - Prefer using ansi prototypes rather than C prototypes - Keep type on separate line from name of function - Try to keep

svn commit: r334510 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 00:02:27 2018 New Revision: 334510 URL: https://svnweb.freebsd.org/changeset/base/334510 Log: top(1): remove two unneeded headers Modified: head/usr.bin/top/commands.c Modified: head/usr.bin/top/commands.c

svn commit: r334508 - head/sys/vm

2018-06-01 Thread Mark Johnston
Author: markj Date: Sat Jun 2 00:01:07 2018 New Revision: 334508 URL: https://svnweb.freebsd.org/changeset/base/334508 Log: Remove the "pass" variable from the page daemon control loop. It serves little purpose after r308474 and r329882. As a side effect, the removal fixes a bug in

svn commit: r334507 - head/sys/vm

2018-06-01 Thread Konstantin Belousov
Author: kib Date: Fri Jun 1 23:50:51 2018 New Revision: 334507 URL: https://svnweb.freebsd.org/changeset/base/334507 Log: Only check for MAP_32BIT when available. Reported by: mmacy Sponsored by: The FreeBSD Foundation MFC after:10 days Modified: head/sys/vm/vm_mmap.c

svn commit: r334506 - head/sys/kern

2018-06-01 Thread Mark Johnston
Author: markj Date: Fri Jun 1 23:49:32 2018 New Revision: 334506 URL: https://svnweb.freebsd.org/changeset/base/334506 Log: Avoid completing I/O when dumping core after a panic. Filesystem or pager completion callbacks are generally non-functional after a panic and may trigger deadlocks

svn commit: r334505 - in head/lib/libc: aarch64 riscv

2018-06-01 Thread Mark Johnston
Author: markj Date: Fri Jun 1 23:42:10 2018 New Revision: 334505 URL: https://svnweb.freebsd.org/changeset/base/334505 Log: Don't export _end on arm64 and riscv. These platforms don't support brk() and sbrk(), which are the reason for exporting _end in the first place. MFC after:

svn commit: r334504 - head/lib/libc/sys

2018-06-01 Thread Mark Johnston
Author: markj Date: Fri Jun 1 23:40:43 2018 New Revision: 334504 URL: https://svnweb.freebsd.org/changeset/base/334504 Log: Remove an inaccuracy from mincore.2. Super pages are supported on non-x86 architectures, so just remove the incorrect note. While here, change terminology to be

svn commit: r334503 - head/usr.bin/at

2018-06-01 Thread Conrad Meyer
Author: cem Date: Fri Jun 1 22:57:19 2018 New Revision: 334503 URL: https://svnweb.freebsd.org/changeset/base/334503 Log: at.man: Bump .Dd missed in r334502 Sponsored by: Dell EMC Isilon Modified: head/usr.bin/at/at.man Modified: head/usr.bin/at/at.man

svn commit: r334502 - in head: bin/date usr.bin/at usr.bin/last

2018-06-01 Thread Conrad Meyer
Author: cem Date: Fri Jun 1 22:37:59 2018 New Revision: 334502 URL: https://svnweb.freebsd.org/changeset/base/334502 Log: Update other man pages to match leap second reality Missed these in r334501; see justification there: https://svnweb.freebsd.org/base?view=revision=334501

svn commit: r334501 - head/usr.bin/touch

2018-06-01 Thread Conrad Meyer
Author: cem Date: Fri Jun 1 22:34:59 2018 New Revision: 334501 URL: https://svnweb.freebsd.org/changeset/base/334501 Log: touch.1: Update to conform to POSIX 2004 POSIX borrowed the "double leap second" bug from C89. Double leap seconds can never happen. This mistake was present in at

svn commit: r334500 - in head/lib/libc: amd64/gen i386/gen

2018-06-01 Thread Brooks Davis
Author: brooks Date: Fri Jun 1 22:09:27 2018 New Revision: 334500 URL: https://svnweb.freebsd.org/changeset/base/334500 Log: Remove support for SYS_sys_exit in favor of SYS_exit. SYS_exit has been defined in the repo since 1994 except for a brief window when SYS_sys_exit was defined in

svn commit: r334498 - head/sys/powerpc/include

2018-06-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 1 21:37:20 2018 New Revision: 334498 URL: https://svnweb.freebsd.org/changeset/base/334498 Log: Increase powerpc64 KVA from ~7.25GB to 32GB This will let us use much more KVA for ZFS ARC where needed. This may be incresed in the future if memory

svn commit: r334499 - head/sys/vm

2018-06-01 Thread Alan Cox
Author: alc Date: Fri Jun 1 21:37:42 2018 New Revision: 334499 URL: https://svnweb.freebsd.org/changeset/base/334499 Log: Only a small subset of mmap(2)'s flags should be used in combination with the flag MAP_GUARD. Rather than enumerating the flags that are not allowed, enumerate the

svn commit: r334497 - head/sys/netinet

2018-06-01 Thread Michael Tuexen
Author: tuexen Date: Fri Jun 1 21:24:27 2018 New Revision: 334497 URL: https://svnweb.freebsd.org/changeset/base/334497 Log: Limit the retransmission timer for SYN-ACKs by TCPTV_REXMTMAX. Use the same logic to handle the SYN-ACK retransmission when sent from the syn cache code as when

svn commit: r334496 - head/tests/sys/audit

2018-06-01 Thread Alan Somers
Author: asomers Date: Fri Jun 1 21:24:10 2018 New Revision: 334496 URL: https://svnweb.freebsd.org/changeset/base/334496 Log: audit(4): add tests for the fd audit class The only syscalls in this class are rmdir, unlink, unlinkat, rename, and renameat. Also, set is_exclusive for all

svn commit: r334495 - head/usr.bin/indent

2018-06-01 Thread Piotr Pawel Stefaniak
Author: pstef Date: Fri Jun 1 20:45:35 2018 New Revision: 334495 URL: https://svnweb.freebsd.org/changeset/base/334495 Log: indent(1): improve an error message When producing a "[...] requires a parameter" error, provide the recognized name of the option instead of argument provided.

svn commit: r334494 - head/sys/netinet

2018-06-01 Thread Michael Tuexen
Author: tuexen Date: Fri Jun 1 19:58:19 2018 New Revision: 334494 URL: https://svnweb.freebsd.org/changeset/base/334494 Log: Ensure net.inet.tcp.syncache.rexmtlimit is limited by TCP_MAXRXTSHIFT. If the sysctl variable is set to a value larger than TCP_MAXRXTSHIFT+1, the array

svn commit: r334493 - in head/usr.bin/indent: . tests

2018-06-01 Thread Piotr Pawel Stefaniak
Author: pstef Date: Fri Jun 1 19:56:41 2018 New Revision: 334493 URL: https://svnweb.freebsd.org/changeset/base/334493 Log: indent(1): restore working -pcs My previous indent(1) commit accidentally broke the -pcs option (which adds space between function name and opening parenthesis in

svn commit: r334492 - in head/sys/fs: nfs nfsserver

2018-06-01 Thread Rick Macklem
Author: rmacklem Date: Fri Jun 1 19:47:41 2018 New Revision: 334492 URL: https://svnweb.freebsd.org/changeset/base/334492 Log: Add the BindConnectiontoSession operation to the NFSv4.1 server. Under some fairly unusual circumstances, the Linux NFSv4.1 client is doing a

svn commit: r334491 - head/sys/dev/aac

2018-06-01 Thread Warner Losh
Author: imp Date: Fri Jun 1 19:42:59 2018 New Revision: 334491 URL: https://svnweb.freebsd.org/changeset/base/334491 Log: Add PNP_INFO to aac Reviewed by: imp, chuck Submitted by: Lakhan Shiva Kamireddy Sponsored by: Google, Inc. (GSoC 2018) Modified: head/sys/dev/aac/aac_pci.c

svn commit: r334490 - head/share/man/man9

2018-06-01 Thread Jonathan T. Looney
Author: jtl Date: Fri Jun 1 16:47:39 2018 New Revision: 334490 URL: https://svnweb.freebsd.org/changeset/base/334490 Log: Update the sysctl(9) manpage to indicate that is required instead of . ( includes NULL, which is defined with and not .) Sponsored by: Netflix Modified:

svn commit: r334489 - head/sys/dev/cxgbe

2018-06-01 Thread Navdeep Parhar
Author: np Date: Fri Jun 1 16:46:29 2018 New Revision: 334489 URL: https://svnweb.freebsd.org/changeset/base/334489 Log: cxgbe(4): Include full duplex mediaopt in media that can be reported as active. Always report full duplex in active media. Sponsored by: Chelsio Communications

svn commit: r334488 - head/sys/powerpc/include

2018-06-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 1 16:31:05 2018 New Revision: 334488 URL: https://svnweb.freebsd.org/changeset/base/334488 Log: Unbreak 32-bit binaries on powerpc64 Recently a change was made which broke loading 32-bit binaries on powerpc64, with an assertion in ld-elf32.so.1:

svn commit: r334487 - head/tests/sys/audit

2018-06-01 Thread Alan Somers
Author: asomers Date: Fri Jun 1 16:23:47 2018 New Revision: 334487 URL: https://svnweb.freebsd.org/changeset/base/334487 Log: audit(4): Add tests for the fw class of syscalls. truncate and ftruncate are the only syscalls in this class, apart from certain variations of open and openat,

svn commit: r334486 - head/sys/kern

2018-06-01 Thread Ed Maste
Author: emaste Date: Fri Jun 1 13:26:45 2018 New Revision: 334486 URL: https://svnweb.freebsd.org/changeset/base/334486 Log: ANSIfy sys/kern Modified: head/sys/kern/kern_descrip.c head/sys/kern/kern_exec.c head/sys/kern/subr_prof.c head/sys/kern/sys_pipe.c head/sys/kern/sysv_msg.c

svn commit: r334485 - head/sys/powerpc/ofw

2018-06-01 Thread Breno Leitao
Author: leitao Date: Fri Jun 1 12:43:13 2018 New Revision: 334485 URL: https://svnweb.freebsd.org/changeset/base/334485 Log: powerpc64: Avoid overwriting initrd area Currently kexec loads an initrd file into the main memory but does not mark that region as reserved, thus the area is not

svn commit: r334484 - head/sys/compat/linuxkpi/common/include/linux

2018-06-01 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 1 12:09:07 2018 New Revision: 334484 URL: https://svnweb.freebsd.org/changeset/base/334484 Log: Implement the __sg_alloc_table_from_pages() function based on the existing sg_alloc_table_from_pages() function in the LinuxKPI. This basically allow segments

svn commit: r334483 - in head/sys/compat/linuxkpi/common: include/linux src

2018-06-01 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 1 11:42:09 2018 New Revision: 334483 URL: https://svnweb.freebsd.org/changeset/base/334483 Log: Implement radix_tree_iter_delete() in the LinuxKPI. Submitted by: Johannes Lundberg MFC after:1 week Sponsored by: Mellanox Technologies Sponsored by:

svn commit: r334482 - in head/sys/compat/linuxkpi/common: include/linux src

2018-06-01 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 1 11:33:14 2018 New Revision: 334482 URL: https://svnweb.freebsd.org/changeset/base/334482 Log: Improve high resolution timer support in the LinuxKPI. Submitted by: Johannes Lundberg MFC after:1 week Sponsored by: Mellanox Technologies Sponsored

svn commit: r334481 - head/sys/compat/linuxkpi/common/include/linux

2018-06-01 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 1 11:14:59 2018 New Revision: 334481 URL: https://svnweb.freebsd.org/changeset/base/334481 Log: Add more GFP macro definitions in the LinuxKPI. Submitted by: Johannes Lundberg MFC after:1 week Sponsored by: Mellanox Technologies Sponsored by:

svn commit: r334480 - in head/usr.bin/indent: . tests

2018-06-01 Thread Piotr Pawel Stefaniak
Author: pstef Date: Fri Jun 1 09:58:44 2018 New Revision: 334480 URL: https://svnweb.freebsd.org/changeset/base/334480 Log: indent(1): don't add unneeded space to function pointer declarations If the current token is an opening parenthesis, it's either a function call (or sizeof or

svn commit: r334479 - head/sys/dev/acpica

2018-06-01 Thread Andriy Gapon
Author: avg Date: Fri Jun 1 09:44:23 2018 New Revision: 334479 URL: https://svnweb.freebsd.org/changeset/base/334479 Log: call AcpiLeaveSleepStatePrep after re-enabling interrupts I want to do this change because this call (actually, AcpiHwLegacyWakePrep) does a memory allocation and

svn commit: r334477 - in head/usr.bin/indent: . tests

2018-06-01 Thread Piotr Pawel Stefaniak
Author: pstef Date: Fri Jun 1 09:32:42 2018 New Revision: 334477 URL: https://svnweb.freebsd.org/changeset/base/334477 Log: indent(1): consider tab characters when forcing a newline after a comma Modified: head/usr.bin/indent/indent.c head/usr.bin/indent/tests/declarations.0

Re: svn commit: r333174 - head/sys/amd64/vmm/io

2018-06-01 Thread Harry Schmalzbauer
Am 02.05.2018 um 20:20 schrieb Peter Grehan: That places the MFC right before the optional 11.2 Beta3, I would rather see this "low risk" change merged before May 11th, the code freeze date and Beta1, if it is desired in 11.2, for maximal test exposure.  Sure, that can be done. Hope it's not

svn commit: r334478 - in head/usr.bin/indent: . tests

2018-06-01 Thread Piotr Pawel Stefaniak
Author: pstef Date: Fri Jun 1 09:41:15 2018 New Revision: 334478 URL: https://svnweb.freebsd.org/changeset/base/334478 Log: indent(1): don't indent typedef declarations as object declarations Modified: head/usr.bin/indent/indent.c head/usr.bin/indent/indent_codes.h

svn commit: r334476 - head/sys/dev/usb/template

2018-06-01 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jun 1 09:17:20 2018 New Revision: 334476 URL: https://svnweb.freebsd.org/changeset/base/334476 Log: Set bDeviceClass properly for composite device (template 8). There should be no functional change. PR: 203289 Reviewed by: hselasky@ MFC after:

svn commit: r334475 - in head/usr.bin/indent: . tests

2018-06-01 Thread Piotr Pawel Stefaniak
Author: pstef Date: Fri Jun 1 08:54:51 2018 New Revision: 334475 URL: https://svnweb.freebsd.org/changeset/base/334475 Log: indent(1): identifiers inside parentheses are not declarations Also make lparen position calculation consider tab stops. This improves function pointer typedef

Re: svn commit: r334474 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
On 31 May 2018 at 22:51, Eitan Adler wrote: > Author: eadler > Date: Fri Jun 1 05:51:40 2018 > New Revision: 334474 > URL: https://svnweb.freebsd.org/changeset/base/334474 > > Log: > top(1): Display of TID when using 'H' flag > > Some users prefer seeing the TID when viewing individual

svn commit: r334474 - head/usr.bin/top

2018-06-01 Thread Eitan Adler
Author: eadler Date: Fri Jun 1 05:51:40 2018 New Revision: 334474 URL: https://svnweb.freebsd.org/changeset/base/334474 Log: top(1): Display of TID when using 'H' flag Some users prefer seeing the TID when viewing individual threads. This makes sense as the PID will be the same for