summaryrefslogtreecommitdiffstats
path: root/cddl/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r319746,r319747,r319769: 8269 dtrace stddev aggregation is normalized ↵avg2017-09-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | incorrectly illumos/illumos-gate@79809f9cf402f130667349b2d4007ecd65d63c6f https://github.com/illumos/illumos-gate/commit/79809f9cf402f130667349b2d4007ecd65d63c6f https://www.illumos.org/issues/8269 It seems that currently normalization of stddev aggregation is done incorrectly. We divide both the sum of values and the sum of their squares by the normalization factor. But we should divide the sum of squares by the normalization factor squared to scale the original values properly. FreeBSD note: the actual change was committed in r316853, this commit adds the test files and record merge information. Reviewed by: Bryan Cantrill <bryan@joyent.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Andriy Gapon <avg@FreeBSD.org> Sponsored by: Panzura
* MFC r322773-r322775:markj2017-08-301-0/+1
| | | | Fix an off-by-two in the llquantize() action parameter validation.
* MFC r314654:ngie2017-07-205-43/+41
| | | | | | | | | cddl: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output While here, remove bogus CFLAGS which look for headers in cddl/lib/libumem. There aren't any source files there (just Makefiles)
* MFC r320165-r320167asomers2017-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | r320165: devd(8): Remove pidfile on shutdown Sponsored by: Spectra Logic Corp r320166: Require devd to be running for its ATF tests to run The ATF tests communicate with the system's running devd PR: 220169 Reported by: gjb Sponsored by: Spectra Logic Corp r320167: zfsd(8): Remove pidfile on shutdown Sponsored by: Spectra Logic Corp
* MFC r312396:asomers2017-02-281-2/+5
| | | | | | | | | | | Fix an unchecked return value in zfsd It's pretty unlikely to actually hit this, but good to check it anyway Reported by: Coverity CID: 1362018 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
* MFC r307400, r307401:markj2017-02-031-0/+1
| | | | DTrace test fixes.
* MFC r309698, r309699, r309700:markj2017-02-031-1/+1
| | | | DTrace test fixes.
* MFC r305148:bdrewery2017-01-031-0/+35
| | | | DIRDEPS_BUILD: Add some missing dirctories to the build.
* MFC r305209: MFV r302660: 6314 buffer overflow in dsl_dataset_namemav2016-10-121-1/+1
| | | | | | | | | | | | | | | | | illumos/illumos-gate@9adfa60d484ce2435f5af77cc99dcd4e692b6660 https://github.com/illumos/illumos-gate/commit/9adfa60d484ce2435f5af77cc99dcd4e6 92b6660 https://www.illumos.org/issues/6314 Callers of dsl_dataset_name pass a buffer of size ZFS_MAXNAMELEN, but dsl_dataset_name copies the datasets' name PLUS the snapshot name to it, resulting in a max of 2 * ZFS_MAXNAMELEN + '@'. Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Matthew Ahrens <mahrens@delphix.com>
* MFC r305018,r305019,r305020:ngie2016-09-183-24/+16
| | | | | | | | | | | | | | | | | | | r305018: Use SRCTOP instead of a homegrown definition for it (SRCDIR) r305019: Remove unnecessary variable (SRCDIR) replaced by SRCTOP in Makefile.common r305020: Remove redundant declarations and simplify ../ in pathing - TESTSBASE and LOCALBASE are already defined in bsd.tests.mk - TESTSDIR is automatically divined as ${TESTSBASE}${RELDIR:H} after r289158. - Replace SRCDIR with SRCTOP
* MFC r305013:dim2016-09-023-2/+11
| | | | | | | | | | | | | | | Add an empty virtual destructor to zfsd's Vdev class. This is needed because the class has virtual functions, and the compiler-generated default destructor is non-virtual. Reviewed by: asomers MFC r305016: Fix the zfsd unittest: * TESTSDIR is supposed to be under cddl/usr.sbin, not cddl/sbin * DevdCtl::EventBuffer no longer exists, so remove its forward declaration
* MFC r303900:ngie2016-08-283-3/+20
| | | | | | | | | | | | | Highball memory requirement (4GB) with common/{raise,safety} Both test suites require more memory than my amd64 VM using GENERIC-NODEBUG can provide and reliably panic it with OOM issues in dtrace(4). Some of the testcases fail, but this at least bypasses the panic behavior on platforms that don't have enough resources Discussed with: markj
* Coverity fixes for r300906asomers2016-05-311-1/+0
| | | | | | | | | | | | | | | lib/libdevdctl/consumer.cc In Consumer::DisconnectFromDevd, don't close the socket if it's already closed. cddl/usr.sbin/zfsd/case_file.cc lib/libdevdctl/consumer.h Delete dead code leftover from before devd(8) gained SOCK_SEQPACKET support Reported by: Coverity CID: 1356155, 1356169 Sponsored by: Spectra Logic Corp
* zfsd: Remove a redundant semicolon,pfg2016-05-311-1/+1
|
* zfsd: minor spelling fix.pfg2016-05-301-1/+1
|
* Avoid more literal-suffix errors with C++11bdrewery2016-05-291-4/+4
|
* zfsd(8), the ZFS fault management daemonasomers2016-05-2826-0/+5997
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add zfsd, which deals with hard drive faults in ZFS pools. It manages hotspares and replements in drive slots that publish physical paths. cddl/usr.sbin/zfsd Add zfsd(8) and its unit tests cddl/usr.sbin/Makefile Add zfsd to the build lib/libdevdctl A C++ library that helps devd clients process events lib/Makefile share/mk/bsd.libnames.mk share/mk/src.libnames.mk Add libdevdctl to the build. It's a private library, unusable by out-of-tree software. etc/defaults/rc.conf By default, set zfsd_enable to NO etc/mtree/BSD.include.dist Add a directory for libdevdctl's include files etc/mtree/BSD.tests.dist Add a directory for zfsd's unit tests etc/mtree/BSD.var.dist Add /var/db/zfsd/cases, where zfsd stores case files while it's shut down. etc/rc.d/Makefile etc/rc.d/zfsd Add zfsd's rc script sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c Fix the resource.fs.zfs.statechange message. It had a number of problems: It was only being emitted on a transition to the HEALTHY state. That made it impossible for zfsd to take actions based on drives getting sicker. It compared the new state to vdev_prevstate, which is the state that the vdev had the last time it was opened. That doesn't make sense, because a vdev can change state multiple times without being reopened. vdev_set_state contains logic that will change the device's new state based on various conditions. However, the statechange event was being posted _before_ that logic took effect. Now it's being posted after. Submitted by: gibbs, asomers, mav, allanjude Reviewed by: mav, delphij Relnotes: yes Sponsored by: Spectra Logic Corp, iX Systems Differential Revision: https://reviews.freebsd.org/D6564
* Add initial DTrace support for RISC-V.br2016-05-241-1/+2
| | | | | Sponsored by: DARPA, AFRL Sponsored by: HEIF5
* Remove the old version of the DTraceToolkit from the source tree.gnn2016-05-194-112/+0
| | | | | | | | The DTraceToolkit is part of the Open DTrace effort and is supported on FreeBSD as a port (sysutils/DTraceToolkit) which has been updated to properly track toolkit development upstream. Sponsored by: DARPA, AFRL
* Fix DTrace test ATF wrapper generation.markj2016-05-101-1/+1
|
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-0485-95/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* Fix including Kyuafile in packaged base system.gjb2016-04-291-1/+2
| | | | | | | | | | | | Fix a related typo while here. Note, this change results in the Kyuafile inclusion in the runtime package, which needs to be fixed, however addresses the PR as far as I can tell in my tests. PR: 209114 Submitted by: ngie Sponsored by: The FreeBSD Foundation
* MFHgjb2016-03-1082-0/+982
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-0982-0/+982
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-02-181-2/+0
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Test directories can build in parallel fine.bdrewery2016-02-161-2/+0
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+5
|/ | | | Sponsored by: The FreeBSD Foundation
* Reduce zfs utilities overlinkingbapt2015-12-242-2/+2
|
* Fix a discrepancy in r291738.markj2015-12-071-1/+1
| | | | | | The script that generates these makefiles was changed to modify LIBADD rather than LDADD/DPADD, but the makefile itself was also changed in a slightly different way.
* Update DTrace test suite makefiles after r291963.markj2015-12-071-0/+2
|
* Fix LDADD/DPADD that should be LIBADD.bdrewery2015-12-044-10/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Reduce overlinking of libdtrace consumers with libctf, libelf, libproc.bdrewery2015-12-021-1/+1
| | | | | | | | | | | | The proper place for this list is _DP_dtrace. Due to removing the LDADD_dtrace, more LIBADD are needed in cddl/usr.sbin/dtrace to prevent underlinking. This fixes overlinking in cddl/usr.sbin/lockstat and cddl/usr.sbin/plockstat. Sponsored by: EMC / Isilon Storage Division
* Fully connect cddl/usr.sbin/plockstat.bdrewery2015-12-022-2/+27
| | | | | | | | There seems to be no reason to keep this so private. Also add missing optional MK_CDDL files. Sponsored by: EMC / Isilon Storage Division
* META MODE: Fix userland/cddl.bdrewery2015-12-011-3/+0
| | | | | | | MK_CTF controls whether ctfmerge is ran against the binaries, not whether CTF tools should be built. Sponsored by: EMC / Isilon Storage Division
* Rename Makefile.inc1 to dtrace.test.mk to avoid clash with top-level ↵bdrewery2015-11-2583-82/+82
| | | | | | | Makefile.inc1. Discussed with: ngie, markj Sponsored by: EMC / Isilon Storage Division
* Reduce the Makefile snippet complexity a bitngie2015-11-091-5/+3
| | | | | | | | | - Set BINDIR to TESTSDIR globally (and subsequently, remove all `${FILESGROUP}DIR` setting because BINDIR is set to `TESTSDIR`) - Set MAN to "" globally, instead of per-PROG MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Remove unneeded _RECURSING_PROGS check.bdrewery2015-10-301-2/+0
| | | | | | | | It is definitely not needed after r288158, and is a private variable as well that should not be checked here. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-122-5/+2
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Update DTrace test makefiles after r288415.markj2015-09-302-0/+3
|
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.bdrewery2015-09-252-4/+0
| | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* Add a src.conf option to build and install the DTrace test suite.markj2015-08-021-0/+6
| | | | | Reviewed by: gnn, ngie Differential Revision: https://reviews.freebsd.org/D3195
* First cut of DTrace for AArch64.br2015-07-011-1/+1
| | | | | | Reviewed by: andrew, emaste Sponsored by: ARM Limited Differential Revision: https://reviews.freebsd.org/D2738
* Add META_MODE support.sjg2015-06-135-0/+139
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-083-6/+0
| |
| * Merge sync of headsjg2015-05-2793-15/+3522
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-0/+4
| |\
| * \ Merge head from 7/28sjg2014-08-194-0/+4
| |\ \
| * | | Updated dependenciessjg2014-05-163-3/+0
| | | |
| * | | Updated dependenciessjg2014-05-104-0/+10
| | | |
| * | | Merge from headsjg2014-05-081-1/+1
| |\ \ \
OpenPOWER on IntegriCloud