freebsd with flexible iflib nic queues
Go to file
Andriy Gapon 076dd8eb2e several lockstat improvements
0. For spin events report time spent spinning, not a loop count.
While loop count is much easier and cheaper to obtain it is hard
to reason about the reported numbers, espcially for adaptive locks
where both spinning and sleeping can happen.
So, it's better to compare apples and apples.

1. Teach lockstat about FreeBSD rw locks.
This is done in part by changing the corresponding probes
and in part by changing what probes lockstat should expect.

2. Teach lockstat that rw locks are adaptive and can spin on FreeBSD.

3. Report lock acquisition events for successful rw try-lock operations.

4. Teach lockstat about FreeBSD sx locks.
Reporting of events for those locks completely mirrors
rw locks.

5. Report spin and block events before acquisition event.
This is behavior documented for the upstream, so it makes sense to stick
to it.  Note that because of FreeBSD adaptive lock implementations
both the spin and block events may be reported for the same acquisition
while the upstream reports only one of them.

Differential Revision:	https://reviews.freebsd.org/D2727
Reviewed by:	markj
MFC after:	17 days
Relnotes:	yes
Sponsored by:	ClusterHQ
2015-06-12 10:01:24 +00:00
bin r284198 seems to have left a null format string printf that gcc does *not* 2015-06-11 02:29:39 +00:00
cddl several lockstat improvements 2015-06-12 10:01:24 +00:00
contrib MFV r284276: Fix long options. 2015-06-11 17:32:36 +00:00
crypto Merge OpenSSL 1.0.1n. 2015-06-11 19:00:55 +00:00
etc Re-implement endian-aware services_mkdb(8) in the 'distribute' 2015-06-04 15:02:05 +00:00
games Correct grdc(1) 12-hour display between 12:00 and 13:00 2015-06-02 20:53:17 +00:00
gnu Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
include Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
kerberos5 Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
lib Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
libexec Remove NO_OBJ 2015-06-11 04:22:17 +00:00
release Set the correct UBLDR_LOADADDR for the Wandboard and 2015-06-06 21:11:17 +00:00
rescue Significant upgrades to sa(4) and mt(1). 2015-02-23 21:59:30 +00:00
sbin Improve grammar. 2015-06-11 23:05:49 +00:00
secure Merge OpenSSL 1.0.1n. 2015-06-11 19:00:55 +00:00
share Language cleanup. 2015-06-12 00:02:31 +00:00
sys several lockstat improvements 2015-06-12 10:01:24 +00:00
tests Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
tools Add accessor functions for iterating over segments. A segment 2015-06-11 03:02:40 +00:00
usr.bin Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
usr.sbin Remove NO_OBJ 2015-06-11 04:22:17 +00:00
.arcconfig Phabricator: enable "history.immutable": 2015-04-30 00:27:53 +00:00
.arclint phabricator related changes: 2015-04-20 20:33:22 +00:00
COPYRIGHT Bump copyright year. 2014-12-31 10:00:43 +00:00
LOCKS
MAINTAINERS Remove cokane@ from MAINTAINERS for 3dfx(4)/tdfx(4) because their email 2014-11-25 05:25:12 +00:00
Makefile Import OpenSSL 1.0.1n. 2015-06-11 17:56:16 +00:00
Makefile.inc1 Revert r283938 it is not needed anymore and broken 2015-06-03 13:43:04 +00:00
ObsoleteFiles.inc Create a separate kobj interface for leaf-driver PCI IOV methods. 2015-05-28 22:01:50 +00:00
README Import OpenSSL 1.0.1n. 2015-06-11 17:56:16 +00:00
UPDATING Document the disable of legacy entries in password database in UPDATING 2015-06-04 07:37:09 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html