summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a Makefile for dtruss.rpaulo2010-08-211-0/+8
| | | | Sponsored by: The FreeBSD Foundation
* Port plockstat to FreeBSD. This will be connected to the build later.rpaulo2010-08-212-11/+63
| | | | Sponsored by: The FreeBSD Foundation
* Link drti.o with a PIC version of libelf. This is needed becauserpaulo2010-08-211-2/+9
| | | | | | | drti.o depends on libelf and this avoids linking every other drti.o program (namely programs with USDT probes) with libelf. Sponsored by: The FreeBSD Foundation
* Add libelf to the prebuild libs.rpaulo2010-08-211-1/+1
| | | | | | This is needed for the DTrace instrumentation object. Sponsored by: The FreeBSD Foundation
* Port the DTrace helper ioctls to FreeBSD and add a helper member torpaulo2010-08-211-2/+12
| | | | | | dof_helper_t (needed by drti.o). Sponsored by: The FreeBSD Foundation
* Add libdtrace support for tracing userland programs.rpaulo2010-08-2115-218/+712
| | | | | | | | | | | | | | | | | | Summary of changes: * Implement a compatibility shim between Solaris libproc and our libproc and remove several ifdefs because of this. * Port the drti to FreeBSD. * Implement the missing DOODAD sections * Link with libproc and librtld_db * Support for ustack, jstack and uregs (by sson@) * Misc bugfixing When writing the SUWN_dof section, we had to resort to building the ELF file layout by "hand". This is the job of libelf, but our libelf doesn't support this yet. When libelf is fixed, we can remove the code under #ifdef BROKEN_LIBELF. Sponsored by: The FreeBSD Foundation
* Add sysname to struct opensolaris_utsname. This is needed by one DTracerpaulo2010-08-211-1/+2
| | | | | | test. Sponsored by: The FreeBSD Foundation
* Use double quotes when checking the value of MACHINE_ARCH.rpaulo2010-08-211-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* The DTrace instrumentation object is going to be i386/amd64 only.rpaulo2010-08-211-1/+2
| | | | Sponsored by: The FreeBSD Foundation
* Wrap remaining ieee80211_ratectl_node_init() calls missed in r211314.bschmidt2010-08-211-3/+6
| | | | MFC after: 1 week
* Port most of the DTrace tests to FreeBSD.rpaulo2010-08-2183-93/+171
| | | | Sponsored by: The FreeBSD Foundation
* Install a PIC libelf. This will be needed by the DTrace runtimerpaulo2010-08-211-0/+1
| | | | | | instrumentation object (dtri.o). Sponsored by: The FreeBSD Foundation
* Revert part of r211505. Some of the removed casts are actually safe sorpaulo2010-08-211-16/+16
| | | | | | | | put them back in again. Also, clang only complained about the lvalue cast. Submitted by: Dimitry Andric <dimitry at andric.com> Pointed out: bde
* make sure thread lock is locked.davidxu2010-08-201-0/+1
|
* Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE andjhb2010-08-2014-19/+47
| | | | | | | | | | | | LK_CANRECURSE after a lock is created. Use them to implement macros that otherwise manipulated the flags directly. Assert that the associated lockmgr lock is exclusively locked by the current thread when manipulating these flags to ensure the flag updates are safe. This last change required some minor shuffling in a few filesystems to exclusively lock a brand new vnode slightly earlier. Reviewed by: kib MFC after: 3 days
* optp may be NULL.ume2010-08-201-1/+2
|
* Revert r211434. Offline discussions have convinced me that this shouldmjacob2010-08-201-18/+2
| | | | be left alone for now.
* Reduce redundant code.davidxu2010-08-201-76/+21
| | | | Submitted by: kib
* In current implementation, thread cancellation is done in signal handler,davidxu2010-08-206-99/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which does not know what is the state of interrupted system call, for example, open() system call opened a file and the thread is still cancelled, result is descriptor leak, there are other problems which can cause resource leak or undeterminable side effect when a thread is cancelled. However, this is no longer true in new implementation. In defering mode, a thread is canceled if cancellation request is pending and later the thread enters a cancellation point, otherwise, a later pthread_cancel() just causes SIGCANCEL to be sent to the target thread, and causes target thread to abort system call, userland code in libthr then checks cancellation state, and cancels the thread if needed. For example, the cancellation point open(), the thread may be canceled at start, but later, if it opened a file descriptor, it is not canceled, this avoids file handle leak. Another example is read(), a thread may be canceled at start of the function, but later, if it read some bytes from a socket, the thread is not canceled, the caller then can decide if it should still enable cancelling or disable it and continue reading data until it thinks it has read all bytes of a packet, and keeps a protocol stream in health state, if user ignores partly reading of a packet without disabling cancellation, then second iteration of read loop cause the thread to be cancelled. An exception is that the close() cancellation point always closes a file handle despite whether the thread is cancelled or not. The old mechanism is still kept, for a functions which is not so easily to fix a cancellation problem, the rough mechanism is used. Reviewed by: kib@
* If thread set a TDP_WAKEUP for itself, clears the flag and returns EINTRdavidxu2010-08-201-0/+7
| | | | immediately, this is used for implementing reliable pthread cancellation.
* According to specification, function fcntl() is a cancellation point onlydavidxu2010-08-201-4/+11
| | | | when cmd argument is F_SETLKW.
* FPU EMU is 32-bit only for now, so mark it as a powerpc-only feature.nwhitehorn2010-08-201-9/+9
| | | | This fixes powerpc64 LINT.
* Fix mbuf leakages and remove unneccessary duplicate mbuf frees.anchie2010-08-191-13/+7
| | | | | | | Use the right copy of an mbuf for the IP6_EXTHDR_CHECK. Reported by: zec, hrs Approved by: bz (mentor)
* Revert a minor part of revision 211364:delphij2010-08-191-4/+1
| | | | | | | | | | - Imply -h if single file is grepped, this is the GNU behaviour This is already done by code above the change and have caused a regression since this instance of code does not check Hflag. Reported by: davidxu Pointy hat to: delphij
* Revert part of the r211149 as I erroneously ported the logical_cpus fromattilio2010-08-192-6/+6
| | | | | | | | | Yahoo! patchset as a mask (and according manipulating variables) while it is actually a CPU count. Submitted by: neel MFC after: 1 month X-MFC: 211149
* '\0' -> 0edwin2010-08-191-2/+2
| | | | Fix silly mistake by being overly zeaolous[sp] of applying the style rules.
* Eliminate the ambiguous queue setting logic forjfv2010-08-191-2/+2
| | | | | the VF, it made it possible to have 2 queues which we don't want, the HOST is unable to handle it.
* Remove unused KTRACE includes.jhb2010-08-199-41/+0
|
* There isn't really a need to hold the ktrace mutex just to read the valuejhb2010-08-191-6/+0
| | | | | | of p_traceflag that is stored in the kinfo_proc structure. It is still racey even with the lock and the code will read a consistent snapshot of the flag without the lock.
* Call dev_rel() in error paths.jh2010-08-191-0/+3
| | | | | | Reported by: kib Reviewed by: kib MFC after: 2 weeks
* Fix a whitespace nit and remove a questioning comment. STAILQ_CONCAT()jhb2010-08-191-2/+2
| | | | | does require the STAILQ the existing list is being added to to already be initialized (it is CONCAT() vs MOVE()).
* Migrate if_arge to use the PLL cpuops.adrian2010-08-192-30/+10
| | | | This has been lightly tested on the AR7161 and AR9132.
* Implement PLL generalisation in preparation for use in if_arge.adrian2010-08-193-3/+96
| | | | | | | | * Add a function to write to the relevant PLL register * Break out the PLL configuration for the AR71XX into the CPU ops, lifted from if_arge.c. * Add the AR91XX PLL configuration ops, using the AR91XX register definitions.
* add the PLL set functions to cpuopsadrian2010-08-191-0/+10
|
* Remove an unused macro. exit1() invokes ktrprocexit() directly.jhb2010-08-191-4/+0
|
* Remove unneeded casts in inline assembly in contrib/gcc/longlong.h,rpaulo2010-08-191-22/+22
| | | | | | | | | which are apparently "heinous" GNU extensions, so clang can compile this without using the -fheinous-gnu-extensions option. Results in *no* binary change, neither with clang, nor with gcc. Submitted by: Dimitry Andric <dimitry at andric.com>
* Fix mistaken indenting.adrian2010-08-191-5/+5
|
* Add some initial AR724X chipset support.adrian2010-08-196-0/+228
| | | | | | | This is untested but should at least allow an AR724X to boot. The current code is lacking the detail needed to expose the PCIe bus. It is also lacking any NIC, PLL or flush/WB code.
* Add initial Atheros AR91XX support.adrian2010-08-195-0/+236
| | | | | | | | | | | | | | This works well enough to bring a system up to single-user mode using an MDROOT. Known Issues: * The EHCI USB doesn't currently work and will panic the kernel during attach. * The onboard ethernet won't work until the PLL routines have been fleshed out and shoe-horned into if_arge. * The WMAC device glue (and quite likely the if_ath support) hasn't yet been implemented.
* MFp4: anchie_soc2009 branch:anchie2010-08-1910-14/+612
| | | | | | | | | | | | | | | | | | | | Add kernel side support for Secure Neighbor Discovery (SeND), RFC 3971. The implementation consists of a kernel module that gets packets from the nd6 code, sends them to user space on a dedicated socket and reinjects them back for further processing. Hooks are used from nd6 code paths to divert relevant packets to the send implementation for processing in user space. The hooks are only triggered if the send module is loaded. In case no user space application is connected to the send socket, processing continues normaly as if the module would not be loaded. Unloading the module is not possible at this time due to missing nd6 locking. The native SeND socket is similar to a raw IPv6 socket but with its own, internal pseudo-protocol. Approved by: bz (mentor)
* expand_number(3) takes a uint64_t * now; intmax_t was never correctdes2010-08-191-1/+1
| | | | | | except by accident. MFC after: 3 weeks
* expand_number(3) takes a uint64_t * now.des2010-08-191-1/+1
| | | | MFC after: 3 weeks
* Add missing licence.adrian2010-08-191-0/+26
|
* style(9) pick from imp@ .adrian2010-08-191-3/+2
|
* UTFize my name.des2010-08-196-6/+6
|
* This patch to pc-sysinstall allows the setting of a new configimp2010-08-192-7/+97
| | | | | | | | | variable for installation, which lets the user/front-end select between MBR or GPT partitioning schemes when doing a dedicated disk installation. PR: 149772 Submitted by: Kris Moore
* Added "-m" option to "disk-list" to list memory disks along withimp2010-08-193-5/+22
| | | | | | | standard disks. PR: 149749 Submitted by: John Hixson
* Simple patch to add support zpool virtual devices that are notimp2010-08-191-13/+6
| | | | | | | currently supported. PR: 149599 Submitted by: John Hixson
* Some cleanup, changed some echo's to echo_log, check for PROGDIR soimp2010-08-193-7/+26
| | | | | | | that different PROGDIR's can be set. PR: 148806 Submitted by: John Hixson
* Updates to pc-sysinstall that allow FTP installation of FreeBSD.imp2010-08-194-39/+224
| | | | | PR: 148661 Submitted by: John Hixson
OpenPOWER on IntegriCloud