svn commit: r310386 - head/usr.sbin/syslogd

2016-12-21 Thread Hiroki Sato
Author: hrs Date: Thu Dec 22 05:57:45 2016 New Revision: 310386 URL: https://svnweb.freebsd.org/changeset/base/310386 Log: Add a missing "default:" case. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ==

svn commit: r310385 - head/usr.sbin/syslogd

2016-12-21 Thread Hiroki Sato
Author: hrs Date: Thu Dec 22 05:55:44 2016 New Revision: 310385 URL: https://svnweb.freebsd.org/changeset/base/310385 Log: Initialize a structure by using a compound literal to avoid forgetting to zero unspecified members. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/s

svn commit: r310384 - head/usr.sbin/syslogd

2016-12-21 Thread Hiroki Sato
Author: hrs Date: Thu Dec 22 05:28:30 2016 New Revision: 310384 URL: https://svnweb.freebsd.org/changeset/base/310384 Log: Fix debug log in the case of AF_INET6. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ==

svn commit: r310383 - head/usr.sbin/syslogd

2016-12-21 Thread Hiroki Sato
Author: hrs Date: Thu Dec 22 05:23:38 2016 New Revision: 310383 URL: https://svnweb.freebsd.org/changeset/base/310383 Log: - Simplify masklen->netmask conversion for AF_INET6. - Use iov[N] by array index instead of using pointer v = &iov[0] to make the compiler catch an out-of-range access

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Warner Losh
On Wed, Dec 21, 2016 at 12:06 PM, Ed Schouten wrote: > Hi Adrian, > > 2016-12-21 18:32 GMT+01:00 Adrian Chadd : >> Maybe just "sysctl_export" would be fine. > > Good point. Almost all Prometheus metrics exporters use this naming scheme: > > ~80%: ${foo}_exporter > ~20%: prometheus_${foo}_exporter

svn commit: r310382 - head/sbin/tunefs

2016-12-21 Thread Brooks Davis
Author: brooks Date: Thu Dec 22 00:35:12 2016 New Revision: 310382 URL: https://svnweb.freebsd.org/changeset/base/310382 Log: Convert tunefs use to nmount(2) Reviewed by: jhb, emaste Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D8822 Modified:

Re: svn commit: r309745 - in head: share/man/man9 sys/kern sys/sys

2016-12-21 Thread hiren panchasara
On 12/09/16 at 05:58P, Gleb Smirnoff wrote: > Author: glebius > Date: Fri Dec 9 17:58:34 2016 > New Revision: 309745 > URL: https://svnweb.freebsd.org/changeset/base/309745 > > Log: > Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck(). > When rated event happens at a ve

svn commit: r310381 - head/sys/dev/ow

2016-12-21 Thread Gavin Atkinson
Author: gavin Date: Thu Dec 22 00:09:53 2016 New Revision: 310381 URL: https://svnweb.freebsd.org/changeset/base/310381 Log: ow_temp: Update the temperature visible via the sysctl atomically, rather than using it as temporary calculation space. Modified: head/sys/dev/ow/ow_temp.c Modified:

svn commit: r310380 - stable/10/bin/df

2016-12-21 Thread Brooks Davis
Author: brooks Date: Wed Dec 21 23:59:58 2016 New Revision: 310380 URL: https://svnweb.freebsd.org/changeset/base/310380 Log: MFC r310088, r310090, r310095 r310088: Put the undocumented df feature of mounting filesystems from device nodes under an ifdef. Leave enabled. Reviewed

svn commit: r310379 - head/sys/dev/ow

2016-12-21 Thread Gavin Atkinson
Author: gavin Date: Wed Dec 21 23:54:12 2016 New Revision: 310379 URL: https://svnweb.freebsd.org/changeset/base/310379 Log: ow_temp: Correct typo in comment Modified: head/sys/dev/ow/ow_temp.c Modified: head/sys/dev/ow/ow_temp.c ==

svn commit: r310378 - stable/10/sbin/mount

2016-12-21 Thread Brooks Davis
Author: brooks Date: Wed Dec 21 23:16:58 2016 New Revision: 310378 URL: https://svnweb.freebsd.org/changeset/base/310378 Log: MFC r310092: Add a free_iovec() function to reset iovec's. The primary purpose is to call nmount() in a loop with new iovec's so free_iovec takes arguments by

svn commit: r310377 - stable/11/bin/df

2016-12-21 Thread Brooks Davis
Author: brooks Date: Wed Dec 21 22:53:10 2016 New Revision: 310377 URL: https://svnweb.freebsd.org/changeset/base/310377 Log: MFC r310088, r310090, r310095 r310088: Put the undocumented df feature of mounting filesystems from device nodes under an ifdef. Leave enabled. Reviewed

