svn commit: r313009 - head/lib/libclang_rt/profile

2017-01-30 Thread Ngie Cooper
Author: ngie Date: Tue Jan 31 07:13:01 2017 New Revision: 313009 URL: https://svnweb.freebsd.org/changeset/base/313009 Log: Expose symbols in lib/libclang_rt/profile to fix --coverage The symbols currently hidden in libprofile_rt are needed for linking with `clang --coverage` to add cover

Re: svn commit: r313006 - in head: sys/conf sys/libkern sys/libkern/x86 sys/sys tests/sys/kern

2017-01-30 Thread Conrad Meyer
Hi Bruce, On Mon, Jan 30, 2017 at 9:26 PM, Bruce Evans wrote: > On Tue, 31 Jan 2017, Conrad E. Meyer wrote: > >> Log: >> calculate_crc32c: Add SSE4.2 implementation on x86 > > > This breaks building with gcc-4.2.1, gcc-4.2.1 is an ancient compiler. Good riddance. >> Added: head/sys/libkern/x8

svn commit: r313008 - head/tests/sys/geom/class/gate

2017-01-30 Thread Ngie Cooper
Author: ngie Date: Tue Jan 31 06:12:51 2017 New Revision: 313008 URL: https://svnweb.freebsd.org/changeset/base/313008 Log: Wait for /dev/ggate* to appear after calling `ggatel create` in :ggatel_{file,md} The test assumed that `ggatel create` created a device on completion, but that's

Re: svn commit: r313006 - in head: sys/conf sys/libkern sys/libkern/x86 sys/sys tests/sys/kern

2017-01-30 Thread Bruce Evans
On Tue, 31 Jan 2017, Conrad E. Meyer wrote: Log: calculate_crc32c: Add SSE4.2 implementation on x86 This breaks building with gcc-4.2.1, and depends on using non-kernel clang headers for clang. Modified: head/sys/conf/files.amd64 =

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

2017-01-30 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 31 03:40:13 2017 New Revision: 313007 URL: https://svnweb.freebsd.org/changeset/base/313007 Log: Don't retry a lost reservation in atomic_fcmpset() The desired behavior of atomic_fcmpset_() is to always exit on error. Instead of retrying on lost reservation

Re: svn commit: r313006 - in head: sys/conf sys/libkern sys/libkern/x86 sys/sys tests/sys/kern

2017-01-30 Thread Conrad Meyer
On Mon, Jan 30, 2017 at 7:26 PM, Conrad E. Meyer wrote: > (The CRC instruction takes 1 cycle but has 2-3 cycles of latency.) My mistake, it's not 2 anywhere. It's just 3 cycles on all workstation/server CPUs since Nehalem. Different on Atom chips and AMD. Best, Conrad _

svn commit: r313006 - in head: sys/conf sys/libkern sys/libkern/x86 sys/sys tests/sys/kern

2017-01-30 Thread Conrad E. Meyer
Author: cem Date: Tue Jan 31 03:26:32 2017 New Revision: 313006 URL: https://svnweb.freebsd.org/changeset/base/313006 Log: calculate_crc32c: Add SSE4.2 implementation on x86 Derived from an implementation by Mark Adler. The fast loop performs three simultaneous CRCs over subsets of the

svn commit: r313005 - in head/sys: conf modules/zfs

2017-01-30 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 31 01:55:29 2017 New Revision: 313005 URL: https://svnweb.freebsd.org/changeset/base/313005 Log: Update CFLAGS for clang compatibility * Clang/llvm does not (yet) support -m(no-)spe, so make it gcc-only * Clang now supports -msoft-float, and does not appear

svn commit: r313004 - head/sys/modules

2017-01-30 Thread Adrian Chadd
Author: adrian Date: Tue Jan 31 01:48:55 2017 New Revision: 313004 URL: https://svnweb.freebsd.org/changeset/base/313004 Log: Fix compilation! Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile =

svn commit: r313003 - head/libexec/rtld-elf/mips

2017-01-30 Thread John Baldwin
Author: jhb Date: Mon Jan 30 23:13:41 2017 New Revision: 313003 URL: https://svnweb.freebsd.org/changeset/base/313003 Log: Remove a duplicate store when performing REL32 relocations in rtld. The duplicate call to store_ptr() was added in r204687, but it should have no effect as it only st

