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

2018-06-02 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > On 2 June 2018 at 21:14, Rodney W. Grimes > wrote: > >> On 2 June 2018 at 16:53, Rodney W. Grimes > >> wrote: > >> > [ Charset UTF-8 unsupported, converting... ] > >> >> Author: eadler > >> >> Date: Sat Jun 2 21:40:45 2018 > >> >> New Revision: 3345

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sun Jun 3 06:02:31 2018 New Revision: 334554 URL: https://svnweb.freebsd.org/changeset/base/334554 Log: top(1): Only use NO_WERROR for base gcc This is what was intended. If statements are hard. Modified: head/usr.bin/top/Makefile Modified: head/usr.bin/top/Makefil

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sun Jun 3 05:20:11 2018 New Revision: 334553 URL: https://svnweb.freebsd.org/changeset/base/334553 Log: top(1): partial revert of r334517 In fixing issues with uid > INT_MAX, I broke the uid without username case. The latter is more important so return the old state.

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

2018-06-02 Thread Eitan Adler
On 2 June 2018 at 16:56, Rodney W. Grimes wrote: >> Author: eadler >> Date: Sat Jun 2 22:06:27 2018 >> New Revision: 334543 >> URL: https://svnweb.freebsd.org/changeset/base/334543 >> >> Log: >> top(1): chdir to / as init; remove unneeded comment >> >> - chdir to / to allow unmounting of wd >

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sun Jun 3 05:07:46 2018 New Revision: 334552 URL: https://svnweb.freebsd.org/changeset/base/334552 Log: top(1): remove chdir to / While this came out of a conversation in IRC, it turn out that some people don't like it. Since this was a courtesy feature, just remove

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sun Jun 3 05:07:39 2018 New Revision: 334551 URL: https://svnweb.freebsd.org/changeset/base/334551 Log: top(1): use greater warnings One of the downsides of using numeric WARNS is that if we only have a single type of issue we get no protection from other changes. F

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

2018-06-02 Thread Eitan Adler
On 2 June 2018 at 21:14, Rodney W. Grimes wrote: >> On 2 June 2018 at 16:53, Rodney W. Grimes >> wrote: >> > [ Charset UTF-8 unsupported, converting... ] >> >> Author: eadler >> >> Date: Sat Jun 2 21:40:45 2018 >> >> New Revision: 334540 >> >> URL: https://svnweb.freebsd.org/changeset/base/33454

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

2018-06-02 Thread Rodney W. Grimes
> On 2 June 2018 at 16:53, Rodney W. Grimes > wrote: > > [ Charset UTF-8 unsupported, converting... ] > >> Author: eadler > >> Date: Sat Jun 2 21:40:45 2018 > >> New Revision: 334540 > >> URL: https://svnweb.freebsd.org/changeset/base/334540 > >> > >> Log: > >> top(1): cleanup memory allocation

svn commit: r334550 - head/sys/cddl/dev/profile

2018-06-02 Thread Justin Hibbits
Author: jhibbits Date: Sun Jun 3 03:53:11 2018 New Revision: 334550 URL: https://svnweb.freebsd.org/changeset/base/334550 Log: Revert r326083, it doesn't behave as expected. Even though there do appear to be more artificial frames, with 12, stack traces no longer list at all. Revert unt

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sun Jun 3 02:58:53 2018 New Revision: 334549 URL: https://svnweb.freebsd.org/changeset/base/334549 Log: top(1): misc minor improvements - use bool instead of int [0] - use calloc correctly [0] (this also caught an incorrect sizeof argument) [1] - use size_t

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

2018-06-02 Thread Eitan Adler
On 2 June 2018 at 16:53, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] >> Author: eadler >> Date: Sat Jun 2 21:40:45 2018 >> New Revision: 334540 >> URL: https://svnweb.freebsd.org/changeset/base/334540 >> >> Log: >> top(1): cleanup memory allocation and warnings >> >>

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

2018-06-02 Thread Rodney W. Grimes
> > Author: eadler > > Date: Sat Jun 2 22:06:27 2018 > > New Revision: 334543 > > URL: https://svnweb.freebsd.org/changeset/base/334543 > > > > Log: > > top(1): chdir to / as init; remove unneeded comment > > > > - chdir to / to allow unmounting of wd > > - remove warning about running t

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

2018-06-02 Thread Rodney W. Grimes
> Author: eadler > Date: Sat Jun 2 22:06:27 2018 > New Revision: 334543 > URL: https://svnweb.freebsd.org/changeset/base/334543 > > Log: > top(1): chdir to / as init; remove unneeded comment > > - chdir to / to allow unmounting of wd > - remove warning about running top(1) as setuid. If

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

