]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoEnsure that _tmppt KVA is used exclusively by providing exclusive sx
Konstantin Belousov [Mon, 26 Jan 2015 10:11:55 +0000 (10:11 +0000)]
Ensure that _tmppt KVA is used exclusively by providing exclusive sx
lock around the mapping and uiomove().  Before r277643, it was
partially protected by Giant (but potential sleeping in fault from
uiomove() would still allow other thread to reuse the mapping).

Noted by: ian
Reviewed by: alc, ian
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

9 years agoRespect MK_KERBEROS with etc/rc.d/ipropd_master and etc/rc.d/ipropd_slave
Enji Cooper [Mon, 26 Jan 2015 09:51:21 +0000 (09:51 +0000)]
Respect MK_KERBEROS with etc/rc.d/ipropd_master and etc/rc.d/ipropd_slave

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_WIRELESS with etc/rc.d/hostapd and etc/rc.d/wpa_supplicant
Enji Cooper [Mon, 26 Jan 2015 09:43:08 +0000 (09:43 +0000)]
Honor MK_WIRELESS with etc/rc.d/hostapd and etc/rc.d/wpa_supplicant

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_JAIL with etc/rc.d/jail
Enji Cooper [Mon, 26 Jan 2015 09:37:14 +0000 (09:37 +0000)]
Honor MK_JAIL with etc/rc.d/jail

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_BLUETOOTH with etc/defaults/bluetooth.device.conf
Enji Cooper [Mon, 26 Jan 2015 09:31:48 +0000 (09:31 +0000)]
Honor MK_BLUETOOTH with etc/defaults/bluetooth.device.conf

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_ACCT with etc/pam.d/atrun
Enji Cooper [Mon, 26 Jan 2015 08:50:12 +0000 (08:50 +0000)]
Honor MK_ACCT with etc/pam.d/atrun

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_ACCT with etc/rc.d/accounting
Enji Cooper [Mon, 26 Jan 2015 08:46:26 +0000 (08:46 +0000)]
Honor MK_ACCT with etc/rc.d/accounting

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoamd64: allow base memory segment to start at address different than 0
Roger Pau Monné [Mon, 26 Jan 2015 08:42:47 +0000 (08:42 +0000)]
amd64: allow base memory segment to start at address different than 0

Current code requires that the first physical memory segment starts at 0,
but this is not really needed. We only need to make sure the bootstrap code
and page tables for APs are allocated below 4GB.

This patch removes this requirement and allows booting a Dell R710 from
UEFI, where the first physical memory segment starts at 0x10000.

Sponsored by: Citrix Systems R&D
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D1417

9 years agoRemove explicit inclusion of lpd from FILES
Enji Cooper [Mon, 26 Jan 2015 08:30:24 +0000 (08:30 +0000)]
Remove explicit inclusion of lpd from FILES

X-MFC with: 277731
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_AMD with etc/rc.d/amd
Enji Cooper [Mon, 26 Jan 2015 08:28:51 +0000 (08:28 +0000)]
Honor MK_AMD with etc/rc.d/amd

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_API in etc/rc.d
Enji Cooper [Mon, 26 Jan 2015 08:23:36 +0000 (08:23 +0000)]
Honor MK_API in etc/rc.d

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_LPR with etc/rc.d/lpd
Enji Cooper [Mon, 26 Jan 2015 08:20:51 +0000 (08:20 +0000)]
Honor MK_LPR with etc/rc.d/lpd

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoHonor MK_ACPI in etc/devd and etc/rc.d
Enji Cooper [Mon, 26 Jan 2015 08:04:38 +0000 (08:04 +0000)]
Honor MK_ACPI in etc/devd and etc/rc.d

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoRegen src.conf(5)
Enji Cooper [Mon, 26 Jan 2015 07:24:18 +0000 (07:24 +0000)]
Regen src.conf(5)