Re: svn commit: r312988 - in head/sys: compat/cloudabi compat/linux kern sys

2017-01-30 Thread Gleb Smirnoff
On Mon, Jan 30, 2017 at 12:57:23PM +, Edward Tomasz Napierala wrote: E> Author: trasz E> Date: Mon Jan 30 12:57:22 2017 E> New Revision: 312988 E> URL: https://svnweb.freebsd.org/changeset/base/312988 E> E> Log: E> Add kern_listen(), kern_shutdown(), and kern_socket(), and use them E> inst

svn commit: r313002 - in head/lib/libedit: . TEST

2017-01-30 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 30 23:00:51 2017 New Revision: 313002 URL: https://svnweb.freebsd.org/changeset/base/313002 Log: MFV 312999: Update libedit 2016-03-21 Minor cleanups plus some license syncing. Obtained from:NetBSD X-MFC with: r312997 Modified: head/lib/libedi

svn commit: r313001 - head/sys/netpfil/pf

2017-01-30 Thread Gleb Smirnoff
Author: glebius Date: Mon Jan 30 22:47:48 2017 New Revision: 313001 URL: https://svnweb.freebsd.org/changeset/base/313001 Log: Fix indentantion in pf_purge_thread(). No functional change. Modified: head/sys/netpfil/pf/pf.c Modified: head/sys/netpfil/pf/pf.c =

svn commit: r312998 - in head/sys/modules: . hwpmc_mips24k hwpmc_mips74k

2017-01-30 Thread Adrian Chadd
Author: adrian Date: Mon Jan 30 22:29:21 2017 New Revision: 312998 URL: https://svnweb.freebsd.org/changeset/base/312998 Log: [mips] add some (temporary, I hope!) mips24k/mips74k hwpmc modules. Ideally we'd have a top level hwpmc module with the shared bits, then cpu specific glue as need

svn commit: r312997 - in head/lib/libedit: . TEST edit/readline

2017-01-30 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 30 22:11:53 2017 New Revision: 312997 URL: https://svnweb.freebsd.org/changeset/base/312997 Log: MFV r312996: Re-import libedit 2016-02-27 This reverts r296435: the issues related to lldb and this update appear to have been identified (in lldb). Obtained f

svn commit: r312995 - head/sys/dev/mpr

2017-01-30 Thread Alan Somers
Author: asomers Date: Mon Jan 30 19:49:08 2017 New Revision: 312995 URL: https://svnweb.freebsd.org/changeset/base/312995 Log: Initialize a stack variable in mprsas_get_sas_address_for_sata_disk Thought it's difficult to reproduce, I think this variable was responsible for a use-after-fre

svn commit: r312994 - head/sys/vm

2017-01-30 Thread Mark Johnston
Author: markj Date: Mon Jan 30 18:51:43 2017 New Revision: 312994 URL: https://svnweb.freebsd.org/changeset/base/312994 Log: Avoid page lookups in the top-level object in vm_object_madvise(). We can iterate over consecutive resident pages in the top-level object using the object's page li

svn commit: r312993 - head/contrib/llvm/lib/Transforms/Scalar

2017-01-30 Thread Dimitry Andric
Author: dim Date: Mon Jan 30 18:35:24 2017 New Revision: 312993 URL: https://svnweb.freebsd.org/changeset/base/312993 Log: Pull in r279454 from upstream llvm trunk (by James Molloy): [SROA] Remove incorrect assertion Confirmed with aprantl, this assertion is incorrect - code can ge

Re: svn commit: r312755 - head/sys/net

2017-01-30 Thread John Baldwin
On Monday, January 30, 2017 09:18:56 AM Sean Bruno wrote: > > On 01/27/17 12:28, John Baldwin wrote: > > On Wednesday, January 25, 2017 02:37:05 PM Sean Bruno wrote: > >> Author: sbruno > >> Date: Wed Jan 25 14:37:05 2017 > >> New Revision: 312755 > >> URL: https://svnweb.freebsd.org/changeset/bas

svn commit: r312992 - in head: contrib/openresolv sbin/resolvconf

2017-01-30 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 30 16:32:53 2017 New Revision: 312992 URL: https://svnweb.freebsd.org/changeset/base/312992 Log: MFV r312970: openresolv: update to version 3.9.0. It is now possible to drop the _WITH_ARG vars thanks to a change to the pdns_recursor upstreamed by Guy Yur.