2018-06-02 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: eadler > Date: Sat Jun 2 21:40:45 2018 > New Revision: 334540 > URL: https://svnweb.freebsd.org/changeset/base/334540 > > Log: > top(1): cleanup memory allocation and warnings > > - Prefer calloc over malloc. This is more predicable an

svn commit: r334547 - head/lib/libutil

2018-06-02 Thread Alan Somers
Author: asomers Date: Sat Jun 2 22:40:16 2018 New Revision: 334547 URL: https://svnweb.freebsd.org/changeset/base/334547 Log: pty.3: Add a HISTORY section These functions were first added in 4.3 BSD-Reno, according to http://unix.superglobalmegacorp.com/ and the CSRG svn repository.

svn commit: r334546 - in head/sys: amd64/amd64 kern sys

2018-06-02 Thread Mateusz Guzik
Author: mjg Date: Sat Jun 2 22:37:53 2018 New Revision: 334546 URL: https://svnweb.freebsd.org/changeset/base/334546 Log: Remove an unused argument to turnstile_unpend. PR: 228694 Submitted by: Julian Pszczołowski Modified: head/sys/amd64/amd64/pmap.c head/sys/kern/kern_mutex.c

svn commit: r334545 - in head/sys: contrib/zstd/lib/freebsd kern netinet/libalias sys

2018-06-02 Thread Mateusz Guzik
Author: mjg Date: Sat Jun 2 22:20:09 2018 New Revision: 334545 URL: https://svnweb.freebsd.org/changeset/base/334545 Log: malloc: try to use builtins for zeroing at the callsite Plenty of allocation sites pass M_ZERO and sizes which are small and known at compilation time. Handling them

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 22:12:57 2018 New Revision: 334544 URL: https://svnweb.freebsd.org/changeset/base/334544 Log: top(1): Fix two speeling errors I introduced Modified: head/usr.bin/top/screen.c head/usr.bin/top/top.c Modified: head/usr.bin/top/screen.c

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 22:06:27 2018 New Revision: 334543 URL: https://svnweb.freebsd.org/changeset/base/334543 Log: top(1): chdir to / as init; remove unneeded comment - chdir to / to allow unmounting of wd - remove warning about running top(1) as setuid. If this is a concern we

svn commit: r334542 - stable/11/usr.bin/indent/tests

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 21:50:00 2018 New Revision: 334542 URL: https://svnweb.freebsd.org/changeset/base/334542 Log: indent(1) in stable/11 is known to be incomplete or incorrect in some ways. Since the code is not planned for MFC, just remove the failing tests. This is a dire

svn commit: r334541 - stable/11/tests/sys/acl

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 21:46:48 2018 New Revision: 334541 URL: https://svnweb.freebsd.org/changeset/base/334541 Log: MFC r332399: [tests] change tests/sys/acl/run to run on perl 5.26 Previously unescaped regex just resulted in a warning. Now it results in a failed test.

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 21:40:45 2018 New Revision: 334540 URL: https://svnweb.freebsd.org/changeset/base/334540 Log: top(1): cleanup memory allocation and warnings - Prefer calloc over malloc. This is more predicable and we're not in a performance sensitive context. [1] - Remov

svn commit: r334538 - in head: sys/powerpc/powerpc sys/sys usr.bin/gcore

2018-06-02 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 2 20:28:58 2018 New Revision: 334538 URL: https://svnweb.freebsd.org/changeset/base/334538 Log: Included VSX registers in powerpc core dumps Summary: Included VSX registers in powerpc core dumps (both kernel and gcore) Submitted by: Luis Pires Differen

svn commit: r334537 - head/sys/amd64/amd64

2018-06-02 Thread Mateusz Guzik
Author: mjg Date: Sat Jun 2 20:14:43 2018 New Revision: 334537 URL: https://svnweb.freebsd.org/changeset/base/334537 Log: amd64: add a mild depessimization to rep mov/stos users Currently all the primitives are waiting for a rewrite, tidy them up in the meantime. Vast majority of ca

svn commit: r334535 - in head: lib/libc/sys sys/powerpc/include sys/powerpc/powerpc

2018-06-02 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 2 19:17:11 2018 New Revision: 334535 URL: https://svnweb.freebsd.org/changeset/base/334535 Log: Added ptrace support for reading/writing powerpc VSX registers Summary: Added ptrace support for getting/setting the remaining part of the VSX registers (the