svn commit: r310376 - head/sys/netinet

2016-12-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Dec 21 22:47:10 2016 New Revision: 310376 URL: https://svnweb.freebsd.org/changeset/base/310376 Log: Remove assigned only variable. Modified: head/sys/netinet/tcp_syncache.c Modified: head/sys/netinet/tcp_syncache.c ==

svn commit: r310375 - head/sys/dev/iwn

2016-12-21 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Dec 21 22:35:26 2016 New Revision: 310375 URL: https://svnweb.freebsd.org/changeset/base/310375 Log: [iwn] Several fixes for DMA part of iwn(4) - Perform DMS sync when accessing/initializing ICT table - Fix some DMA sync operations to use matching tags Reviewe

Re: svn commit: r310124 - head/sys/boot/arm/uboot

2016-12-21 Thread Ronald Klop
Hello, Is this 12-CURRENT only or also applicable to 11-STABLE? Regards, Ronald. On Thu, 15 Dec 2016 18:36:55 +0100, Andrew Turner wrote: Author: andrew Date: Thu Dec 15 17:36:54 2016 New Revision: 310124 URL: https://svnweb.freebsd.org/changeset/base/310124 Log: Add -fPIC to the ubld

Re: svn commit: r310363 - stable/10/sys/vm

2016-12-21 Thread Hiroshi Yoshida
On Wed, 21 Dec 2016 11:32:09 + (UTC) Konstantin Belousov wrote: > Author: kib > Date: Wed Dec 21 11:32:08 2016 > New Revision: 310363 > URL: https://svnweb.freebsd.org/changeset/base/310363 > > Log: > MFC r310098: > Provide introductory description of the default pager. > > Modified: >

svn commit: r310374 - stable/11/sbin/mount

2016-12-21 Thread Brooks Davis
Author: brooks Date: Wed Dec 21 22:04:44 2016 New Revision: 310374 URL: https://svnweb.freebsd.org/changeset/base/310374 Log: MFC r310092: Add a free_iovec() function to reset iovec's. The primary purpose is to call nmount() in a loop with new iovec's so free_iovec takes arguments by

Re: svn commit: r310138 - head/lib/libc/stdio

2016-12-21 Thread Jilles Tjoelker
On Tue, Dec 20, 2016 at 06:04:31PM -0800, Conrad Meyer wrote: > On Tue, Dec 20, 2016 at 5:56 PM, Adrian Chadd wrote: > > Here's my reason for removal. > > Plenty of us are looking to be able to build bits of the BSD source > > tree as part of other non FreeBSD systems, especially if they're > > i

svn commit: r310373 - in head/sys/cam: ctl scsi

2016-12-21 Thread Alexander Motin
Author: mav Date: Wed Dec 21 20:19:12 2016 New Revision: 310373 URL: https://svnweb.freebsd.org/changeset/base/310373 Log: Add support for REPORTING OPTIONS == 3 in REPORT SUPPORTED OPERATION CODES. MFC after:2 weeks Modified: head/sys/cam/ctl/ctl.c head/sys/cam/scsi/scsi_all.h Mo

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Edward Tomasz NapieraƂa
On 1221T2006, Ed Schouten wrote: > Hi Adrian, > > 2016-12-21 18:32 GMT+01:00 Adrian Chadd : > > Maybe just "sysctl_export" would be fine. > > Good point. Almost all Prometheus metrics exporters use this naming scheme: > > ~80%: ${foo}_exporter > ~20%: prometheus_${foo}_exporter > > Examples; >

Re: svn commit: r310336 - head/sys/kern

2016-12-21 Thread John Baldwin
On Wednesday, December 21, 2016 02:40:09 PM Julian Elischer wrote: > On 21/12/2016 3:44 AM, John Baldwin wrote: > > Author: jhb > > Date: Tue Dec 20 19:44:44 2016 > > New Revision: 310336 > > URL: https://svnweb.freebsd.org/changeset/base/310336 > > > > Log: > >Don't spin in pause() during earl

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Adrian Chadd
My suggestion is "let's flesh out the toolsets a bit first, we can rename them before 12.0". If you really want a namespace that you can tabcomplete, then my bikeshed is painted "stats_export_XXX". I have other comments, like "should this really be doing HTTP / gzip output?" instead of say, using

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Ed Schouten
Hi Adrian, 2016-12-21 18:32 GMT+01:00 Adrian Chadd : > Maybe just "sysctl_export" would be fine. Good point. Almost all Prometheus metrics exporters use this naming scheme: ~80%: ${foo}_exporter ~20%: prometheus_${foo}_exporter Examples; - https://github.com/prometheus/node_exporter - https://