Re: svn commit: r312755 - head/sys/net

2017-01-30 Thread Sean Bruno
On 01/27/17 12:28, John Baldwin wrote: > On Wednesday, January 25, 2017 02:37:05 PM Sean Bruno wrote: >> Author: sbruno >> Date: Wed Jan 25 14:37:05 2017 >> New Revision: 312755 >> URL: https://svnweb.freebsd.org/changeset/base/312755 >> >> Log: >> Add error checking to the pci_find_cap(, PCIY_

Re: svn commit: r312973 - head/sys/powerpc/include

2017-01-30 Thread Justin Hibbits
On Mon, Jan 30, 2017 at 9:32 AM, Justin Hibbits wrote: > On Mon, Jan 30, 2017 at 4:53 AM, Konstantin Belousov > wrote: >>> +#ifdef __GNUCLIKE_ASM >>> + __asm __volatile ( >>> + "1:\tlwarx %0, 0, %3\n\t" /* load old value */ >>> + "cmplw %4, %0\n\t" /

Re: svn commit: r312973 - head/sys/powerpc/include

2017-01-30 Thread Justin Hibbits
On Mon, Jan 30, 2017 at 4:53 AM, Konstantin Belousov wrote: >> +#ifdef __GNUCLIKE_ASM >> + __asm __volatile ( >> + "1:\tlwarx %0, 0, %3\n\t" /* load old value */ >> + "cmplw %4, %0\n\t" /* compare */ >> + "bne 2f\n\t"/*

svn commit: r312991 - head/sys/kern

2017-01-30 Thread Andriy Gapon
Author: avg Date: Mon Jan 30 15:20:13 2017 New Revision: 312991 URL: https://svnweb.freebsd.org/changeset/base/312991 Log: put very expensive sanity checks of advisory locks under DIAGNOSTIC The checks have quadratic complexity over a number of advisory locks active for a file and that co

svn commit: r312988 - in head/sys: compat/cloudabi compat/linux kern sys

2017-01-30 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Jan 30 12:57:22 2017 New Revision: 312988 URL: https://svnweb.freebsd.org/changeset/base/312988 Log: Add kern_listen(), kern_shutdown(), and kern_socket(), and use them instead of their sys_*() counterparts in various compats. The svr4 is left untouched, because there

svn commit: r312987 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux kern sys

2017-01-30 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Jan 30 12:24:47 2017 New Revision: 312987 URL: https://svnweb.freebsd.org/changeset/base/312987 Log: Add kern_lseek() and use it instead of sys_lseek() in various compats. I didn't touch svr4/, there's no point. Reviewed by: ed@, kib@ MFC after:2 weeks Spo

svn commit: r312986 - in head/sys: amd64/linux32 compat/freebsd32 compat/linux i386/linux kern

2017-01-30 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Jan 30 11:50:54 2017 New Revision: 312986 URL: https://svnweb.freebsd.org/changeset/base/312986 Log: Replace sys_ftruncate() with kern_ftruncate() in various compats. Reviewed by: kib@ MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

Re: svn commit: r312973 - head/sys/powerpc/include

2017-01-30 Thread Konstantin Belousov
> +#ifdef __GNUCLIKE_ASM > + __asm __volatile ( > + "1:\tlwarx %0, 0, %3\n\t" /* load old value */ > + "cmplw %4, %0\n\t" /* compare */ > + "bne 2f\n\t"/* exit if not equal */ > + "stwcx. %5, 0, %3\n\t"

svn commit: r312984 - in head: lib/libsysdecode libexec/rtld-elf

2017-01-30 Thread Peter Jeremy
Author: peterj Date: Mon Jan 30 08:38:32 2017 New Revision: 312984 URL: https://svnweb.freebsd.org/changeset/base/312984 Log: Extend LD_UTRACE by also generating utrace(2) log events for runtime linker errors. Reviewed by: kib, jhb Approved by: jhb(mentor) MFC after:1 week Dif

svn commit: r312983 - head/sys/dev/mlx5

2017-01-30 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 30 08:35:15 2017 New Revision: 312983 URL: https://svnweb.freebsd.org/changeset/base/312983 Log: Make "desc" pointer non-constant inside the mlx5_core_diagnostics_entry structure. This fixes compilation with amd64-xtoolchain-gcc. PR: 216588