9 years agoAdd MK_AUTOFS knob for building and installing autofs(4), et al
Enji Cooper [Mon, 26 Jan 2015 07:15:49 +0000 (07:15 +0000)]
Add MK_AUTOFS knob for building and installing autofs(4), et al

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd MK_BHYVE knob for building and installing bhyve(4), et al
Enji Cooper [Mon, 26 Jan 2015 06:44:48 +0000 (06:44 +0000)]
Add MK_BHYVE knob for building and installing bhyve(4), et al

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoBuild sbin/iscontrol again if MK_ISCSI != no
Enji Cooper [Mon, 26 Jan 2015 06:29:07 +0000 (06:29 +0000)]
Build sbin/iscontrol again if MK_ISCSI != no

MFC after: 13 days
X-MFC with: r277675
Pointyhat to: me

9 years agoAdd MK_HAST knob for building and installing hastd(8), et al
Enji Cooper [Mon, 26 Jan 2015 06:27:07 +0000 (06:27 +0000)]
Add MK_HAST knob for building and installing hastd(8), et al

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoCall WITNESS_WARN() in callout_drain() to check whether any locks are
Adrian Chadd [Mon, 26 Jan 2015 04:04:57 +0000 (04:04 +0000)]
Call WITNESS_WARN() in callout_drain() to check whether any locks are
being held before sleeping.

This has bitten me (in ath(4)) once before and I'd like to see this
not bite anyone else.

Differential Revision: D1638
Reviewed by: jhb, hselasky
MFC after: 1 week

9 years ago- Increase default i2c bus timeout to 5 seconds from 1 second. Sometimes
Oleksandr Tymoshenko [Sun, 25 Jan 2015 23:58:34 +0000 (23:58 +0000)]
- Increase default i2c bus timeout to 5 seconds from 1 second. Sometimes
    1 second is not enugh for TDA19988 HDMI framer (e.g. on Beaglebone Black)
- Add per-device i2c_timout sysctl (dev.iichb.X.i2c_timeout) to control
    I2C bus timeout manually
- Pass softc instead of device_t to all sysctl handlers

9 years agoFix the ioctl interface to properly support fetching the header of regular
Scott Long [Sun, 25 Jan 2015 22:29:23 +0000 (22:29 +0000)]
Fix the ioctl interface to properly support fetching the header of regular
and extended config pages.

Obtained from: Netflix, Inc.
MFC after: 3 days

9 years agoAdd vt(4) support to AM335x LCDC driver
Oleksandr Tymoshenko [Sun, 25 Jan 2015 22:08:36 +0000 (22:08 +0000)]
Add vt(4) support to AM335x LCDC driver

9 years agonatd(8) will work with an unconfigured interface and effectively not do
John Baldwin [Sun, 25 Jan 2015 20:37:32 +0000 (20:37 +0000)]
natd(8) will work with an unconfigured interface and effectively not do
anything until the interface is assigned an address.  This fixes
ipfw_nat to do the same by using an IP of INADDR_ANY instead of
aborting the nat setup if the requested interface is not yet configured.

Differential Revision: https://reviews.freebsd.org/D1539
Reviewed by: melifaro, glebius, gnn
MFC after: 1 week

9 years agoIf the boot-time memory test is enabled, output a dot ('.') for
John Baldwin [Sun, 25 Jan 2015 20:16:45 +0000 (20:16 +0000)]
If the boot-time memory test is enabled, output a dot ('.') for
each GB of RAM tested so people watching the console can see that
the machine is making progress and not hung.

PR: 196650
Submitted by: Ravi Pokala <rpokala@panasas.com>
Suggestions from: Eric van Gyzen <eric@vangyzen.net>
MFC after: 2 weeks

9 years agoChange the default VFS timestamp precision from seconds to microseconds.
John Baldwin [Sun, 25 Jan 2015 19:56:45 +0000 (19:56 +0000)]
Change the default VFS timestamp precision from seconds to microseconds.

Discussed on: arch@
MFC after: 2 weeks

9 years agoPass a valid Dx state variable to PCIB_POWER_FOR_SLEEP() in pcib_resume()
John Baldwin [Sun, 25 Jan 2015 19:53:09 +0000 (19:53 +0000)]
Pass a valid Dx state variable to PCIB_POWER_FOR_SLEEP() in pcib_resume()
instead of NULL.

