summaryrefslogtreecommitdiffstats
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Regen after r293450emaste2016-01-091-1/+22
|
* Support use of LLVM's libunwind for exception unwindingemaste2016-01-091-2/+2
| | | | | | | | | | | | | | | It is built in libgcc_s.so and libgcc_eh.a to simplify transition. It is enabled by default on arm64 (where we previously had no other unwinder) and may be enabled for testing on other platforms by setting WITH_LLVM_LIBUNWIND in src.conf(5). Also add compiler-rt's __gcc_personality_v0 implementation for use with the LLVM unwinder. Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4787
* Fix issues found by mandoc -Tlint.brueffer2016-01-084-6/+4
| | | | MFC after: 1 week
* ioat(4): Add ioat_acquire_reserve() KPIcem2016-01-071-1/+11
| | | | | | | | | ioat_acquire_reserve() is an extended version of ioat_acquire(). It allows users to reserve space in the channel for some number of descriptors. If this succeeds, it guarantees that at least submission of N valid descriptors will succeed. Sponsored by: EMC / Isilon Storage Division
* nvme: add hw.nvme.min_cpus_per_ioq tunablejimharris2016-01-071-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | Due to FreeBSD system-wide limits on number of MSI-X vectors (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199321), it may be desirable to allocate fewer than the maximum number of vectors for an NVMe device, in order to save vectors for other devices (usually Ethernet) that can take better advantage of them and may be probed after NVMe. This tunable is expressed in terms of minimum number of CPUs per I/O queue instead of max number of queues per controller, to allow for a more even distribution of CPUs per queue. This avoids cases where some number of CPUs have a dedicated queue, but other CPUs need to share queues. Ideally the PR referenced above will eventually be fixed and the mechanism implemented here becomes obsolete anyways. While here, fix a bug in the CPUs per I/O queue calculation to properly account for the admin queue's MSI-X vector. Reviewed by: gallatin MFC after: 3 days Sponsored by: Intel
* Provide yet another KPI for cdev creation, make_dev_s(9).kib2016-01-072-47/+136
| | | | | | | | | | | | | | | | | | | Immediate problem fixed by the new KPI is the long-standing race between device creation and assignments to cdev->si_drv1 and cdev->si_drv2, which allows the window where cdevsw methods might be called with si_drv1,2 fields not yet set. Devices typically checked for NULL and returned spurious errors to usermode, and often left some methods unchecked. The new function interface is designed to be extensible, which should allow to add more features to make_dev_s(9) without inventing yet another name for function to create devices, while maintaining KPI and even KBI backward-compatibility. Reviewed by: hps, jhb Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D4746
* Revert r293286. It was not intended to come in yet.bdrewery2016-01-071-19/+0
|
* Move the MAKEOBJDIRPREFIX value guard to sys.mk and expand to MAKEOBJDIR.bdrewery2016-01-071-0/+19
| | | | | | | | | | | | This will ensure that the variable was not set as a make override, in make.conf, src.conf or src-env.conf. It allows setting the value in src-env.conf when using WITH_AUTO_OBJ since that case properly handles changing .OBJDIR (except if MAKEOBJDIRPREFIX does not yet exist which is being discussed to be changed). This change allows setting a default MAKEOBJDIRPREFIX via local.sys.env.mk. Sponsored by: EMC / Isilon Storage Division
* Use standard name for ASCII LF and FF control codesemaste2016-01-062-7/+7
| | | | | PR: 205778 MFC after: 2 weeks
* ioat(4): Add ioat_get_max_io_size() KPIcem2016-01-051-1/+3
| | | | | | | Consumers need to know the permitted IO size to send maximally sized chunks to the hardware. Sponsored by: EMC / Isilon Storage Division
* Add new LIBSOFT option. This is similar to the LIB32 option, exceptimp2016-01-031-0/+5
| | | | | | for libraries that follow the soft float ABI. It's only supported on armv6 as a transition to the new hard float ABI, so mark as broken everywhere else.
* Use correct name 'us' for character 31 in keymapsemaste2016-01-029-21/+21
| | | | | | | | 'ns' was a historical accident, and kbdcontrol(1) has accepted the correct 'us' as well as 'ns' since r38139. PR: 205776 MFC after: 1 week
* 17 years and change after I wrote warp_saver, here's a simple plasma effectdes2016-01-011-1/+11
| | | | | (currently only three circular patterns) which requires quite a bit of fixed-point arithmetic, including sqrt() and cos(). Happy New Year!
* Merge r293006 from clang380-import branch:dim2015-12-311-1/+1
| | | | | | | | | | | | For determining the compiler version, quote the string to be echo'd, otherwise the command might fail. This is because clang -v now results in the following: FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn) The second "3.8.8svn)" string tripped up the shell command. MFC after: 3 days
* [rtwn] Add initial manpages for the rtwn driver.adrian2015-12-313-0/+241
|
* - Sort ports-secteammiwi2015-12-291-1/+1
|
* - Add myself to ports-secteammiwi2015-12-291-1/+1
| | | | Approved by: delphij (implicit)
* procfs(5) is not required by ps(1) and w(1) anymorebapt2015-12-261-6/+2
| | | | Remove references of those tools in procfs(5)
* [mdio] migrate mdiobus out of etherswitch and into a top-level device of its ↵adrian2015-12-262-0/+54
| | | | | | | | | | | own. The mdio driver interface is generally useful for devices that require MDIO without the full MII bus interface. This lifts the driver/interface out of etherswitch(4), and adds a mdio(4) man page. Submitted by: Landon Fuller <landon@landonf.org> Differential Revision: https://reviews.freebsd.org/D4606
* Make libxnet.so a symlink to libc.so. This makes `-lxnet` a no-op, ascperciva2015-12-251-0/+3
| | | | | | | | | POSIX requires for the c99 compiler. (In fact, our c99(1) already ignores -lxnet; but our make(1) doesn't set ${CC} correctly, and our cc(1) treats xnet like any other library.) Reviewed by: kib
* Document that make's .POSIX: handling is broken. In fact, it has beencperciva2015-12-251-0/+4
| | | | broken ever since it was added in November 1996.
* Update mentors for brnrdbrnrd2015-12-241-2/+1
| | | | | | | | | - Remove vsevolod as mentor for brnrd - Add feld as mentor for brnrd Reviewed by: koobs (mentor), vsevolod (mentor p.t.), feld (mentor h.t.) Approved by: koobs (mentor) Differential Revision: https://reviews.freebsd.org/D4702
* Add accessor methods to fetch the BAR holding the MSI-X table and PBA.jhb2015-12-232-3/+54
| | | | | | | | | While here, explicitly note the requirement that the BAR(s) must be allocated prior to calling pci_alloc_msix(). Reviewed by: andrew, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4688
* Restore a day of the week in date(1) output for Japanese locales.ume2015-12-203-5/+5
| | | | It was lost by recent locale change.
* Clean up Kyuafile.tmp, not Kyuafile.auto.tmpngie2015-12-201-1/+1
| | | | | | | MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Document LOCALBASE in the bsd.test.mk sectionngie2015-12-201-0/+4
| | | | | | | MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* - Use LOCALBASE instead of KYUA_PREFIX for the --prefix to kyua(1)ngie2015-12-203-9/+5
| | | | | | | | | - Use LOCALBASE instead of hardcoding /usr/local for perl MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Deal with another hardcoded reference to Kyuafile in the KYUAFILE == autongie2015-12-201-1/+1
| | | | | | | | case Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Fix typo in r292500 by adding missing conditional statementngie2015-12-201-0/+1
| | | | | | | | MFC after: 1 week X-MFC with: r292500 Pointyhat to: ngie Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Sponsored by: EMC / Isilon Storage Division
* Simplify Kyuafile generation logic with KYUAFILE == auto andngie2015-12-201-14/+10
| | | | | | | | | related complexity with variables MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Add missing return statement to atf/printf_test to make the examplengie2015-12-201-0/+2
| | | | | | | | complete and correct, and mute a compiler warning from clang MFC after: 3 days Reported by: Jenkins Sponsored by: EMC / Isilon Storage Division
* Add a safety net to reclaim mbufs when one of the mbuf zones becomejtl2015-12-202-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exhausted. It is possible for a bug in the code (or, theoretically, even unusual network conditions) to exhaust all possible mbufs or mbuf clusters. When this occurs, things can grind to a halt fairly quickly. However, we currently do not call mb_reclaim() unless the entire system is experiencing a low-memory condition. While it is best to try to prevent exhaustion of one of the mbuf zones, it would also be useful to have a mechanism to attempt to recover from these situations by freeing "expendable" mbufs. This patch makes two changes: a) The patch adds a generic API to the UMA zone allocator to set a function that should be called when an allocation fails because the zone limit has been reached. Because of the way this function can be called, it really should do minimal work. b) The patch uses this API to try to free mbufs when an allocation fails from one of the mbuf zones because the zone limit has been reached. The function schedules a callout to run mb_reclaim(). Differential Revision: https://reviews.freebsd.org/D3864 Reviewed by: gnn Comments by: rrs, glebius MFC after: 2 weeks Sponsored by: Juniper Networks
* Use :E instead of regex in ctypedef Makefilesbapt2015-12-191-1/+1
|
* Simplify the locale generated Makefiles by using bmake multi variables for loopsbapt2015-12-186-814/+814
|
* ioat(4): Add an API to get HW revisioncem2015-12-171-1/+3
| | | | | | | | Different revisions support different operations. Refer to Intel External Design Specifications to figure out what your hardware supports. Sponsored by: EMC / Isilon Storage Division
* A change to KPI of vm_pager_get_pages() and underlying VOP_GETPAGES().glebius2015-12-161-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | o With new KPI consumers can request contiguous ranges of pages, and unlike before, all pages will be kept busied on return, like it was done before with the 'reqpage' only. Now the reqpage goes away. With new interface it is easier to implement code protected from race conditions. Such arrayed requests for now should be preceeded by a call to vm_pager_haspage() to make sure that request is possible. This could be improved later, making vm_pager_haspage() obsolete. Strenghtening the promises on the business of the array of pages allows us to remove such hacks as swp_pager_free_nrpage() and vm_pager_free_nonreq(). o New KPI accepts two integer pointers that may optionally point at values for read ahead and read behind, that a pager may do, if it can. These pages are completely owned by pager, and not controlled by the caller. This shifts the UFS-specific readahead logic from vm_fault.c, which should be file system agnostic, into vnode_pager.c. It also removes one VOP_BMAP() request per hard fault. Discussed with: kib, alc, jeff, scottl Sponsored by: Nginx, Inc. Sponsored by: Netflix
* Enable LLDB by default on amd64 and arm64emaste2015-12-161-1/+5
| | | | | | | | | | | | | | | | | LLDB is usable for userland core file and live debugging on amd64, and for userland core file debugging on arm64. In general it works at least as well on FreeBSD as our in-tree gdb version, so enable it by default to allow for broader use and testing. An LLDB tutorial is available at http://lldb.llvm.org/tutorial.html, and a table mapping GDB commands to LLDB commands can be found at http://lldb.llvm.org/lldb-gdb.html . LLDB also has some level of support for FreeBSD on arm, mips, i386, and powerpc, but is not yet ready to have them enabled by default. Reviewed by: gnn Relnotes: Yes
* Regenerate after r292283.bdrewery2015-12-151-3/+6
|
* Fix example code rendering, \n needs escaping to show up.brueffer2015-12-154-14/+14
| | | | | PR: 203536 Submitted by: Fabian Keil
* Fix a typo (opencrypto -> crypto) and remove useless comment.kevlo2015-12-151-5/+2
|
* DIRDEPS_BUILD: Support bootstrapping from PROGS.(DPADD|LIBADD).bdrewery2015-12-151-3/+18
| | | | Sponsored by: EMC / Isilon Storage Division
* DIRDEPS_BUILD: Fix incorrectly adding in RELDIR for DIRDEPS in bootstrapping.bdrewery2015-12-151-1/+3
| | | | | | | | This is not wrong, but was unexpected. Using <empty>:H results in '.' which then using the rest of the conversion was added in RELDIR. This was also causing an empty _DP_DIRDEPS to resolve to SRCTOP for DIRDEPS. Sponsored by: EMC / Isilon Storage Division
* DIRDEPS_BUILD: Avoid duplicates in DIRDEPS for bootstrapping.bdrewery2015-12-151-1/+1
| | | | | | | This logic is potentially included multiple times, so overwrite the temporary variable rather than append to it. Sponsored by: EMC / Isilon Storage Division
* Add comment about OBJTOP not yet being defined outside of META MODE.bdrewery2015-12-151-0/+2
| | | | | | It is fine for the purpose of the check though. Sponsored by: EMC / Isilon Storage Division
* Follow-up r291739: Don't suggest LDADD on private libs to use LIBADD.bdrewery2015-12-151-1/+2
| | | | | | | This is because LDADD+=-lFOO is not the same as LDADD+=-lprivateFOO which is what the private libs in LIBADD are. Sponsored by: EMC / Isilon Storage Division
* Start on a new library (libsysdecode) that provides routines for decodingjhb2015-12-152-0/+2
| | | | | | | | | | | | | | | | | system call information such as system call arguments. Initially this will consist of pulling duplicated code out of truss and kdump though it may prove useful for other utilities in the future. This commit moves the shared utrace(2) record parser out of kdump into the library and updates kdump and truss to use it. One difference from the previous version is that the library version treats unknown events that start with the "RTLD" signature as unknown events. This simplifies the interface and allows the consumer to decide how to handle all non-recognized events. Instead, this function only generates a string description for known malloc() and RTLD records. Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D4537
* Allow overriding FILESDIRs for snmp files.bdrewery2015-12-141-2/+2
| | | | Sponsored by: EMC / Isilon Storage Division
* ioat(4): Add support for interrupt coalescingcem2015-12-141-1/+19
| | | | | | | | | | In I/OAT, this is done through the INTRDELAY register. On supported platforms, this register can coalesce interrupts in a set period to avoid excessive interrupt load for small descriptor workflows. The period is configurable anywhere from 1 microsecond to 16.38 milliseconds, in microsecond granularity. Sponsored by: EMC / Isilon Storage Division
* Let termcap be used in LIBADD.bdrewery2015-12-141-0/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Clean up issues reported by mandoc -Tlintbrueffer2015-12-144-12/+12
|
OpenPOWER on IntegriCloud