summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* 1452 DTrace buffer autoscaling should be less violentmarkj2014-02-223-43/+0
| | | | | | | | | | | illumos/illumos-gate@6fb4854bed54ce82bd8610896b64ddebcd4af706 This fixes the tst.resize1.d and tst.resize2.d DTrace tests, which have been failing since r261122 since they were causing dtrace(1) to attempt to allocate and use large amounts of memory, and get killed by the OOM killer as a result. MFC after: 1 month
* Fix formatting.feld2014-02-171-2/+2
| | | | | | | | | "Manpages should start a new sentence on a new line. This makes it easier for translators to track changes." -jhb Approved by: jhb MFC after: 3 days Sponsored by: SupraNet Communications, Inc
* zfs.8: fix garbled options in a sample zfs send -R command lineavg2014-02-141-1/+1
| | | | MFC after: 5 days
* zpool.8: fix typo in option description of labelclear commandavg2014-02-141-1/+1
| | | | MFC after: 5 days
* Add caveat to zpool manpage indicating that we do not automatically activatefeld2014-02-111-0/+6
| | | | | | | | | | | hot spares. This should be MFC'd to all STABLE branches. Upon the availability of zfsd, the zpool manpage on relevant branches should be updated to remove this caveat and document hot spare's reliance on zfsd. Approved by: avg MFC after: 1 week Sponsored by: SupraNet Communications
* Only declare `bysz' variable under little endian archs.kaiw2014-01-291-1/+4
|
* MFH@261151.kaiw2014-01-251-10/+0
|\
| * dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zallocavg2014-01-241-10/+0
| | | | | | | | | | | | | | | | | | | | The limitation was introduced in r178556 without any note or comment. It seems pretty artificial and now it leads to problems like the following: $ dtrace -x bufsize=17m -n ... dtrace: processing aborted: Memory allocation failure OpenSolaris and illumos never had this limitation. Sponsored by: HybridCluster
* | Simplify DWARF version check.kaiw2014-01-251-8/+2
| | | | | | | | Submitted by: emaste
* | Let ctfconvert accept DWARF version 3 and 4.kaiw2014-01-221-3/+6
| |
* | MFH@260917.kaiw2014-01-203-0/+3
|\ \ | |/
| * zdb -R: do not treat numeric parameters to a flag as more flagsavg2014-01-171-0/+1
| | | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> MFC after: 1 week
| * zinject must use ioctl(2) compatibility wrapperavg2014-01-162-0/+2
| | | | | | | | | | MFC after: 8 days Sponsored by: HybridCluster
* | Clang 3.4 will sometimes emit DIE for struct/union member beforekaiw2014-01-201-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | emitting the DIE for the type of that member. ctfconvert can not handle this properly and will calculate a wrong member bit offset. Same struct/union type from different .o file will be treated as different types when their member bit offsets are different, and gets added/merged multiple times. This will in turn cause many other structs/pointers/typedefs that refer to the duplicated struct/union gets added/merged multiple times and eventually causes numerous duplicated CTF types in the kernel.debug file. The simple workaround here is to make use of DW_AT_byte_size attribute of the member DIE to calculate the bits occupied by the member's type, without actually resolving the type.
* | * Make die_mem_offset() be able to handle DW_AT_data_member_locationkaiw2014-01-191-9/+57
| | | | | | | | | | | | | | attributes generated by Clang 3.4. * Document how different compilers generate DW_AT_data_member_location attributes differently. * Document the quirks about DW_FORM_data[48].
* | We should not set the unnamed DIE's name to "__anon__" since that willkaiw2014-01-171-1/+1
| | | | | | | | | | | | | | bring back a known issue with DTrace regarding type name comparison. Instead, we can set the name to an empty string. Pointed out by: avg
* | If function die_name() finds a DIE without a name, set its name tokaiw2014-01-161-0/+2
| | | | | | | | | | | | | | | | "__anon__". This hack is used to workaround a issue that compilers like GCC could generate DW_TAG_base_type DIE without a name. Note that we didn't need this before because the old libdwarf internally set all the unnamed DIE's name to "__anon__".
* | Convert ctfconvert to use the new libdwarf API.kaiw2014-01-161-30/+34
|/
* MFV r260154 + 260182:delphij2014-01-0212-159/+767
| | | | | | | | | 4369 implement zfs bookmarks 4368 zfs send filesystems from readonly pools Illumos/illumos-gate@78f171005391b928aaf1642b3206c534ed644332 MFC after: 2 weeks
* MFV r260152:delphij2014-01-011-2/+2
| | | | | | | | | | 4208 Typo in zfs_main.c: "posxiuser" illumos/illumos-gate@f38cb554a534c6df738be3f4d23327e69888e634 Note: this is a stripped down version of Illumos change. MFC after: 2 weeks
* MFV r259170:delphij2014-01-014-47/+136
| | | | | | | | | | | | | 4370 avoid transmitting holes during zfs send 4371 DMU code clean up illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f NOTE: Make sure the boot code is updated if a zpool upgrade is done on boot zpool. MFC after: 2 weeks
* MFV r258972:delphij2013-12-312-4/+123
| | | | | | | | 4373 add block contents print to zstreamdump illumos/illumos-gate@994fb6b8a9d07a8021d77d79f46e30637bca3ad3 MFC after: 2 weeks
* MFV r242733:delphij2013-12-316-47/+213
| | | | | | | | | | | | | | | 3306 zdb should be able to issue reads in parallel 3321 'zpool reopen' command should be documented in the man page and help message illumos/illumos-gate@31d7e8fa33fae995f558673adb22641b5aa8b6e1 FreeBSD porting notes: the kernel part of this changeset depends on Solaris buf(9S) interfaces and are not really applicable for our use. vdev_disk.c is patched as-is to reduce diverge from upstream, but vdev_file.c is left intact. MFC after: 2 weeks
* When clearing relocations to __dtrace* symbols, handle both SHT_REL andmarkj2013-12-291-4/+11
| | | | | | | | SHT_RELA sections properly instead of assuming that the relocation section is of type SHT_REL. Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in> (original version) MFC after: 1 month
* MFV r258384:delphij2013-12-256-49/+60
| | | | | | | | 2583 Add -p (parsable) option to zfs list illumos/illumos-gate@43d68d68c1ce08fb35026bebfb141af422e7082e MFC after: 2 weeks
* Fix incorrect markup introduced in r259813.delphij2013-12-241-1/+1
| | | | | Pointy hat to: delphij X-MFC-after: r259813
* MFV r258374:delphij2013-12-245-32/+61
| | | | | | | | | | | 4171 clean up spa_feature_*() interfaces 4172 implement extensible_dataset feature for use by other zpool features illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9 MFC after: 2 weeks
* MFV r258373:delphij2013-12-241-19/+30
| | | | | | | | | | | 4168 ztest assertion failure in dbuf_undirty 4169 verbatim import causes zdb to segfa 4170 zhack leaves pool in ACTIVE state illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132 MFC after: 2 weeks
* Don't even try to read vdev labels from devices smaller then SPA_MINDEVSIZEmav2013-12-101-2/+9
| | | | | | (64MB). Even if we would find one somehow, ZFS kernel code rejects such devices. It is funny to look on attempts to read 4 256K vdev labels from 1.44MB floppy, though it is not very practical and quite slow.
* Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFTdelphij2013-12-091-0/+6
| | | | | | while listing importable pools. MFC after: 3 days
* mdoc: remove EOL whitespace.joel2013-12-061-1/+1
|
* Enable some previously-disabled DTrace tests for umod, ufunc and usym. Theymarkj2013-12-043-3/+3
| | | | | | expect the installed ksh binary to be named "ksh", which is not the case when it's installed on FreeBSD via the shells/ksh93 port. Allow for it to be "ksh93" as well so that the tests can actually pass.
* The uaddr, ufunc, umod and usym functions all seem to work as expected onmarkj2013-12-041-8/+0
| | | | | | FreeBSD, so stop hiding them behind a "#if defined(sun)". Reported by: Prashanth Kumar <pra_udupi@yahoo.co.in>
* Use mkstemp(3) to create the temporary file used in the FreeBSD-specificmarkj2013-12-031-8/+10
| | | | portions of dtrace_program_link().
* MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained controlavg2013-11-283-80/+174
| | | | | | | | | | | | | | | | | | | 4101 metaslab_debug should allow for fine-grained control 4102 space_maps should store more information about themselves 4103 space map object blocksize should be increased 4104 ::spa_space no longer works 4105 removing a mirrored log device results in a leaked object 4106 asynchronously load metaslab illumos/illumos-gate@0713e232b7712cd27d99e1e935ebb8d5de61c57d Note that some tunables have been removed and some new tunables have been added. Of particular note, FreeBSD-only knob vfs.zfs.space_map_last_hope is removed as it was a nop for some time now (after one of the previous merges from upstream). MFC after: 11 days Sponsored by: HybridCluster [merge]
* MFV r255255: 4045 zfs write throttle & i/o scheduler performance workavg2013-11-262-7/+10
| | | | | | | | | | | | | illumos/illumos-gate@69962b5647e4a8b9b14998733b765925381b727e Please note the following changes: - zio_ioctl has lost its priority parameter and now TRIM is executed with 'now' priority - some knobs are gone and some new knobs are added; not all of them are exposed as tunables / sysctls yet MFC after: 10 days Sponsored by: HybridCluster [merge]
* 734 taskq_dispatch_prealloc() desiredavg2013-11-262-34/+83
| | | | | | | | | | | | | | | | | | | | 943 zio_interrupt ends up calling taskq_dispatch with TQ_SLEEP illumos/illumos-gate@5aeb94743e3be0c51e86f73096334611ae3a058e Essentially FreeBSD taskqueues already operate in a mode that was added to Illumos with taskq_dispatch_ent change. We even exposed the superior FreeBSD interface as taskq_dispatch_safe. Now we just rename taskq_dispatch_safe to taskq_dispatch_ent and struct struct ostask to taskq_ent_t, so that code differences will be minimal. After this change sys/cddl/compat/opensolaris/sys/taskq.h header is no longer needed. Note that this commit is not an MFV because the upstream change was not individually committed to the vendor area. MFC after: 8 days
* Use 'int' to store the return value of getopt(), rather than char.jhibbits2013-11-202-3/+4
| | | | | | | | On some architectures (powerpc), char is unsigned by default, which means comparisons against -1 always fail, so the programs get stuck in an infinite loop. MFC after: 1 week
* Don't try to use the 32-bit drti.o unless the data model is explicitly setmarkj2013-11-091-3/+1
| | | | | | | | | | | | | | to ILP32. Otherwise dtrace -G will attempt to use it on amd64 if it can't determine which data model to use, which happens when -64 is omitted and no object files are provided, e.g. with # dtrace -G -n BEGIN This would result in a linker error, but now works properly. Also remove an unnecessary #ifdef. MFC after: 2 weeks
* Quiesce warning assigning to void * from const ctf_header_t * by explicity ↵sbruno2013-11-041-1/+1
| | | | | | | | casting to void * before assignment. Submitted as Illumos issue 4287
* spelling in comments fixupsbruno2013-11-041-2/+2
| | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
* Quiesce warning regarding %llf which has no effect.sbruno2013-11-041-1/+1
| | | | | | Submitted as illumos issue #4284 Reviewed by: delphij
* This library uses macros to define fprintf behvavior for several object typessbruno2013-11-031-0/+9
| | | | | | | | | The compiler will see the non-string literal arguments to the fprintf calls and omit warnings for them. Quiese these warnings in contrib code: cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ARENDER(pctl, nvlist_array, nvl, name, val, nelem);
* If the initial attempt to open /dev/ksyms fails, kldload the ksyms modulemarkj2013-10-271-0/+11
| | | | and retry.
* Convert the lockstat(1) man page to mdoc and make sure that it getsmarkj2013-10-272-828/+351
| | | | | | | | | | | | installed. Additionally, remove Solaris-specific sections and references, and replace example outputs with output from lockstat on FreeBSD, since lockstat's output contains stack traces. This change also removes some examples that don't seem to work properly on FreeBSD. The examples should be re-added when lockstat is fixed. Reported by: avg MFC after: 1 week
* Added support for the 'zfs list -t snap' and 'zfs snap' aliases which aresmh2013-10-232-16/+24
| | | | | | | | | | | | | | | | available under Oracle Solaris 11. This includes an update to the ZFS(8) man page to reflect all the available alias (snap, umount, and recv). Initial changes obtained from ZFS On Linux + fixes for man page and cmd help: https://github.com/zfsonlinux/zfs/commit/10b75496bb0cb7a7b8146c263164adc37f1d176a https://github.com/zfsonlinux/zfs/commit/cf81b00a73fe47fdb21586ac1cc179b734540973 Obtained from: https://github.com/zfsonlinux/zfs MFC after: 2 weeks Sponsored by: Multiplay
* Add a function, memstr, which can be used to convert a buffer ofmarkj2013-10-162-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | null-separated strings to a single string. This can be used to print the full arguments of a process using execsnoop (from the DTrace toolkit) or with the following one-liner: dtrace -n 'syscall::execve:return {trace(curpsinfo->pr_psargs);}' Note that this relies on the process arguments being cached via the struct proc, which means that it will not work for argvs longer than kern.ps_arg_cache_limit. However, the following rather non-portable script can be used to extract any argv at exec time: fbt::kern_execve:entry { printf("%s", memstr(args[1]->begin_argv, ' ', args[1]->begin_envv - args[1]->begin_argv)); } The debug.dtrace.memstr_max sysctl limits the maximum argument size to memstr(). Thanks to Brendan Gregg for helpful comments on freebsd-dtrace. Tested by: Fabian Keil (earlier version) MFC after: 2 weeks
* Add fasttrap for PowerPC. This is the last piece of the dtrace/ppc puzzle.jhibbits2013-10-152-12/+215
| | | | | | | It's incomplete, it doesn't contain full instruction emulation, but it should be sufficient for most cases. MFC after: 1 month
* Convert the dtrace(1) man page to mdoc and fix up some aspects of it thatmarkj2013-10-101-645/+652
| | | | | | | | | | | | | | | | don't make sense on FreeBSD. In particular, - remove the ATTRIBUTES section, - remove references to the Solaris Dynamic Tracing Guide, except in the SEE ALSO section, - update the description of the -A option for FreeBSD's implementation, - remove references to Solaris-specific programs and configuration files, and replace them with FreeBSD equivalents where possible. The content has not changed aside from this. Approved by: re (joel) MFC after: 1 week
* Fix implicit declaration of jail_getid()rmh2013-10-071-0/+1
| | | | Approved by: re
OpenPOWER on IntegriCloud