Submitted by: dchagin
MFC after: 2 weeks

9 years agoUse an sbuf to generate the output of the net.inet.tcp.hostcache.list
John Baldwin [Sun, 25 Jan 2015 19:45:44 +0000 (19:45 +0000)]
Use an sbuf to generate the output of the net.inet.tcp.hostcache.list
sysctl to avoid a possible buffer overflow if the cache grows while the
text is being generated.

PR: 172675
MFC after: 2 weeks

9 years agoAllow the user to specify the location of control.conf.
Dag-Erling Smørgrav [Sun, 25 Jan 2015 15:44:46 +0000 (15:44 +0000)]
Allow the user to specify the location of control.conf.

9 years agoAllow tracing dlfunc() / dlsym() events.
Dag-Erling Smørgrav [Sun, 25 Jan 2015 12:11:50 +0000 (12:11 +0000)]
Allow tracing dlfunc() / dlsym() events.

MFC after: 1 week

9 years agoRemove ISA NICs. Anyone still using these on amd64 can build their
Dag-Erling Smørgrav [Sun, 25 Jan 2015 12:02:38 +0000 (12:02 +0000)]
Remove ISA NICs.  Anyone still using these on amd64 can build their
own kernel.

9 years agoFix the font in the text version. This has bothered me for a long time...
Dag-Erling Smørgrav [Sun, 25 Jan 2015 11:57:18 +0000 (11:57 +0000)]
Fix the font in the text version.  This has bothered me for a long time...

MFC after: 1 week

9 years agoBuild lib/libgpio if MK_GPIO != no
Enji Cooper [Sun, 25 Jan 2015 05:37:06 +0000 (05:37 +0000)]
Build lib/libgpio if MK_GPIO != no

Fill in corresponding entries for MK_GPIO == no in OptionalObsoleteFiles.inc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoFill in entries for MK_BSNMP == no
Enji Cooper [Sun, 25 Jan 2015 05:30:45 +0000 (05:30 +0000)]
Fill in entries for MK_BSNMP == no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoInstall bsnmp rc.d script if MK_BSNMP != no
Enji Cooper [Sun, 25 Jan 2015 05:30:03 +0000 (05:30 +0000)]
Install bsnmp rc.d script if MK_BSNMP != no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFill in some dtrace entries when MK_CDDL == no
Enji Cooper [Sun, 25 Jan 2015 05:23:22 +0000 (05:23 +0000)]
Fill in some dtrace entries when MK_CDDL == no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFill in entries for MK_CUSE == no
Enji Cooper [Sun, 25 Jan 2015 05:15:45 +0000 (05:15 +0000)]
Fill in entries for MK_CUSE == no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoMake install cuse headers if MK_CUSE != no
Enji Cooper [Sun, 25 Jan 2015 05:15:06 +0000 (05:15 +0000)]
Make install cuse headers if MK_CUSE != no

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoBuild cuse(4) if MK_CUSE != no
Enji Cooper [Sun, 25 Jan 2015 05:13:15 +0000 (05:13 +0000)]
Build cuse(4) if MK_CUSE != no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agospl man page hasn't been relevant for a while, retire it.
Warner Losh [Sun, 25 Jan 2015 04:58:41 +0000 (04:58 +0000)]
spl man page hasn't been relevant for a while, retire it.

9 years agoRegen src.conf(5)
Enji Cooper [Sun, 25 Jan 2015 04:56:43 +0000 (04:56 +0000)]
Regen src.conf(5)

