summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add LLDB bmake infrastructureemaste2013-09-2042-10/+1112
| | | | | | | | | | | This connects LLDB to the build, but it is disabled by default. Add WITH_LLDB= to src.conf to build it. Note that LLDB requires a C++11 compiler so is disabled on platforms using GCC. Approved by: re (gjb) Sponsored by: DARPA, AFRL
* Disable LLDB OSX ABI pluginemaste2013-09-201-6/+0
| | | | Approved by: re (blanket)
* Update arcmsr(4) driver to 1.20.00.28 which fixes mutex recursion indelphij2013-09-191-15/+12
| | | | | | | | | | CCB abort codepath. Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw> MFC after: 2 weeks Approved by: re (?)
* Fix comments.trociny2013-09-191-3/+2
| | | | | Approved by: re (marius) MFC after: 3 days
* When updating the map of dirty extents, most recently used extents aretrociny2013-09-192-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | kept dirty to reduce the number of on-disk metadata updates. The sequence of operations is: 1) acquire the activemap lock; 2) update in-memory map; 3) if the list of keepdirty extents is changed, update on-disk metadata; 4) release the lock. On-disk updates are not frequent in comparison with in-memory updates, while require much more time. So situations are possible when one thread is updating on-disk metadata and another one is waiting for the activemap lock just to update the in-memory map. Improve this by introducing additional, on-disk map lock: when in-memory map is updated and it is detected that the on-disk map needs update too, the on-disk map lock is acquired and the on-memory lock is released before flushing the map. Reported by: Yamagi Burmeister yamagi.org Tested by: Yamagi Burmeister yamagi.org Reviewed by: pjd Approved by: re (marius) MFC after: 2 weeks
* - calendar uses cpp internally, this diff removes this usage anddb2013-09-196-65/+279
| | | | | | | substitutes a limited subset cpp processor internally. PR: src/178463 Approved by: re (gjb)
* Use cv_broadcast() instead of cv_signal() when waking up threadstrociny2013-09-192-3/+3
| | | | | | | | | | | | | | | | | | | | waiting on an empty queue as the queue may have several consumers. Before the fix the following scenario was possible: 2 threads are waiting on empty queue, 2 threads are inserting simultaneously. The first inserting thread detects that the queue is empty and is going to send the signal, but before it sends the second thread inserts too. When the first sends the signal only one of the waiting threads receive it while the other one may wait forever. The scenario above is is believed to be the cause of the observed cases, when ggate_recv_thread() was getting stuck on taking free request, while the free queue was not empty. Reviewed by: pjd Tested by: Yamagi Burmeister yamagi.org Approved by: re (marius) MFC after: 2 weeks
* Further refinement to bmake bootstrappingemaste2013-09-191-5/+5
| | | | | | | | | Include PROGNAME and DESTDIR in ${MMAKE} so that it doesn't need to be passed to each make invocation. Suggested by: hrs Reviewed by: hrs Approved by: re (gjb)
* Remove extra 'MAKE_FLAGS' line.gjb2013-09-191-1/+0
| | | | | | Submitted by: jhb Approved by: re (marius) Sponsored by: The FreeBSD Foundation
* Minor mdoc improvements.joel2013-09-192-5/+7
| | | | Approved by: re (blanket)
* Regen.jhb2013-09-1911-12/+196
| | | | Approved by: re (delphij)
* Extend the support for exempting processes from being killed when swap isjhb2013-09-1924-16/+696
| | | | | | | | | | | | | | | | | | | | | | exhausted. - Add a new protect(1) command that can be used to set or revoke protection from arbitrary processes. Similar to ktrace it can apply a change to all existing descendants of a process as well as future descendants. - Add a new procctl(2) system call that provides a generic interface for control operations on processes (as opposed to the debugger-specific operations provided by ptrace(2)). procctl(2) uses a combination of idtype_t and an id to identify the set of processes on which to operate similar to wait6(). - Add a PROC_SPROTECT control operation to manage the protection status of a set of processes. MADV_PROTECT still works for backwards compatability. - Add a p_flag2 to struct proc (and a corresponding ki_flag2 to kinfo_proc) the first bit of which is used to track if P_PROTECT should be inherited by new child processes. Reviewed by: kib, jilles (earlier version) Approved by: re (delphij) MFC after: 1 month
* 1. Properly clean pid files in the case of the error.trociny2013-09-191-18/+27
| | | | | | | | | 2. Write the supervisor pid before the restart loop, so we don't uselessly rewrite it after every child restart. 3. Remove duplicate ppfh and pfh initialization. Approved by: re (glebius) MFC after: 2 weeks
* sys/i386/xen_mp_machdep.c:gibbs2013-09-191-0/+3
| | | | | | | | | | | Set a 'fake' acpi_id for the i386 PV port, it is needed in order to use VIRQs or IPI event channels. Submitted by: Roger Pau Monné Sponsored by: Citrix Systems R&D Reviewed by: gibbs Approved by: re (blanket Xen) MFC after: 2 weeks
* cap_new(2) and cap_getrights2) were replaced with cap_rights_limit(2)bdrewery2013-09-192-7/+7
| | | | | | | | and cap_rights_get(2) in r247602 Reviewed by: pjd Approved by: gjb Approved by: re (rodrigc)
* Make svnlite (actually libapr) work correctly on big-endian arches.dim2013-09-191-0/+6
| | | | | | | | | | | | | | Otherwise, you would get errors similar to: $ svn co svn://svn.freebsd.org/base/head test A test/lib A test/lib/libutil svn: E200014: Checksum mismatch for '/home/dim/test/lib/libutil/kinfo_getproc.3': expected: 0882097a545210d88edff8f63b328602 actual: b378eb08a0f4d4c97c513c4b17207f59 Approved by: re (gjb, marius)
* Remove an unused variable and fix a memory leak in sctp_connectx().tuexen2013-09-191-3/+4
| | | | | Approved by: re (gjb) MFC after: 3 days
* Reconnect the hyperv drivers back into GENERIC now that thegrehan2013-09-191-0/+3
| | | | | | disengage driver issue has been resolved. Approved by: re@ (gjb)
* Implement support for the interrupt-on-terminal-count andgrehan2013-09-191-16/+90
| | | | | | | s/w-strobe timer modes. These are commonly used by non-FreeBSD o/s's. Approved by: re@ (blanket)
* Add simplistic periodic timer support to mevent using kqueue'sgrehan2013-09-193-8/+104
| | | | | | | | timer support. This should be enough for the emulation of h/w periodic timers (and no more) e.g. some of the 8254's more esoteric modes that happen to be used by non-FreeBSD o/s's. Approved by: re@ (blanket)
* Allow the alarm hours/mins/seconds registers to be read/written,grehan2013-09-191-0/+30
| | | | | | | | though without any action. This avoids a hypervisor exit when o/s's access these regs (Linux). Reviewed by: neel Approved by: re@ (blanket)
* Use correct offset for the high byte of high memory written togrehan2013-09-191-1/+1
| | | | | | | RTC NVRAM. Submitted by: Bela Lubkin bela dot lubkin at tidalscale dot com Approved by: re@ (blanket)
* Reorder the hypervisor presence test to avoid claiming ATA disksgrehan2013-09-191-28/+38
| | | | | | | on non hyperv systems. Reviewed by: neel, abgupta at microsoft dot com Approved by: re@ (hrs)
* Fix missing SVN properties.grehan2013-09-190-0/+0
| | | | Approved by: re@ (hrs)
* Merge lldb man page from r188801 to contrib/llvm/tools/lldb/docs/emaste2013-09-191-0/+119
|\ | | | | | | Approved by: re (gjb)
| * Import lldb.1 man page as of SVN r188801emaste2013-09-181-0/+119
| |
* | Fix several problems in the new iSCSI stack; this includes interoperabilitytrasz2013-09-186-74/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | fix for LIO (Linux target), removing possibility for the target to avoid mutual CHAP by choosing to skip authentication altogether, and fixing truncated error messages in iscsictl(8) output. This also fixes several of the problems found with Coverity. Note that this change requires world rebuild. Coverity CID: 1088038, 1087998, 1087990, 1088004, 1088044, 1088041, 1088040 Approved by: re (blanket) Sponsored by: FreeBSD Foundation
* | Fix panic in ktrcapfail() when no capability rights are passed.pjd2013-09-186-9/+16
| | | | | | | | | | | | | | | | | | While here, correct all consumers to pass NULL instead of 0 as we pass capability rights as pointers now, not uint64_t. Reported by: Daniel Peyrolon Tested by: Daniel Peyrolon Approved by: re (marius)
* | Regen.rdivacky2013-09-1810-188/+32
| | | | | | | | Approved by: re (delphij)
* | Revert r255672, it has some serious flaws, leaking file references etc.rdivacky2013-09-1814-736/+69
| | | | | | | | Approved by: re (delphij)
* | Regen.rdivacky2013-09-1810-32/+190
| | | | | | | | Approved by: re (delphij)
* | Implement epoll support in Linuxulator. This is a tiny wrapper around kqueuerdivacky2013-09-1814-69/+736
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to implement epoll subset of functionality. The kqueue user data are 32bit on i386 which is not enough for epoll user data so this patch overrides kqueue fileops to maintain enough space in struct file. Initial patch developed by me in 2007 and then extended and finished by Yuri Victorovich. Approved by: re (delphij) Sponsored by: Google Summer of Code Submitted by: Yuri Victorovich <yuri at rawbw dot com> Tested by: Yuri Victorovich <yuri at rawbw dot com>
* | Make iscsictl(8) automatically try to load the iscsi module. While here,trasz2013-09-183-3/+13
| | | | | | | | | | | | improve module loading in iscsid(8) and ctld(8). Approved by: re (delphij)
* | mdoc: sort SEE ALSO.joel2013-09-181-1/+1
| | | | | | | | Approved by: re (blanket)
* | Fix 'make installcheck' to check for missing UID/GID as well, brokenbdrewery2013-09-181-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since r249893, by adding a separate _installcheck_world and _installcheck_kernel so the destination targets can be more explicit on which they are needed for. installcheck will call both, while installworld only calls _installcheck_world and installkernel only calls _installcheck_kernel While here, mark the internal targets as starting with _. Reported by: des Reviewed by: des Pointyhat to: bdrewery Approved by: re (delphij)
* | Bring in configuration for Buffalo Airstation WZR-300HP, Atheros basedsbruno2013-09-172-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | wireless home router. Notable things: 2x 16 MB flash devices Atheros Wireless Atheros Switching Many thanks to adrian@ for his guidance on this and keeping the drivers in the base system up to date Approved by: re (delphij)
* | Regenerate for freebsd32_cap_enter().jilles2013-09-175-10/+16
| | | | | | | | Approved by: re (hrs)
* | Disallow cap_enter() in freebsd32 compatibility mode.jilles2013-09-172-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The freebsd32 compatibility mode (for running 32-bit binaries on 64-bit kernels) does not currently allow any system calls in capability mode, but still permits cap_enter(). As a result, 32-bit binaries on 64-bit kernels that use capability mode do not work (they crash after being disallowed to call sys_exit()). Affected binaries include dhclient and uniq. The latter's crashes cause obscure build failures. This commit makes freebsd32 cap_enter() fail with [ENOSYS], as if capability mode was not compiled in. Applications deal with this by doing their work without capability mode. This commit does not fix the uncommon situation where a 64-bit process enters capability mode and then executes a 32-bit binary using fexecve(). This commit should be reverted when allowing the necessary freebsd32 system calls in capability mode. Reviewed by: pjd Approved by: re (hrs)
* | We have grown a bit too big lately. Shrinking the kernel for TP-Linkhiren2013-09-171-4/+18
| | | | | | | | | | | | | | | | | | | | TL-WR1043ND. Submitted by: loos (initial version) Reviewed by: adrian Approved by: sbruno (mentor, implicit) Approved by: re (delphij) Tested by: hiren
* | Add EXAMPLES section to explain the format of fstab(5).hrs2013-09-171-1/+36
| | | | | | | | | | Approved by: re (marius) Reviewed by: wblock
* | - Fix pidfile handling in sendmail_msp_queue. The pidfile was ignoredhrs2013-09-171-5/+2
| | | | | | | | | | | | | | | | | | and multiple instances were invoked by start/stop cycles. - Remove redundant start_cmd rewrite. Approved by: re (gjb) Tested by: jmg
* | Fix parsing lines of ifconfig output which include \t in the case ofhrs2013-09-171-7/+8
| | | | | | | | | | | | inet and inet6. Approved by: re (delphij)
* | Remove description "ifconfig_IF_aliasN is deprecated". While thishrs2013-09-171-5/+3
| | | | | | | | | | | | | | sentence was added in 2005, many users still need it. Approved by: re (gjb) PR: docs/162354
* | share/i18n: Fix installworld with read-only obj.jilles2013-09-172-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | Since iconv was enabled (r254273, August 13), it has been impossible to installworld using a read-only obj tree. This is common with NFS. Parts of share/i18n unconditionally rebuild files like mapper.dir during installation. This patch ensures the files like mapper.dir are not rewritten with the same contents. Tested by: joel Approved by: re (hrs)
* | Fix a typo when accounting for tx_broadcast statistics.delphij2013-09-171-1/+1
| | | | | | | | | | | | Submitted by: Paul A. Patience <paul-a patience polymtl ca> MFC after: 2 weeks Approved by: re (hrs)
* | Pass the number of supported vectors to pci_emul_add_msicap() andgrehan2013-09-171-1/+2
| | | | | | | | | | | | | | not the actual PCI BAR number. Reviewed by: neel Approved by: re@ (blanket)
* | psm: Update "struct synapticshw" in psm(4) man pagedumbbell2013-09-171-1/+4
| | | | | | | | | | | | | | This structure was updated in r255153 and r255154. PR: kern/170834 Approved by: re (hrs)
* | Hide TSC-deadline APIC timer support from guests. This modegrehan2013-09-171-1/+6
| | | | | | | | | | | | | | isn't yet implemented in bhyve's APIC emulation. Reviewed by: neel Approved by: re@ (blanket)
* | Merge in support for PAPR-compliant (Power Architecture Platformnwhitehorn2013-09-1716-0/+2858
| | | | | | | | | | | | | | | | | | | | | | | | Requirements) systems from the projects/pseries branch. This in principle includes all IBM POWER hardware released in the last 15 years with the exception of POWER3-based systems when run in 64-bit mode. The main development target, however, has been the PAPR logical partition support that is the default target in KVM on POWER and QEMU -- mileage may vary on actual hardware at present. Much of the heavy lifting here was done by Andreas Tobler. Approved by: re (kib)
* | Only attach if properties we need (address, in particular) are present.nwhitehorn2013-09-171-0/+6
| | | | | | | | | | | | This is the correct version of r255420. Approved by: re (kib)
OpenPOWER on IntegriCloud