summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Fix ztest when it is executed by just 'ztest' and not by full pathpjd2010-11-011-2/+1
| | | | '/usr/bin/ztest'.
* 1. Remove invalid assertion.pjd2010-11-011-3/+3
| | | | | | | 2. Properly recalculate delta in case pthread_cond_timedwait() is interrupted. 3. Style fix. Reported by: [1] App Deb <appdebgr@gmail.com>
* Use ${PICFLAG} instead of -fpic.rpaulo2010-10-271-1/+1
|
* Properly handle IO with B_FAILFASTmm2010-09-271-5/+6
| | | | | | | | | | | | | Retry IO once with ZIO_FLAG_TRYHARD before declaring a pool faulted OpenSolaris revision and Bug IDs: 9725:0bf7402e8022 6843014 ZFS B_FAILFAST handling is broken Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6843014) MFC after: 3 weeks
* Enable offlining of log devices.mm2010-09-274-220/+230
| | | | | | | | | | | | | OpenSolaris revision and Bug IDs: 9701:cc5b64682e64 6803605 should be able to offline log devices 6726045 vdev_deflate_ratio is not set when offlining a log device 6599442 zpool import has faults in the display Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6803605, 6726045, 6599442) MFC after: 3 weeks
* Minor grammar fixes.brueffer2010-09-211-2/+2
|
* Remove duplicate include of <strings.h>mm2010-09-171-1/+0
| | | | | Approved by: delphij (mentor) MFC after: 3 days
* Add a man page for plockstat.rpaulo2010-09-152-1/+95
| | | | Sponsored by: The FreeBSD Foundation
* Give a chance to the target binary to run the ctors by waiting until itrpaulo2010-09-121-1/+1
| | | | | | has reached main(). This allows plockstat to work. Sponsored by: The FreeBSD Foundation
* Disable debug by default.rpaulo2010-09-111-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Don't try to map the USDT probes. This is necessary because there is norpaulo2010-09-101-1/+3
| | | | | | __SUNW_dof symbol present in FreeBSD binaries. Sponsored by: The FreeBSD Foundation
* Don't clobber an existing target object file when doing the DTracerpaulo2010-09-091-0/+12
| | | | | | | | | linking process. This is needed because we change the source object files and the second this dtrace -G is run, no probes will be found. This hack allows us to build postgres with DTrace probes enabled. I'll try to find a way to fix this without needing this hack. Sponsored by: The FreeBSD Foundation
* Include <sys/sdt.h> on a generated header.rpaulo2010-09-011-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* Eliminate confusing while () loop. In the first version of the code it waspjd2010-08-311-4/+3
| | | | | | there to avoid gotos, but in the current version it serves no purpose. MFC after: 2 weeks
* When upgrading a pool which contain root file system, give user a hint thatpjd2010-08-311-0/+47
| | | | | | he should update boot code. MFC after: 2 weeks
* Give user a hint what to do when /usr/lib/zfs/pyzfs.py is missing.pjd2010-08-291-0/+2
| | | | MFC after: 2 weeks
* Print errors on stderr.pjd2010-08-291-2/+2
| | | | MFC after: 2 weeks
* Fix 'zfs allow' (maybe not only) returning:pjd2010-08-291-0/+1
| | | | | | | | | | | | | | | cannot access dataset system/usr/home: Operation not supported by including libzfs_impl.h. What libzfs_impl.h does is to redefine ioctl() to be compatible with OpenSolaris. More specifically OpenSolaris returns ENOMEM when buffer is too small and sets field zc_nvlist_dst_size to the size that will be big enough for the data. In FreeBSD case ioctl() doesn't copy data structure back in case of a failure. We work-around it in kernel and libzfs by returning 0 from ioctl() and always checking if zc_nvlist_dst_size hasn't changed. For this work-around to work in pyzfs we need this compatible ioctl() which is implemented in libzfs_impl.h. MFC after: 2 weeks
* Update ZFS metaslab code from OpenSolaris.mm2010-08-281-11/+13
| | | | | | | | | | | | | | | | | | | | | This provides a noticeable write speedup, especially on pools with less than 30% of free space. Detailed information (OpenSolaris onnv changesets and Bug IDs): 11146:7e58f40bcb1c 6826241 Sync write IOPS drops dramatically during TXG sync 6869229 zfs should switch to shiny new metaslabs more frequently 11728:59fdb3b856f6 6918420 zdb -m has issues printing metaslab statistics 12047:7c1fcc8419ca 6917066 zfs block picking can be improved Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6826241, 6869229, 6918420, 6917066) MFC after: 2 weeks
* Install dtruss.rpaulo2010-08-261-0/+2
| | | | Sponsored by: The FreeBSD Foundation
* Add a man page for dtruss.rpaulo2010-08-262-1/+90
| | | | Sponsored by: The FreeBSD Foundation
* Port dtruss to FreeBSD.rpaulo2010-08-241-9/+6
| | | | Sponsored by: The FreeBSD Foundation
* Merge dtracetoolkit/dtruss from the vendor.rpaulo2010-08-241-0/+467
| | | | Sponsored by: The FreeBSD Foundation
* MFtbemd:imp2010-08-232-3/+3
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Use real atomic operations for sparc64.marius2010-08-231-1/+1
| | | | MFC after: 1 week
* Add powerpc64 to the list of architectures with real atomic operations.nwhitehorn2010-08-231-1/+1
| | | | Submitted by: imp
* Don't link drti.o with libelf_pic.a. This means that all software withrpaulo2010-08-211-7/+1
| | | | | | | userland SDT probes must be linked with libelf explicitly. Requested by: kib 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
* 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 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
* 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
* Port most of the DTrace tests to FreeBSD.rpaulo2010-08-2183-93/+171
| | | | Sponsored by: The FreeBSD Foundation
* Add man pages for the CTF tools.rpaulo2010-08-116-3/+288
| | | | Sponsored by: The FreeBSD Foundation
* Fix another mismerge: bring back the definition of DT_MUTEX_HELD().rpaulo2010-08-021-0/+8
|
* Fix the result of a mismerge. MUTEX_HELD should be DT_MUTEX_HELD() andrpaulo2010-08-022-9/+11
| | | | Plmid() is not supposed to be called.
* MFV OpenSolaris DTrace userland bits.rpaulo2010-08-02112-250/+4419
|
* lockstat(1) now depends on libutil and librtld_db.rpaulo2010-07-311-2/+5
| | | | Sponsored by: The FreeBSD Foundation
* proc_wait() was replaced by proc_wstatus(). Right now this call isrpaulo2010-07-311-1/+1
| | | | | | | useless because userland support is not working on HEAD, but this makes libdtrace compile again. Sponsored by: The FreeBSD Foundation
* libdtrace, dtrace(1) and lockstat(1) are for i386 and amd64 only rightrpaulo2010-07-312-3/+12
| | | | | | now. Sponsored by: The FreeBSD Foundation
* Update to the new proc_detach() function.rpaulo2010-07-311-2/+2
| | | | Sponsored by: The FreeBSD Foundation
* dtrace(1) now depends on libutil and librtld_db.rpaulo2010-07-311-2/+4
| | | | Sponsored by: The FreeBSD Foundation
* Catch up with r210324. d_buf will be NULL for SHT_NOBITS sections, do notnp2010-07-231-1/+1
| | | | | | attempt to copy from it in that case. MFC after: 1 month
* dtrace: correctly map sections to addresses in elf object modules (amd64)avg2010-07-232-6/+70
| | | | | | | | | | | | | | | | | | | | | | Unlike for modules with dso type, in elf object modules all the sections have virtual address of zero. So, it is insufficient to add module base address to section virtual address (as recorded in section header) to get section address in kernel memory. Instead, we should apply the same calculations that are performed by kernel loaders (in boot code and in kernel) when they lay out sections in memory. Also, unlike OpenSolaris, the sections are not collapsed into just .text, .data and .bss by module loaders, so we need to take additional care about other sections. Note that in-kernel symbol-to-address mapping worked just fine, e.g. fbt provider could correctly find the functions, etc. It's only in userland that the mapping in both direction worked incorrectly, e.g. in stack() output addresses of functions in kernel modules were not translated to their names. Reviewed by: rpaulo MFC after: 3 weeks
* Enable fake resolving of SMB RIDs by using nulldomain and UID_NOBODYmm2010-07-221-1/+0
| | | | | | | | | | | | | - fixes panics when Solaris/OpenSolaris pools that contain files uploaded with the SMB protocol are accessed Enable seting/unsetting the sharesmb property (dummy action) - allows users who import pools from Solaris/Opensolaris to unset the sharesmb property and get rid of annoying messages PR: kern/145778, kern/148709 Approved by: pjd, delphij (mentor) MFC after: 7 weeks
* MFV:rpaulo2010-07-191-0/+996
| | | | | | OpenSolaris' plockstat utility. Sponsored by: The FreeBSD Foundation
* Merge from vendor: libdtrace MD parts needed by fasttrap.rpaulo2010-07-175-0/+1145
| | | | Sponsored by: The FreeBSD Foundation
* MFp4 180933:pjd2010-07-141-0/+2
| | | | | | | | | | | Initialize rw_count properly so that zdb(8) doesn't trigger assertion in rw_enter(): ASSERT(rwlp->rw_count == 0); While here, assert that rw_count is 0 when destroying the lock. MFC after: 1 week
OpenPOWER on IntegriCloud