svn commit: r310372 - in stable/11: lib/libmd sys/crypto/sha2 sys/crypto/skein sys/sys

2016-12-21 Thread Ed Maste
Author: emaste Date: Wed Dec 21 18:42:04 2016 New Revision: 310372 URL: https://svnweb.freebsd.org/changeset/base/310372 Log: MFC r307521: libmd: introduce functions that operate on fd instead of filename Modified: stable/11/lib/libmd/md4.h stable/11/lib/libmd/md5.h stable/11/lib/libmd/md

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Alexandre Biancalana
+1 On Wed, Dec 21, 2016 at 3:32 PM, Adrian Chadd wrote: > heh, > > in an ideal world we'd not call this "prometheus", it'd just be the > way we export sysctl data via 'sysctl' in a machine parsable format. > Ok, since it's HTTP/gzip, maybe a separate standalone program is cool, > but it doesn't

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Adrian Chadd
heh, in an ideal world we'd not call this "prometheus", it'd just be the way we export sysctl data via 'sysctl' in a machine parsable format. Ok, since it's HTTP/gzip, maybe a separate standalone program is cool, but it doesn't have to be specific to prometheus. :-) That way anyone wanting to wri

Re: svn commit: r310330 - in head: share/man/man4 sys/conf sys/dev/xdma

2016-12-21 Thread Ruslan Bukin
On Tue, Dec 20, 2016 at 12:50:11PM -0800, John Baldwin wrote: > On Tuesday, December 20, 2016 06:02:07 PM Ruslan Bukin wrote: > > Author: br > > Date: Tue Dec 20 18:02:07 2016 > > New Revision: 310330 > > URL: https://svnweb.freebsd.org/changeset/base/310330 > > > > Log: > > Add xDMA -- the DMA

svn commit: r310371 - head/sys/dev/bhnd/tools

2016-12-21 Thread Ed Maste
Author: emaste Date: Wed Dec 21 15:45:23 2016 New Revision: 310371 URL: https://svnweb.freebsd.org/changeset/base/310371 Log: bhnd: remove srand() to ensure deterministic output r310342 fixed non-deterministic nvram_map_gen.awk output and thus a non- reproducible bhnd(4) build by using a

svn commit: r310370 - stable/9/contrib/binutils/bfd

2016-12-21 Thread Pedro F. Giffuni
Author: pfg Date: Wed Dec 21 15:40:16 2016 New Revision: 310370 URL: https://svnweb.freebsd.org/changeset/base/310370 Log: MFC r310132: libbfd: make sure variables are initialized before using them. Initialize l_sec_contents to make sure that free(l_sec_contents) is called on valid poin

svn commit: r310369 - stable/10/contrib/binutils/bfd

2016-12-21 Thread Pedro F. Giffuni
Author: pfg Date: Wed Dec 21 15:39:16 2016 New Revision: 310369 URL: https://svnweb.freebsd.org/changeset/base/310369 Log: MFC r310132: libbfd: make sure variables are initialized before using them. Initialize l_sec_contents to make sure that free(l_sec_contents) is called on valid poin

svn commit: r310368 - stable/11/contrib/binutils/bfd

2016-12-21 Thread Pedro F. Giffuni
Author: pfg Date: Wed Dec 21 15:38:28 2016 New Revision: 310368 URL: https://svnweb.freebsd.org/changeset/base/310368 Log: MFC r310132: libbfd: make sure variables are initialized before using them. Initialize l_sec_contents to make sure that free(l_sec_contents) is called on valid poin

svn commit: r310367 - head/bin/pax

2016-12-21 Thread Pedro F. Giffuni
Author: pfg Date: Wed Dec 21 15:26:59 2016 New Revision: 310367 URL: https://svnweb.freebsd.org/changeset/base/310367 Log: pax(1): Fix a bug with archives smaller than 512 bytes. The problem here is that the archive is too short (< 512 bytes). The buffer routines, try to read at lea

svn commit: r310366 - head/sys/cam/ctl

2016-12-21 Thread Alexander Motin
Author: mav Date: Wed Dec 21 15:17:47 2016 New Revision: 310366 URL: https://svnweb.freebsd.org/changeset/base/310366 Log: Add support for SITUA bit in Logical Block Provisioning mode page. VMware tries to enable this bit to avoid multiple threshold notifications in case of multiple initi

svn commit: r310365 - head/contrib/llvm/projects/libunwind/src

