Set the MBR partition to active when doing a full disk MBR.

Submitted by:	kmoore
Obtained from:	PC-BSD
Sponsored by:	iXsystems
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235452 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Style fixes.

Submitted by:	kmoore
Obtained from:	PC-BSD
MFC after:	3 days
Sponsored by:	iXsystems


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235453 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix opensnoop for FreeBSD by removing probes with 64 at the end as
these are unnecessary.

Reference sh in the correct location (/bin/sh)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix execsnoop by changing exece and exec to be FreeBSD's execve.

Reference sh in the correct location (/bin/sh)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move sh to the correct location for FreeBS (/bin/sh)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move sh to the correct path for FreeBSD.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement the DTrace sched provider.  This implementation aims to be
compatible with the sched provider implemented by Solaris and its open-
source derivatives.  Full documentation of the sched provider can be found
on Oracle's DTrace wiki pages.

Note that for compatibility with scripts originally written for Solaris,
serveral probes are defined that will never fire.  These probes are defined
to fire when Solaris-specific features perform certain actions.  As these
features are not present in FreeBSD, the probes can never fire.

Also, I have added a two probes that are not defined in Solaris, lend-pri
and load-change.  These probes have been added to make it possible to
collect schedgraph data with DTrace.

Finally, a few probes are defined in Solaris to take a cpuinfo_t *
argument.  As it was not immediately clear to me how to translate that to
FreeBSD, currently those probes are passed NULL in place of a cpuinfo_t *.

Sponsored by: Sandvine Incorporated
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Handle non-xretry errors the same as xretry errors for now.

Although I _should_ handle the other errors in various ways (specifically
errors like FILT), treating them as having transmitted successfully
is completely wrong.  Here, they'd be counted as successful and the BAW
would be advanced.. but the RX side wouldn't have received them.

The specific errors I've been seeing here are HAL_TXERR_FILT.

This patch does fix the issue - I've tested it using -i 0.001 pings
(enough to start aggregation) and now the behaviour is correct:

* The RX side never sees a "moved window" error, and
* The TX side sends BARs as needed, with the RX side correctly handling
  them.

PR:		kern/167902


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not call bremfree for managed buffers.

Calling bremfree for these buffers results in panic:
"bremfree: buffer %p not on a queue."

Approved by: kib


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in function name SDT_PROBE4 and unbreak 4BSD UP.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Switch to a standard 2 clause BSD license (from bsd-style-copyright).

Approved by:	Myricom Inc. (gallatin)
Approved by:	Intel Corporation (jfv)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zpool_do_import: use /dev instead of /dev/dsk as a default

This affects behavior of zpool import without -d option.

Reported by:	Bruce Cran <bruce@cran.org.uk>
Submitted by:	Fabian Keil <freebsd-listen@fabiankeil.de>
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zpool_find_import_impl: another /dev/dsk -> /dev fix

This seems to fix zdb -e behavior.

PR:		bin/155104
Submitted by:	swell.k@gmail.com
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent
socket path if running

PR:		167932
Submitted by:	madpilot (pr)
Submitted by:	wblock (final patch)
Reviewed by:	If someone else reviewed your modification.
Approved by:	cperciva (implicit)
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Forced commit to denote that the claim in r235388, that libcompiler_rt when
used as a replacement for libgcc on sparc64 would cause a 60% decrease in
performance is wrong. Actually, the performance loss is only marginal and
the huge difference seen was caused by a pilot error comparing libgcc builds
using MALLOC_PRODUCTION with libcompiler_rt builds that did not.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Switch sparc64 to using libcompiler_rt; since r230021 we have a workaround
in place allowing it to be used there and since r235388 (see also r235486)
we also have usable div/mod optimizations like libgcc has.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Remove an unused header.

The read builtin no longer does things with termios.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Migrate ath_debug and sc_debug from an int to a uint64_t / QUAD;
add some more BAR debugging logic.

* Change the definition of ath_debug and ath_softc.sc_debug  from
  int to uint64_t;
* Change the relevant sysctls;
* Add a new BAR TX debugging field;
* Use this in if_ath_tx.

This has been tested by using the sysctl program, which happily allows
for fields > 32 bits to be configured.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Reword hostapd.conf(5) sentence.

Suggested by:	hrs
MFC after:	3 days
X-MFC-With:	r235337 (a bit delayed...)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
By request, add back support from 7.0 and newer, since the changes for
that are so minimal.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@235500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f