9 years agoAdd MK_CCD knob for building and installing ccd(4), ccdconfig, etc
Enji Cooper [Sun, 25 Jan 2015 04:52:48 +0000 (04:52 +0000)]
Add MK_CCD knob for building and installing ccd(4), ccdconfig, etc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd MK_BSDINSTALL knob for building and installing bsdinstall
Enji Cooper [Sun, 25 Jan 2015 04:43:13 +0000 (04:43 +0000)]
Add MK_BSDINSTALL knob for building and installing bsdinstall

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd MK_TALK knob for building the talk and talkd
Enji Cooper [Sun, 25 Jan 2015 04:37:44 +0000 (04:37 +0000)]
Add MK_TALK knob for building the talk and talkd

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel
Enji Cooper [Sun, 25 Jan 2015 04:20:11 +0000 (04:20 +0000)]
Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel
modules, etc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoFix building rcorder with -DDEBUG by using libutil.h instead of util.h from
Enji Cooper [Sun, 25 Jan 2015 03:08:21 +0000 (03:08 +0000)]
Fix building rcorder with -DDEBUG by using libutil.h instead of util.h from
usr.bin/make

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Revert r277670 (#include order is required for fparseln)
Enji Cooper [Sun, 25 Jan 2015 03:02:29 +0000 (03:02 +0000)]
- Revert r277670 (#include order is required for fparseln)
- Remove unnecessary CFLAGS+= -I now that make is no longer required to make
  rcorder build

9 years agoSort #include order
Enji Cooper [Sun, 25 Jan 2015 02:30:44 +0000 (02:30 +0000)]
Sort #include order

9 years agogr_equal(): Fix a crash that could occur if the first group's member list
Mark Johnston [Sun, 25 Jan 2015 00:47:06 +0000 (00:47 +0000)]
gr_equal(): Fix a crash that could occur if the first group's member list
was longer than the second's. There is no need to compute and compare the
member list lengths in a separate pass, since we now just return false when
comparing member names if the list lengths are not equal.

MFC after: 2 weeks

9 years agoDocument the fact that modules declared with SYSCALL_MODULE(9) have their
Mark Johnston [Sun, 25 Jan 2015 00:36:42 +0000 (00:36 +0000)]
Document the fact that modules declared with SYSCALL_MODULE(9) have their
names prefixed with "sys/".

MFC after: 3 days

9 years agoEnsure that we don't try to demangle a symbol name if we failed to look
Mark Johnston [Sun, 25 Jan 2015 00:34:43 +0000 (00:34 +0000)]
Ensure that we don't try to demangle a symbol name if we failed to look
up the symbol. Add a test to exercise this code path.

Reviewed by: adrian

9 years agoOnly build share/dtrace if MK_CDDL != no
Enji Cooper [Sun, 25 Jan 2015 00:32:17 +0000 (00:32 +0000)]
Only build share/dtrace if MK_CDDL != no

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoOnly build vi support into rescue if MK_VI != no
Enji Cooper [Sun, 25 Jan 2015 00:30:22 +0000 (00:30 +0000)]
Only build vi support into rescue if MK_VI != no

Sponsored by: EMC / Isilon Storage Division

9 years agoAdd MK_EE knob to control installing edit, ee, etc
Enji Cooper [Sun, 25 Jan 2015 00:03:44 +0000 (00:03 +0000)]
Add MK_EE knob to control installing edit, ee, etc

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoMFhead @ r277659
Enji Cooper [Sat, 24 Jan 2015 21:21:39 +0000 (21:21 +0000)]
MFhead @ r277659

9 years agoMFV r277658:
Pedro F. Giffuni [Sat, 24 Jan 2015 21:05:18 +0000 (21:05 +0000)]
MFV r277658:

GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis@gnu.org>

      * corelow.c (get_core_register_section): Replace usage of sprintf
      and strcpy with xstrprintf and xstrdup.

Sourceware commit: 3ecda4574edb38ad12fb491ccaf6d9b0caa3a07a

CID: 1006819
MFC after: 4 days

9 years agoGDB: Replace use of sprintf.
Pedro F. Giffuni [Sat, 24 Jan 2015 21:00:51 +0000 (21:00 +0000)]
GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis@gnu.org>

      * corelow.c (get_core_register_section): Replace usage of sprintf
      and strcpy with xstrprintf and xstrdup.

Sourceware commit: 3ecda4574edb38ad12fb491ccaf6d9b0caa3a07a

9 years agoMFV: r277654
Pedro F. Giffuni [Sat, 24 Jan 2015 20:25:21 +0000 (20:25 +0000)]
MFV: r277654

gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb@redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

Sourceware commit 99c87dab95747d380392a3698740507a21ad3236

CID: 1008254
MFC after: 4 days

9 years agoReimplement fdt_clock_register_provider() correctly. It turns out you
Ian Lepore [Sat, 24 Jan 2015 20:18:37 +0000 (20:18 +0000)]
Reimplement fdt_clock_register_provider() correctly.  It turns out you
can't use OF_xref_from_device() to implement the function that registers
the xref association with the device.

Pointy hat:      ian
Submitted by:      loos

9 years agogdb: Add missing break statements
Pedro F. Giffuni [Sat, 24 Jan 2015 20:16:34 +0000 (20:16 +0000)]
gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb@redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

Sourceware commit 99c87dab95747d380392a3698740507a21ad3236

9 years agoChange the permissions from 0660 to 0600.
Adrian Chadd [Sat, 24 Jan 2015 19:49:27 +0000 (19:49 +0000)]
Change the permissions from 0660 to 0600.

Otherwise people in wheel can do things with netmap, including
but not limited to promisc transmit/receive.

Approved by: luigi
MFC after: 1 week

9 years agoAllow negative numbers in -u and -g options
Baptiste Daroussin [Sat, 24 Jan 2015 19:13:03 +0000 (19:13 +0000)]
Allow negative numbers in -u and -g options

PR: 196514
MFC after: 1 week

9 years agoAdd vm.panic_on_oom sysctl, which enables those who would rather panic than
Will Andrews [Sat, 24 Jan 2015 17:32:45 +0000 (17:32 +0000)]
Add vm.panic_on_oom sysctl, which enables those who would rather panic than
kill a process, when the system runs out of memory.  Defaults to off.

Usually, this is most useful when the OOM condition is due to mismanagement
of memory, on a system where the applications in question don't respond well
to being killed.

In theory, if the system is properly managed, it shouldn't be possible to
hit this condition. If it does, the panic can be more desirable for some
users (since it can be a good means of finding the root cause) rather than
killing the largest process and continuing on its merry way.

As kib@ mentions in the differential, there is also protect(1), which uses
procctl(PROC_SPROTECT) to ensure that some processes are immune.  However,
a panic approach is still useful in some environments.  This is primarily
intended as a development/debugging tool.

Differential Revision: D1627
Reviewed by: kib
MFC after: 1 week

9 years agoAdd tests/etc/rc.d to mtree.
Will Andrews [Sat, 24 Jan 2015 17:11:11 +0000 (17:11 +0000)]
Add tests/etc/rc.d to mtree.

Submitted by: stefanf
MFC after: 1 week
MFC with: 277627

9 years agovmspace_release() may sleep if the last reference is being released,
Ryan Stone [Sat, 24 Jan 2015 16:59:38 +0000 (16:59 +0000)]
vmspace_release() may sleep if the last reference is being released,
so add a WITNESS_WARN() to catch cases where it is called with a
non-sleepable lock held.

MFC after: 1 month
Sponsored by: Sandvine Inc.

9 years agoEnable utimensat tests from NetBSD.
Jilles Tjoelker [Sat, 24 Jan 2015 15:49:40 +0000 (15:49 +0000)]
Enable utimensat tests from NetBSD.

As with other tests from c063, a required #include <sys/stat.h> was missing.

9 years agoFix wrong LUN reference in XCOPY block-to-block operation.
Alexander Motin [Sat, 24 Jan 2015 15:40:52 +0000 (15:40 +0000)]
Fix wrong LUN reference in XCOPY block-to-block operation.

This could cause data corruption due to accessing wrong LUN in case of
retries on write errors.  Failed writes were retried to read LUN.

MFC after: 3 days

9 years agoAvoid calling vmspace_free() while owning the process lock. Freeing
Konstantin Belousov [Sat, 24 Jan 2015 15:33:42 +0000 (15:33 +0000)]
Avoid calling vmspace_free() while owning the process lock.  Freeing
of an vm space may require obtaining sleepable locks.  Hold the
process to keep the pointer valid, and change trylock to lock, since
there is no longer two process locks owned simultaneously in
vm_pageout_oom().

Note that after the process lock is dropped, process might exec, and
no longer qualify as the owner of biggest vm space.

In collaboration with: rstone
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agocp,mv,touch: Set timestamps with nanosecond precision.
Jilles Tjoelker [Sat, 24 Jan 2015 13:50:13 +0000 (13:50 +0000)]
cp,mv,touch: Set timestamps with nanosecond precision.

This uses utimensat().

9 years agoAdd support for audio transmitting, include drivers for:
Ruslan Bukin [Sat, 24 Jan 2015 13:07:07 +0000 (13:07 +0000)]
Add support for audio transmitting, include drivers for:
o Digital Audio Multiplexer (AUDMUX)
o Smart Direct Memory Access Controller (SDMA)
o Synchronous Serial Interface (SSI)

Disable by default as it depends on SDMA firmware.

Sponsored by: Machdep, Inc.

9 years agoRemove Giant from /dev/mem and /dev/kmem. It is definitely not needed
Konstantin Belousov [Sat, 24 Jan 2015 12:51:15 +0000 (12:51 +0000)]
Remove Giant from /dev/mem and /dev/kmem.  It is definitely not needed
for i386, and from the code inspection, nothing in the
arm/mips/sparc64 implementations depends on it.

Discussed with: imp, nwhitehorn
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

9 years agoProvide individual prototype and generate macros for the red-black tree.
Konstantin Belousov [Sat, 24 Jan 2015 12:43:36 +0000 (12:43 +0000)]
Provide individual prototype and generate macros for the red-black tree.
This helps to reduce code size in statically linked applications.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
MFC after: 2 weeks

9 years agodo not strip /stand
Luigi Rizzo [Sat, 24 Jan 2015 08:48:05 +0000 (08:48 +0000)]
do not strip /stand

This is a temporary workaround until the elftoolchain's version
of strip is fixed:

The previous (GNU) strip, when acting on a file with multiple links,
would modify the one and only file in place (which means creating
a new stripped copy, and then writing it back to the original).

The new version from elftoolchain creates the new file and then
unlinks the old one and renames the new.
With multiple hard links, the original remains alive.  In the /stand
directory, this ends up creating 80+ copies of the same file.

9 years agoDon't include libcapsicum headers when requested.
Xin LI [Sat, 24 Jan 2015 06:06:46 +0000 (06:06 +0000)]
Don't include libcapsicum headers when requested.

Reported by: luigi
MFC after: 14 days
X-MFC-with: r276788

9 years agoMake sure the compiler flag to get cxgbe(4) to compile with gcc is used
Navdeep Parhar [Sat, 24 Jan 2015 04:41:14 +0000 (04:41 +0000)]
Make sure the compiler flag to get cxgbe(4) to compile with gcc is used
only when gcc is being used.  This is what r277225 should have been.

Suggested by: dim@

9 years agoFix typo in r277561.
Nathan Whitehorn [Sat, 24 Jan 2015 01:58:15 +0000 (01:58 +0000)]
Fix typo in r277561.

9 years agoAfter interrupt read value from register to make sure it reached hardware. This
Oleksandr Tymoshenko [Sat, 24 Jan 2015 01:53:28 +0000 (01:53 +0000)]
After interrupt read value from register to make sure it reached hardware. This
should fix "Spurious inteerupt" message

Suggested by ian@

9 years agoWhen creating or updating a node, use vfs_timestamp() for "now" instead
Will Andrews [Sat, 24 Jan 2015 00:43:02 +0000 (00:43 +0000)]
When creating or updating a node, use vfs_timestamp() for "now" instead
of gethrestime(), to allow the administrator to decide the appropriate
timestamp precision instead of always using nanosecond precision.

9 years agoAdd routing_test:static_ipv6_loopback_route_for_each_fib.
Will Andrews [Sat, 24 Jan 2015 00:37:41 +0000 (00:37 +0000)]
Add routing_test:static_ipv6_loopback_route_for_each_fib.
It tests that all FIBs get a static IPv6 loopback route.

Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1048456 on 2014/03/13
1114523 on 2015/01/23

9 years agoAdd macro to identify AVIC capability (advanced virtual interrupt controller)
Neel Natu [Sat, 24 Jan 2015 00:35:49 +0000 (00:35 +0000)]
Add macro to identify AVIC capability (advanced virtual interrupt controller)
in AMD processors.

Submitted by: Dmitry Luhtionov (dmitryluhtionov@gmail.com)

9 years agoBump config(8) minor version for r277567.
Will Andrews [Sat, 24 Jan 2015 00:04:34 +0000 (00:04 +0000)]
Bump config(8) minor version for r277567.

Config files built using this version that take advantage of the bugfix
won't be buildable using older config(8).

Submitted by: imp
MFC after: 1 week
MFC with: 277567

9 years agoFix panic in firewire and creation of invalid config ROM.
Will Andrews [Fri, 23 Jan 2015 23:53:56 +0000 (23:53 +0000)]
Fix panic in firewire and creation of invalid config ROM.
(This change was supposed to be included in r277508.)

sys/boot/i386/libfirewire/firewire.c:
Fix configuration ROM generation count wrapping logic
so that the generation count is never outside of
allowed limits (0x2 -> 0xF).

Submitted by: gibbs
MFC after: 1 week
MFC with: 277508
Sponsored by: Spectra Logic
MFSpectraBSD: 1110685 on 2015/01/05

9 years agoRestore addr2line to cross tools
Ed Maste [Fri, 23 Jan 2015 21:34:08 +0000 (21:34 +0000)]
Restore addr2line to cross tools

Addr2line is not required for the build, and a per-arch binary is no
longer required with the switch to the ELF Tool Chain. However, building
these tools during the cross tools stage can be useful for developers
who cross build HEAD from stable/10, and adds very little to the build
time.

Reviewed by: ian, imp
Differential Revision: https://reviews.freebsd.org/D1583

9 years agoRun make sysent.
Jilles Tjoelker [Fri, 23 Jan 2015 21:08:24 +0000 (21:08 +0000)]
Run make sysent.

9 years agoAdd futimens and utimensat system calls.
Jilles Tjoelker [Fri, 23 Jan 2015 21:07:08 +0000 (21:07 +0000)]
Add futimens and utimensat system calls.

The core kernel part is patch file utimes.2008.4.diff from
pluknet@FreeBSD.org. I updated the code for API changes, added the manual
page and added compatibility code for old kernels. There is also audit and
Capsicum support.

A new UTIME_* constant might allow setting birthtimes in future.

Differential Revision: https://reviews.freebsd.org/D1426
Submitted by: pluknet (partially)
Reviewed by: delphij, pluknet, rwatson
Relnotes: yes

9 years agoWhen iterating through VMFORMATS, the VMBASE file is
Glen Barber [Fri, 23 Jan 2015 21:04:59 +0000 (21:04 +0000)]
When iterating through VMFORMATS, the VMBASE file is
not removed or truncated to a zero-size file, which
if used to create more than one disk image format, can
result in accidental pollution of the target formatted
disk image.

Instead of using a single VMBASE image (vm.img, by
default), use a single base file for each format, named
as VMFORMAT.img, which produces VMBASE.VMFORMAT as the
final formatted image.

Reported by: cperciva
MFC after: 1 month
X-MFC-with: r277458, r277536
Sponsored by: The FreeBSD Foundation

9 years agoMFV r277607:
Pedro F. Giffuni [Fri, 23 Jan 2015 20:40:31 +0000 (20:40 +0000)]
MFV r277607:

GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green@redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Reported by: Dirk Engling
CID: 604160, 604161, 604162, 604163
MFC after: 5 days

9 years agoGDB: Fix memset thinkos.
Pedro F. Giffuni [Fri, 23 Jan 2015 20:32:19 +0000 (20:32 +0000)]
GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green@redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Sourceware commit: 170cd118a9e2169798247e70160f5a638b516661

9 years agoProvide a recipe of "true" for building the "release" target once its
Colin Percival [Fri, 23 Jan 2015 20:24:13 +0000 (20:24 +0000)]
Provide a recipe of "true" for building the "release" target once its
prerequisites are satisfied, in order to avoid having an implicit rule
triggered by the presence of release.sh.

Approved by: gjb

9 years agoUpdate the latest revision.
Glen Barber [Fri, 23 Jan 2015 19:33:46 +0000 (19:33 +0000)]
Update the latest revision.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r277458, support for cloud hosting providers added to
Glen Barber [Fri, 23 Jan 2015 19:33:08 +0000 (19:33 +0000)]
Document r277458, support for cloud hosting providers added to
the Release Engineering build tools.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r277166, ptrace(2) Altivec register support.
Glen Barber [Fri, 23 Jan 2015 19:33:05 +0000 (19:33 +0000)]
Document r277166, ptrace(2) Altivec register support.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r276881, libedit UTF-8 support.
Glen Barber [Fri, 23 Jan 2015 19:33:03 +0000 (19:33 +0000)]
Document r276881, libedit UTF-8 support.

Sponsored by: The FreeBSD Foundation

9 years agoSimplify retry loops. No functional change.
Jung-uk Kim [Fri, 23 Jan 2015 18:55:04 +0000 (18:55 +0000)]
Simplify retry loops.  No functional change.

9 years agoRevert r216942. This commit was premature and caused too many complaints.
Jung-uk Kim [Fri, 23 Jan 2015 18:12:44 +0000 (18:12 +0000)]
Revert r216942.  This commit was premature and caused too many complaints.

PR: 162859
MFC after: 3 days

9 years agoUse clock_gettime to measure the time that we spent asleep during
Will Andrews [Fri, 23 Jan 2015 16:21:31 +0000 (16:21 +0000)]
Use clock_gettime to measure the time that we spent asleep during
"vmstat -i" instead of assuming it's what we asked for.

Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066751 on 2014/06/04

9 years agoUse CLOCK_UPTIME to get the uptime instead of CLOCK_MONOTONIC.
Will Andrews [Fri, 23 Jan 2015 16:18:39 +0000 (16:18 +0000)]
Use CLOCK_UPTIME to get the uptime instead of CLOCK_MONOTONIC.

Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066740 on 2014/06/04

9 years agoMake "vmstat -i" respect the -c <count> and -i <interval> options together.
Will Andrews [Fri, 23 Jan 2015 16:15:55 +0000 (16:15 +0000)]
Make "vmstat -i" respect the -c <count> and -i <interval> options together.

Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066735 on 2014/06/04

9 years agoAdd pinctrl driver support for the encoded input register config words
Ian Lepore [Fri, 23 Jan 2015 16:05:47 +0000 (16:05 +0000)]
Add pinctrl driver support for the encoded input register config words
that the linux guys made up on the fly (but didn't document) last August.
This type of encoded config now appears in the imx6 fdt data.

9 years agoAllow lists for "nooption" and "nooptions" keywords.
Will Andrews [Fri, 23 Jan 2015 16:03:02 +0000 (16:03 +0000)]
Allow lists for "nooption" and "nooptions" keywords.

usr.sbin/config/config.y
According to config(5), the "device", "devices",
"nodevice", "nodevices", "option", "options",
"nooption", and "nooptions" keywords can all take a
comma-separated list of values.  However, the yacc code
did not allow lists for "nooption" and "nooptions", only
single values.  This commit fixes the yacc code to allow
comma separated values for all the above keywords.

Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1095296 on 2014/10/07

9 years agoPrint transfer times for read, write, & overall independently.
Will Andrews [Fri, 23 Jan 2015 15:55:03 +0000 (15:55 +0000)]
Print transfer times for read, write, & overall independently.

Round up calculated values for iops and average time per io to avoid a
shifting display if there are 1000+ (or even 10000+) iops, or if an
average time per io column is 1000+ ms.

Reviewed by: ken
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1089947 on 2014/09/26
1093625 on 2014/09/29
1093650 on 2014/09/29
1095662 on 2014/10/09