2016-12-21 Thread Ed Maste
Author: emaste Date: Wed Dec 21 14:06:44 2016 New Revision: 310365 URL: https://svnweb.freebsd.org/changeset/base/310365 Log: libunwind: make __{de,}register_frame compatible with libgcc API The libgcc __register_frame and __deregister_frame functions take a pointer to a set of FDE/CIEs,

svn commit: r310364 - stable/10/sys/amd64/amd64

2016-12-21 Thread Konstantin Belousov
Author: kib Date: Wed Dec 21 11:34:16 2016 New Revision: 310364 URL: https://svnweb.freebsd.org/changeset/base/310364 Log: MFC r310205: Fix typo. Modified: stable/10/sys/amd64/amd64/trap.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/amd64/amd64/trap.c =

svn commit: r310363 - stable/10/sys/vm

2016-12-21 Thread Konstantin Belousov
Author: kib Date: Wed Dec 21 11:32:08 2016 New Revision: 310363 URL: https://svnweb.freebsd.org/changeset/base/310363 Log: MFC r310098: Provide introductory description of the default pager. Modified: stable/10/sys/vm/default_pager.c Directory Properties: stable/10/ (props changed) Mod

svn commit: r310361 - head/sys/cam

2016-12-21 Thread Alexander Motin
Author: mav Date: Wed Dec 21 09:49:16 2016 New Revision: 310361 URL: https://svnweb.freebsd.org/changeset/base/310361 Log: Fix UUID formatting added in r310360. Oops! MFC after:2 weeks Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/cam_xpt.c ===

svn commit: r310360 - in head/sys/cam: . scsi

2016-12-21 Thread Alexander Motin
Author: mav Date: Wed Dec 21 09:36:23 2016 New Revision: 310360 URL: https://svnweb.freebsd.org/changeset/base/310360 Log: Report UUID and MD5 LUN IDs. MFC after:2 weeks Modified: head/sys/cam/cam_xpt.c head/sys/cam/scsi/scsi_all.c head/sys/cam/scsi/scsi_all.h Modified: head/sys

svn commit: r310359 - stable/11/sys/amd64/amd64

2016-12-21 Thread Konstantin Belousov
Author: kib Date: Wed Dec 21 09:22:06 2016 New Revision: 310359 URL: https://svnweb.freebsd.org/changeset/base/310359 Log: MFC r310205: Fix typo. Remove spurious blank line. Modified: stable/11/sys/amd64/amd64/trap.c Directory Properties: stable/11/ (props changed) Modified: stable/11

svn commit: r310358 - stable/11/sys/vm

2016-12-21 Thread Konstantin Belousov
Author: kib Date: Wed Dec 21 09:18:53 2016 New Revision: 310358 URL: https://svnweb.freebsd.org/changeset/base/310358 Log: MFC r310098: Provide introductory description of the default pager. Modified: stable/11/sys/vm/default_pager.c Directory Properties: stable/11/ (props changed) Mod

svn commit: r310357 - stable/11/sys/vm

2016-12-21 Thread Konstantin Belousov
Author: kib Date: Wed Dec 21 09:15:25 2016 New Revision: 310357 URL: https://svnweb.freebsd.org/changeset/base/310357 Log: MFC r310097: Remove locking around accounting initialization of the default object. Modified: stable/11/sys/vm/default_pager.c Directory Properties: stable/11/ (pro

svn commit: r310356 - in head: sys/cam/ctl usr.sbin/ctladm

2016-12-21 Thread Alexander Motin
Author: mav Date: Wed Dec 21 09:05:30 2016 New Revision: 310356 URL: https://svnweb.freebsd.org/changeset/base/310356 Log: Add support for locally assigned RFC 4122 UUID LUN identifiers. MFC after:2 weeks Modified: head/sys/cam/ctl/ctl.c head/usr.sbin/ctladm/ctladm.8 Modified: hea

svn commit: r310355 - head/etc

2016-12-21 Thread Ed Schouten
Author: ed Date: Wed Dec 21 08:32:20 2016 New Revision: 310355 URL: https://svnweb.freebsd.org/changeset/base/310355 Log: Add an example inetd(8) entry for the Prometheus sysctl exporter. I went through the process of allocating a default port number for this exporter, TCP 9124. This mean

svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Ed Schouten
Author: ed Date: Wed Dec 21 08:29:44 2016 New Revision: 310354 URL: https://svnweb.freebsd.org/changeset/base/310354 Log: Add a Prometheus exporter for sysctl values. Now that we have our sysctl tree annotated with aggregation labels, let's go ahead and provide a very simple utility for e