summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Since clang 3.2 now has an option to suppress warnings about implicitlydim2013-02-161-5/+0
| | | | | | | promoted K&R parameters, remove the workarounds added for sendmail components in r228558. MFC after: 1 week
* Merge ACPICA 20130214.jkim2013-02-152-14/+14
|
* Advertise PCI-E capability in the hostbridge device presented to the guest.neel2013-02-153-0/+72
| | | | | | | FreeBSD wants to see this capability in at least one device in the PCI hierarchy before it allows use of MSI or MSI-X. Obtained from: NetApp
* Handle (ignore) when a process disappears before it can be tracked.jamie2013-02-141-6/+9
|
* Add option "--unassign-pptdev=<bus/slot/func>" to allow 'bhyvectl' to detachneel2013-02-141-0/+12
| | | | | | passthru devices from the guest. Obtained from: NetApp
* remove old-style function definitioncharnier2013-02-141-35/+27
| | | | reduce WARNS=6 output
* In case of failure of the pkg boostrap advice the user to either change thebapt2013-02-141-0/+2
| | | | | | | PACKAGESITE they use or install from ports directly indicating where the port is localted in the port collection Submitted by: kientzle
* Add USB API to read power draw on USB devices.hselasky2013-02-141-2/+6
| | | | | | | Update usbconfig to print power draw on USB devices. MFC after: 2 weeks Submitted by: Matt Burke @ icritical.com
* Simplify r243637 and make sure that nfsdargs.{min,max}threads are always setdelphij2013-02-141-20/+7
| | | | | | | | | | | | | to meaningful value: - When nfsdcnt is set, it dictates all values; - Otherwise, nfsdargs.minthreads is set to user specified value, or the automatically detected value if there is no one specified; nfsdargs.maxthreads is set to the user specified value, or the value of nfsdargs.minthreads if there is no one specified; when it is smaller than nfsdargs.minthreads, the latter's value is always used. MFC after: 2 weeks
* Abstract out setting of nfsdcnt and consistently use MAXNFSDCNT when thedelphij2013-02-141-21/+21
| | | | | | proposed value is too high and DEFNFSDCNT when proposed value is too low. MFC after: 2 weeks
* Use static for all functions that do not need to be exported.delphij2013-02-141-27/+27
| | | | MFC after: 2 weeks
* Implement guest vcpu pinning using 'pthread_setaffinity_np(3)'.neel2013-02-112-24/+5
| | | | | | | | | | | | | | Prior to this change pinning was implemented via an ioctl (VM_SET_PINNING) that called 'sched_bind()' on behalf of the user thread. The ULE implementation of 'sched_bind()' bumps up 'td_pinned' which in turn runs afoul of the assertion '(td_pinned == 0)' in userret(). Using the cpuset affinity to implement pinning of the vcpu threads works with both 4BSD and ULE schedulers and has the happy side-effect of getting rid of a bunch of code in vmm.ko. Discussed with: grehan
* Use the entire 64 bits of 'bar.pbi_length' when printing the bar size.neel2013-02-101-1/+1
| | | | This allows bar sizes greater than or equal to 4GB to be displayed correctly.
* Don't try to suppress the inclusion of the build date in named's versioncperciva2013-02-101-1/+1
| | | | | | string by undefining __DATE__, since (unlike gcc) clang doesn't allow us to do that. Instead, define NO_VERSION_DATE, which was helpfully added to the named source code for exactly this purpose.
* Remove NO_OBJ from Makefiles that generate manuals because this causes thedteske2013-02-082-4/+0
| | | | | | | GZIP compressed manuals to appear in ./src instead of the appropriate obj dir. PR: conf/175844 Submitted by: Dominique Goncalves <dominique.goncalves@gmail.com>
* Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headersjhb2013-02-052-4/+0
| | | | | | in /usr/include. MFC after: 2 weeks
* crunchgen: Permit use of alternative linkers.pfg2013-02-051-1/+2
| | | | | Submitted by: Pete Chou MFC after: 1 week
* crunchide(1): Put e_shnum into a local variable.pfg2013-02-031-10/+13
| | | | | | | This simplifies the code a bit. Submitted by: Cristoph Mallon MFC after: 2 weeks
* crunchide(1): support non-custom elf object layoutpfg2013-02-031-60/+157
| | | | | | | | | | | | | | | The crunchide utility presumes the last 3 chunks of an ELF object layout are section headers, symbol table, and then string table. However, this is not specified in the ELF standards, and linkers may generate different layouts when doing partial linking (-r). This change is required to build FreeBSD with mclinker or the gold linker. PR: bin/174011 Submitted by: Pete Chou Reviewed by: Cristoph Mallon MFC after: 2 weeks
* crunch: Sync some NetBSD changespfg2013-02-031-0/+2
| | | | | | | Fix a couple of free's in previous commit. Obtained from: NetBSD MFC after: 1 week
* crunch: Sync some NetBSD changespfg2013-02-021-2/+3
| | | | | | Revert a comment that was not supposed to go away. Obtained from: NetBSD
* crunch: Sync some NetBSD changes.pfg2013-02-023-26/+26
| | | | | | | | | | | | | | | | | crunchide: Apr 11, 2009: fix some -Wsign-compare issues. Sep 20, 1999: Free the right thing. crunchgen: Apr 14, 2009: Fix some WARNS=4 issues (-Wshadow -Wcast-qual) Oct 30, 2004: Add (unsigned char) cast to ctype functions Feb 5, 2001: fix nested extern. examples: Aug 30, 2007: NetBSD 36867 - trsp references are deprecated Obtained from: NetBSD MFC after: 1 week
* Display MSI-X table and PBA offsets when displaying information about MSI-Xneel2013-02-011-11/+15
| | | | | | capability. Reviewed by: jhb, jimharris (initial version)
* Add support for MSI-X interrupts in the virtio block device and make thatneel2013-02-011-8/+98
| | | | | | | | | | | | the default. The current behavior of advertising a single MSI vector can be requested by setting the environment variable "BHYVE_USE_MSI" to "yes". The use of MSI is not compliant with the virtio specification and will be eventually phased out. Submitted by: Gopakumar T Obtained from: NetApp
* Change old-style function definitioncharnier2013-02-0113-143/+75
|
* Prevent a null pointer dereference in pw userdel when deletingdeischen2013-02-011-1/+1
| | | | a user whose group != username.
* Fix a broken assumption in the passthru implementation that the MSI-X tableneel2013-02-011-23/+37
| | | | | | | | | | | can only be located at the beginning or the end of the BAR. If the MSI-table is located in the middle of a BAR then we will split the BAR into two and create two mappings - one before the table and one after the table - leaving a hole in place of the table so accesses to it can be trapped and emulated. Obtained from: NetApp
* Fix a bug in the passthru implementation where it would assume that allneel2013-02-014-8/+34
| | | | | | | | | | | devices are MSI-X capable. This in turn would lead it to treat bar 0 as the MSI-X table bar even if the underlying device did not support MSI-X. Fix this by providing an API to query the MSI-X table index of the emulated device. If the underlying device does not support MSI-X then this API will return -1. Obtained from: NetApp
* Retire struct sockaddr_inarp.glebius2013-01-315-70/+43
| | | | | | | | | | | | | | | Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@
* Allow the address and ports to be separated by a colon or period ratherjhb2013-01-302-4/+39
| | | | | | | | than a space to permit directly pasting the output of commands such as netstat and sockstat on the command line. Reviewed by: net MFC after: 1 week
* Add support for MSI-X interrupts in the virtio network device and make thatneel2013-01-304-30/+348
| | | | | | | | | | | | the default. The current behavior of advertising a single MSI vector can be requested by setting the environment variable "BHYVE_USE_MSI" to "true". The use of MSI is not compliant with the virtio specification and will be eventually phased out. Submitted by: Gopakumar T Obtained from: NetApp
* If no resolv.conf has been made for the new system already and the installnwhitehorn2013-01-271-0/+5
| | | | | | media has one already, copy it in lieu of leaving things blank. This reduces the foot-shooting potential for PXE installs that immediately add packages.
* Properly quote argument.nwhitehorn2013-01-271-1/+1
| | | | MFC after: 3 days
* Rename the run_cmd field to sw_runcmd to make it consistent with themarkj2013-01-271-7/+7
| | | | | | | other fields in struct sigwork_entry. Approved by: rstone (co-mentor) MFC after: 1 week
* Ensure that newsyslog -n prints the correct message for a rotation rulemarkj2013-01-271-4/+9
| | | | | | | | that uses the 'R' flag. Reviewed by: gad Approved by: rstone (co-mentor) MFC after: 1 week
* When the 'R' flag is used with a newsyslog.conf entry, some fields ofmarkj2013-01-271-1/+3
| | | | | | | | | | | | the corresponding struct sigwork_entry were left uninitialized, potentially causing an early return from do_sigwork(). Ensure that these fields are initialized, and handle the 'R' flag properly in do_sigwork(). PR: bin/175330 Reviewed by: gad Approved by: rstone (co-mentor) MFC after: 1 week
* Clean some 'svn:executable' properties in the tree.pfg2013-01-264-0/+0
| | | | | Submitted by: Christoph Mallon MFC after: 3 days
* Revert accidental regression to previous misspelling.ian2013-01-261-1/+1
| | | | Approved by: cognet (mentor)
* Reduce watchdogd's memory footprint when running daemonized.ian2013-01-261-1/+9
| | | | | | | | | | | This uses the recently-added jemalloc(3) feature of setting the lg_chunk tuning option to zero to request that memory be allocated in the smallest chunks possible. Without this option, the default is to initally map 8MB, and then the mlockall() call wires that entire allocation even though the program only uses a few Kbytes of it at runtime. PR: bin/173332 Approved by: cognet (mentor)
* Improve correctness of rtc register implementation.grehan2013-01-251-5/+15
| | | | Submitted by: tycho nightingale at pluribusnetworks com
* Use the correct type (uint64_t) to retrieve sysctl machdep.tsc_freq.neel2013-01-251-5/+2
| | | | | | | | Simplify the function a bit by falling through after initialization and return via the normal code path. Reviewed by: grehan Obtained from: NetApp
* manctl is conditionally added to SUBDIRS later on. Don't unconditionallybrooks2013-01-231-1/+0
| | | | include in the main list.
* Fix compilation errors.jasone2013-01-231-2/+2
|
* Use snprintf instead of strc* functions and add bounds checking when creatingbapt2013-01-222-4/+9
| | | | | | pkgngpath Submitted by: sbz, gahr
* Improve error handling and remove an unnecessary check on geom providernwhitehorn2013-01-223-17/+17
| | | | | | | type. GEOM provider names can't duplicate (or shouldn't -- devfs will either break or only use the first one if they do) so using the first provider by that name is a sufficient check. This also lets the scripted partitioner install onto gmirror and geli and such things.
* Improve documentation of BSDINSTALL_DISTSITE and mdoc.nwhitehorn2013-01-221-5/+24
|
* Clarify that the setup script is optional.nwhitehorn2013-01-221-2/+4
|
* Update change date.nwhitehorn2013-01-221-2/+2
|
* Document bsdinstall scripting as it currently operates. It may change innwhitehorn2013-01-221-4/+118
| | | | | the future depending on feedback from people using it to do unattended system setup.
* Allocate the memory for the MSI-X table dynamically instead of allocating 32KBneel2013-01-212-15/+32
| | | | | | | | | | statically. In most cases the number of table entries will be far less than the maximum of 2048 allowed by the PCI specification. Reuse macros from pcireg.h to interpret the MSI-X capability instead of rolling our own. Obtained from: NetApp
OpenPOWER on IntegriCloud