summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r263778:dim2014-04-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process all the SUBDIR entries in parallel, instead of serially. Apply this option to a selected number of Makefiles, which can greatly speed up the build on multi-core machines, when using make -j. This can be extended to more Makefiles later on, whenever they are verified to work correctly with parallel building. I tested this on a 24-core machine, with make -j48 buildworld (N = 6): before stddev after stddev ======= ====== ======= ====== real time 1741.1 16.5 959.8 2.7 user time 12468.7 16.4 14393.0 16.8 sys time 1825.0 54.8 2110.6 22.8 (user+sys)/real 8.2 17.1 E.g. the build was approximately 45% faster in real time. On machines with less cores, or with lower -j settings, the speedup will not be as impressive. But at least you can now almost max out a machine with buildworld! Submitted by: jilles MFC r263833: Enable parallel building for gnu/usr.bin and usr.bin/clang too.
* Merge r263203: garbage collect long time obsoleted (or never used) stuffglebius2014-04-092-38/+2
| | | | from routing API.
* Remove useless embedding of kernel struct rtentry into userland one.glebius2014-04-091-5/+0
| | | | | | This is direct commit to stable/10. Sponsored by: Nginx, Inc.
* MFC 259635:jhb2014-04-084-14/+58
| | | | | | | Add an option to ignore accesses by the guest to unimplemented MSRs. Also, ignore a couple of SandyBridge uncore PMC MSRs that Centos 6.4 writes to during boot.
* MFC revisions 260894,260899,262895-262902,262904,262908-262910,262982,dteske2014-04-0124-1580/+3085
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 262984,263133-263137,263139,263141,263144-263150, and (partially) 263249 (31 revisions; summarized below)... r260894: Optimize f_expand_number(), improving performance r260899: s/__number/__num/ in f_expand_number() r262895: Allow dispatched reswords to carry arguments r262896: Add missing local declaration r262897: Fix a typo in a comment r262898: Fix incorrect return status if var_to_set and var_to_get are same r262899: Make f_show_err non-fatal r262900: Centralize function name; Update a comment while here r262901: s/__num/__number/ in f_expand_number() r262902: Comment to go with NL global introduced by previous commit r262904: Rewrite groupmgmt -- hooking it into the scripting system r262908: Change dispatch words from group* to *Group for backward compat r262909: Fix copy/paste error in a comment r262910: Take a group name on the command-line if available r262982: Whitespace r262984: Remove vestigial global, no longer used since r262904 r263133: Remove indexfile from debug statement (already logged) r263134: Add debug statement just before attempting to exec a module r263135: Comments r263136: Update copyright r263137: Fix future namespace issues for functions taking $var_to_set r263139: Remove useless NULL string in compound strings r263141: Pointy hat! Fix a broken f_isinteger() r263144: Fix a code-typo that prevented auto-sizing of a dialog r263145: Fix comments and whitespace r263146: Reduce the sleep cycle when using dialog(1) [infobox] to 1-second r263147: Fix a bug preventing errors from pw(8) from appearing r263148: For non-interactive scripts, forgot to check argument r263149: Add protection against input containing single-quotes r263150: Rewrite usermgmt r263249: (partial) Add more obsolete files
* MFC: r262484brueffer2014-03-271-1/+1
| | | | | | | | | | | | In puthdr(), start the ELF .data section on a new page, as this is what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S). This makes resulting ELF binaries bootable with grub, gptboot and boot2. PR: 153801 Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com> Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com> Glanced at by: jhb, peter
* MFC r262613:dim2014-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | Merge the projects/clang-sparc64 branch back to head. This brings in several updates from the llvm and clang trunks to make the sparc64 backend fully functional. Apart from one patch to sys/sparc64/include/pcpu.h which is still under discussion, this makes it possible to let clang fully build world and kernel for sparc64. Any assistance with testing this on actual sparc64 hardware is greatly appreciated, as there will unavoidably be bugs left. Many thanks go to Roman Divacky for his upstream work on getting the sparc64 backend into shape. MFC r262985: Repair a few minor mismerges from r262261 in the clang-sparc64 project branch. This is also to minimize differences with upstream.
* MFC r263356:trasz2014-03-251-2/+2
| | | | | | Make the error message more clear. Sponsored by: The FreeBSD Foundation
* MFC r261752:trasz2014-03-253-8/+1
| | | | | | | | Empty data segment during Login Phase is rather unlikely, but it's not, by itself, a protocol error. This fixes interoperability with OpenBSD initiator. Sponsored by: The FreeBSD Foundation
* MFC r261751:trasz2014-03-251-4/+4
| | | | | | | The log_whatever() routines don't accept NULL for format strings, so mark them as __printflike instead of__printf0like. Sponsored by: The FreeBSD Foundation
* MFC r261764:trasz2014-03-251-0/+16
| | | | | | | | | So, it turns out SIGCHLD is discarded by default, so we have to set up a dummy handler to make it interrupt an ioctl(2) or select(2). This makes those short-lived ctld(8) zombies disappear. Sponsored by: The FreeBSD Foundation
* MFC r261763:trasz2014-03-255-11/+15
| | | | | | | Use new auth-type "deny" instead of using "chap" with no chap entries; it's cleaner this way, and gives better feedback to the user. Sponsored by: The FreeBSD Foundation
* MFC r261762:trasz2014-03-252-4/+7
| | | | | | | | Use "default" as default discovery-auth-group, instead of "no-access". It doesn't change visible behaviour, as previously auth-group "default" wasn't redefinable, so by default access was always denied. Sponsored by: The FreeBSD Foundation
* MFC r261761:trasz2014-03-251-3/+4
| | | | | | Update manual page to match recent auth-group "default" changes. Sponsored by: The FreeBSD Foundation
* MFC r261760:trasz2014-03-252-5/+25
| | | | | | | | Add a new auth-group "default", defaulting to deny, and make it possible to redefine it. From now on, assigning auth-group to a target is no longer mandatory. Sponsored by: The FreeBSD Foundation
* MFC r261759:trasz2014-03-252-3/+26
| | | | | | Make it possible to redefine portal-group "default". Sponsored by: The FreeBSD Foundation
* MFC r261758:trasz2014-03-255-11/+119
| | | | | | Add auth-type. Sponsored by: The FreeBSD Foundation
* MFC r261757:trasz2014-03-256-75/+75
| | | | | | Rename a variable, no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r261756:trasz2014-03-251-49/+49
| | | | | | Yacc cleanup; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r261755:trasz2014-03-251-120/+120
| | | | | | Make function ordering slightly more logical; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r261754:trasz2014-03-256-6/+278
| | | | | | Implement initiator-name and initiator-portal restrictions. Sponsored by: The FreeBSD Foundation
* MFC r261753:trasz2014-03-251-8/+9
| | | | | | | | Daemonize after applying configuration, not before, so that any problems - including "daemon already running" - are visible on the terminal and not just in logs. Sponsored by: The FreeBSD Foundation
* MFC r261750:trasz2014-03-251-10/+15
| | | | | | | Improve check for duplicated paths. It shows the warning twice for every path (once for each duplicate found), but it should do for now. Sponsored by: The FreeBSD Foundation
* MFC r261749:trasz2014-03-251-58/+64
| | | | | | Refactor. Sponsored by: The FreeBSD Foundation
* MFC r261768:trasz2014-03-251-3/+3
| | | | | | Make the debug messages during ctld(8) shutdown less confusing. Sponsored by: The FreeBSD Foundation
* MFC r261767:trasz2014-03-251-1/+1
| | | | | | Show proper configuration file line numbers in error messages. Sponsored by: The FreeBSD Foundation
* MFC r261766:trasz2014-03-251-0/+1
| | | | | | Make ctld error out on invalid characters in ctl.conf. Sponsored by: The FreeBSD Foundation
* MFC r261765:trasz2014-03-251-7/+24
| | | | | | Improve error reporting. Sponsored by: The FreeBSD Foundation
* Merge r263658 from head: remove unneeded fake _KERNEL definition.glebius2014-03-231-2/+0
| | | | Should fix broken builds.
* MFC r263181:bdrewery2014-03-221-0/+4
| | | | Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.
* MFC r263180:bdrewery2014-03-221-0/+11
| | | | Fix ABI from /usr/local/etc/pkg.conf not being respected.
* Bulk sync of pf changes from head, in attempt to fixup broken build Iglebius2014-03-122-3/+6
| | | | | | | | | made in r263029. Merge r257186,257215,257349,259736,261797. These changesets split pfvar.h into several smaller headers and make userland utilities to include only some of them.
* MFC 261030:jhb2014-03-113-4/+27
| | | | | Similar to cap_mkdb(1), add endianness support to services_mkdb(1) to support cross-builds once this is invoked during releases.
* r262400,r262401,r262418bapt2014-03-113-148/+84
| | | | Sync pkg(7) with head
* MFC r261748:trasz2014-03-061-0/+28
| | | | | | | | | So, it turns out SIGCHLD is discarded by default, so we have to set up a dummy handler to make it interrupt an ioctl(2) or select(2). This makes those short-lived iscsid(8) zombies disappear. Sponsored by: The FreeBSD Foundation
* MFC r261747:trasz2014-03-063-7/+1
| | | | | | | Empty data segment during Login Phase is rather unlikely, but it's not a protocol error. Sponsored by: The FreeBSD Foundation
* MFC r261715:trasz2014-03-061-4/+4
| | | | | | | The log_whatever() routines don't accept NULL for format strings, so mark them as __printflike instead of __printf0like. Sponsored by: The FreeBSD Foundation
* MFC r261832-261834:zeising2014-03-061-3/+4
| | | | | | | | | | | | r261832: Add cross references between rc.conf(5) and jail.conf(5). r261833: Add commas (,) to the list in the SEE ALSO section, to match most other manuals. r261834: Bump .Dd forgotten in r261832.
* MFC: r262494brueffer2014-03-051-28/+35
| | | | | | | | Rough cleanup (new sentence -> new line, grammar, spelling, mdoc). This could use more work. PR: 187035 (in part) Submitted by: Bjorn Heidotting
* Revert r262648 to stop severe tinderbox spamming on stable@.tijl2014-03-013-3/+10
|
* MFC r261299:brooks2014-03-011-1/+5
| | | | | | | | | | | Merge from CheriBSD: commit 2d581e8caf79d7a0f5a24590eccd06da90cccb74 Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Mon Jan 27 22:57:51 2014 +0000 Add WITHOUT_FMTREE to disable building fmtree. Sponsored by: DARPA, AFRL
* MFC: 261298brooks2014-03-013-10/+3
| | | | | | | | | | | | Merge from CheriBSD: commit 70b8f0c127db6b80411789d237b403cc64a93573 Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Mon Jan 27 22:53:57 2014 +0000 Move mtree.5 to usr.sbin/nmtree. Remove note that mtree 2.0 format files aren't supported. Sponsored by: DARPA, AFRL
* MFC r261296:brooks2014-03-014-8/+48
| | | | | | | | | | | | | Merge from CheriBSD: commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. Sponsored by: DARPA, AFRL
* MFH (r261511, r261542): add an example to the man pagedes2014-02-271-1/+7
|
* MFC: r261773brueffer2014-02-251-0/+1
| | | | | | | | | | In acline_init(), initialize ac_line to SRC_UNKNOWN. Previously this could lead to the -n option effectively being ignored (in case ac_line happened to be 0 aka SRC_AC), or other undefined behaviour. PR: 169779 Submitted by: Alex Gonzalez <loox at e-shell.com> Reviewed by: jhb
* MFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:jhb2014-02-237-46/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several changes to the local APIC support in bhyve: - Rename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()'. - If a vcpu disables its local apic and then executes a 'HLT' then spin down the vcpu and destroy its thread context. Also modify the 'HLT' processing to ignore pending interrupts in the IRR if interrupts have been disabled by the guest. The interrupt cannot be injected into the guest in any case so resuming it is futile. - Use callout(9) to drive the vlapic timer instead of clocking it on each VM exit. - When the guest is bringing up the APs in the x2APIC mode a write to the ICR register will now trigger a return to userspace with an exitcode of VM_EXITCODE_SPINUP_AP. - Change the vlapic timer lock to be a spinlock because the vlapic can be accessed from within a critical section (vm run loop) when guest is using x2apic mode. - Fix the vlapic version register. - Add a command to bhyvectl to inject an NMI on a specific vcpu. - Add an API to deliver message signalled interrupts to vcpus. This allows callers to treat the MSI 'addr' and 'data' fields as opaque and also lets bhyve implement multiple destination modes: physical, flat and clustered. - Rename the ambiguously named 'vm_setup_msi()' and 'vm_setup_msix()' to 'vm_setup_pptdev_msi()' and 'vm_setup_pptdev_msix()' respectively. - Consolidate the virtual apic initialization in a single function: vlapic_reset() - Add a generic routine to trigger an LVT interrupt that supports both fixed and NMI delivery modes. - Add an ioctl and bhyvectl command to trigger local interrupts inside a guest. In particular, a global NMI similar to that raised by SERR# or PERR# can be simulated by asserting LINT1 on all vCPUs. - Extend the LVT table in the vCPU local APIC to support CMCI. - Flesh out the local APIC error reporting a bit to cache errors and report them via ESR when ESR is written to. Add support for asserting the error LVT when an error occurs. Raise illegal vector errors when attempting to signal an invalid vector for an interrupt or when sending an IPI. - Export table entries in the MADT and MP Table advertising the stock x86 config of LINT0 set to ExtInt and LINT1 wired to NMI.
* MFC: r261900brueffer2014-02-211-0/+5
| | | | | | | | | In chat_UpdateSet(), initialize the input buffer to prevent stale data from previous timed out commands. PR: 186530 Submitted by: Alexander Zagrebin <alexz at visp.ru> Reviewed by: brian
* MFC 261607:jhb2014-02-192-0/+6
| | | | | Mark the I/O ports used by the bhyve console and debug devices as system resources.
* MFC 260926:jhb2014-02-172-8/+95
| | | | | | | | | | | Add support for displaying VPD for PCI devices via pciconf. - Store the length of each read-only VPD value since not all values are guaranteed to be ASCII values (though most are). - Add a new pciio ioctl to fetch VPD for a single PCI device. The values are returned as a list of variable length records, one for the device name and each keyword. - Add a new -V flag to pciconf's list mode which displays VPD data for each device.
* MFC r261401:bdrewery2014-02-171-1/+1
| | | | | | | Fix newsyslog(8) to use the size of the file instead of the blocks it takes on disk, as advertised in newsyslog.conf(5). Approved by: bapt (mentor, implicit)
OpenPOWER on IntegriCloud