svn commit: r334534 - in head/sys: dev/cx libkern sys

2018-06-02 Thread Mateusz Guzik
Author: mjg Date: Sat Jun 2 18:03:35 2018 New Revision: 334534 URL: https://svnweb.freebsd.org/changeset/base/334534 Log: Use __builtin for various mem* and b* (e.g. bzero) routines. Some of the routines were using artificially limited builtin already, drop the explicit limit. The u

svn commit: r334533 - in head/sys: libkern sys

2018-06-02 Thread Mateusz Guzik
Author: mjg Date: Sat Jun 2 17:57:09 2018 New Revision: 334533 URL: https://svnweb.freebsd.org/changeset/base/334533 Log: libkern: tidy up memset 1. Remove special-casing of 0 as it just results in an extra function call. This is clearly pessimal. 2. Drop the inline stuff. For the most

svn commit: r334532 - head/sys/netinet

2018-06-02 Thread Michael Tuexen
Author: tuexen Date: Sat Jun 2 16:28:10 2018 New Revision: 334532 URL: https://svnweb.freebsd.org/changeset/base/334532 Log: Don't overflow a buffer if we receive an INIT or INIT-ACK chunk without a RANDOM parameter but with a CHUNKS or HMAC-ALGO parameter. Please note that sending this com

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

2018-06-02 Thread Roman Bogorodskiy
Author: novel (ports committer) Date: Sat Jun 2 15:52:18 2018 New Revision: 334531 URL: https://svnweb.freebsd.org/changeset/base/334531 Log: top: add -p option and p command to only show a single process Allow to show only a single process specified by PID. This could be done either by

svn commit: r334530 - in head: share/man/man4 sys/conf sys/dev/syscons

2018-06-02 Thread Bruce Evans
Author: bde Date: Sat Jun 2 14:07:27 2018 New Revision: 334530 URL: https://svnweb.freebsd.org/changeset/base/334530 Log: Improve defaults for per-CPU kernel console colors, especially with 2 or 4 CPUs. Add a compile-time option SC_KERNEL_CONS_ATTRS to control the defaults. Default to

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

2018-06-02 Thread Konstantin Belousov
On Sat, Jun 02, 2018 at 03:31:14AM +, Eitan Adler wrote: > 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

svn commit: r334529 - head/sys/dev/syscons

2018-06-02 Thread Bruce Evans
Author: bde Date: Sat Jun 2 10:36:30 2018 New Revision: 334529 URL: https://svnweb.freebsd.org/changeset/base/334529 Log: Use per-CPU attributes earlier. The per-CPU ts is not initialized early, so the global kernel ts is used early, but it ony has 1 (normal) attribute. Switch this to t

svn commit: r334528 - head/sys/i386/include

2018-06-02 Thread Bruce Evans
Author: bde Date: Sat Jun 2 09:59:27 2018 New Revision: 334528 URL: https://svnweb.freebsd.org/changeset/base/334528 Log: Oops, the last minute reduction in the clobber list for i386 MCOUNT_OVERHEAD() in r334522 was too agressive. Only mcount exit preserves %eax and %edx. Modified: head

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 08:46:09 2018 New Revision: 334527 URL: https://svnweb.freebsd.org/changeset/base/334527 Log: Use stpcpy instead of home grown solution Modified: head/usr.bin/top/display.c head/usr.bin/top/utils.c head/usr.bin/top/utils.h Modified: head/usr.bin/top/displa

svn commit: r334526 - head/sys/dev/syscons

2018-06-02 Thread Bruce Evans
Author: bde Date: Sat Jun 2 08:38:59 2018 New Revision: 334526 URL: https://svnweb.freebsd.org/changeset/base/334526 Log: Fix low-level locking during panics. The SCHEDULER_STOPPED() hack breaks locking generally, and mtx_trylock_*() especially. When mtx_trylock_*() returns nonzero, n

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 07:44:50 2018 New Revision: 334524 URL: https://svnweb.freebsd.org/changeset/base/334524 Log: top(1): const poison part 2 Further reduce the number of warnings emitted by gcc. Modified: head/usr.bin/top/display.c head/usr.bin/top/display.h head/usr.bin

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

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 07:44:53 2018 New Revision: 334525 URL: https://svnweb.freebsd.org/changeset/base/334525 Log: top(1): remove wrapper around putchar This appears to have been written for portability which we no longer need. Modified: head/usr.bin/top/screen.c head/usr.