aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/dtrace
Commit message (Collapse)AuthorAgeFilesLines
* Merge OpenZFS support in to HEAD.Matt Macy2020-08-251-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary benefit is maintaining a completely shared code base with the community allowing FreeBSD to receive new features sooner and with less effort. I would advise against doing 'zpool upgrade' or creating indispensable pools using new features until this change has had a month+ to soak. Work on merging FreeBSD support in to what was at the time "ZFS on Linux" began in August 2018. I first publicly proposed transitioning FreeBSD to (new) OpenZFS on December 18th, 2018. FreeBSD support in OpenZFS was finally completed in December 2019. A CFT for downstreaming OpenZFS support in to FreeBSD was first issued on July 8th. All issues that were reported have been addressed or, for a couple of less critical matters there are pull requests in progress with OpenZFS. iXsystems has tested and dogfooded extensively internally. The TrueNAS 12 release is based on OpenZFS with some additional features that have not yet made it upstream. Improvements include: project quotas, encrypted datasets, allocation classes, vectorized raidz, vectorized checksums, various command line improvements, zstd compression. Thanks to those who have helped along the way: Ryan Moeller, Allan Jude, Zack Welch, and many others. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D25872 Notes: svn path=/head/; revision=364746
* Enable creation of static userspace probes in incremental builds.Mark Johnston2020-08-201-4/+0
| | | | | | | | | | | | | | | | | | To define USDT probes, dtrace -G makes use of relocations for undefined symbols: the target address is overwritten with NOPs and the location is recorded in the DOF section of the output object file. To avoid link errors, the original relocation is destroyed. However, this means that the same input object file cannot be processed multiple times, as happens during incremental rebuilds. Instead, only set the relocation type to NONE, so that all information required to reconstruct USDT probes is preserved. Reported by: bdrewery MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=364438
* dtrace tests: Support globbing for excludesBryan Drewery2020-04-292-3/+20
| | | | | | | | | | | Downstream this makes skipping tests like common/ip/tst.*sctp*.ksh simpler. Reviewed by: vangyzen, cem, markj Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D24608 Notes: svn path=/head/; revision=360476
* DTrace: add a top level makefile to the new test suitMariusz Zaborski2019-06-091-0/+9
| | | | | | | Pointed out by: markj Notes: svn path=/head/; revision=348841
* DTrace: create an amd64 test suitMariusz Zaborski2019-06-053-1/+25
| | | | | | | | | | | | | Create two tests checking if we can read urgs registers and if the rax register returns a correct number. Reviewed by: markj Discussed with: lwhsu MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20364 Notes: svn path=/head/; revision=348706
* Hook up the existing i386 DTrace tests to the build.Mark Johnston2019-05-226-0/+106
| | | | | | | | | | Now that it's relatively easy to do so, we might as well. MFC after: 1 week Event: Waterloo Hackathon 2019 Notes: svn path=/head/; revision=348081
* Make it possible to generate makefiles for arch-dependent DTrace tests.Mark Johnston2019-05-221-8/+10
| | | | | | | | MFC after: 1 week Event: Waterloo Hackathon 2019 Notes: svn path=/head/; revision=348080
* Add support for send, receive and state-change DTrace providers forMichael Tuexen2018-08-222-0/+10
| | | | | | | | | | | | SCTP. They are based on what is specified in the Solaris DTrace manual for Solaris 11.4. Reviewed by: 0mp, dteske, markj Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16839 Notes: svn path=/head/; revision=338213
* Add a dtrace provider for UDP-Lite.Michael Tuexen2018-07-312-0/+5
| | | | | | | | | | | | | | The dtrace provider for UDP-Lite is modeled after the UDP provider. This fixes the bug that UDP-Lite packets were triggering the UDP provider. Thanks to dteske@ for providing the dwatch module. Reviewed by: dteske@, markj@, rrs@ Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16377 Notes: svn path=/head/; revision=337018
* Improve TCP related tests for dtrace.Michael Tuexen2018-07-221-3/+0
| | | | | | | | | | | | | | Ensure that the TCP connections are terminated gracefully as expected by the test. Use appropriate numbers for sent/received packets. In addition, enable tst.localtcpstate.ksh, which should pass, but doesn't until https://reviews.freebsd.org/D16369 is committed. Reviewed by: markj@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16288 Notes: svn path=/head/; revision=336597
* Fix the UDP tests for dtrace.Michael Tuexen2018-07-151-1/+0
| | | | | | | | | | | | | | | | | The code imported from opensolaris was depending on ping supporting UDP for sending probes. Since this is not supported by ping on FreeBSD use a perl script instead. The remote test requires the usage of ksh93, so state that in the sheband. Enable the local test, but keep the remote test disabled, since it requires a remote machine on the LAN. Reviewed by: markj@, gnn@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16268 Notes: svn path=/head/; revision=336315
* Remove tst.zonename.d from the list of expected failures.Mark Johnston2018-01-141-1/+0
| | | | | | | X-MFC with: r327888 Notes: svn path=/head/; revision=327973
* Add "jid" and "jailname" variables to DTrace.Mark Johnston2018-01-121-0/+2
| | | | | | | | | | | | | | | | | These return the jail ID and jail name for the traced process, respectively, and are analogous to "zonename" on Solaris/illumos. "zonename" is now aliased to "jailname". Also add some stress tests for the new variables. Submitted by: Domagoj Stolfa <domagoj.stolfa@gmail.com> Reviewed by: dteske (previous version) MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D13877 Notes: svn path=/head/; revision=327888
* Add a regression test for r327794.Mark Johnston2018-01-101-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=327795
* Mark uctf/err.user64mode.ksh as EXFAIL for now.Mark Johnston2017-12-151-0/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=326878
* Actually add the -x setenv test Makefile, missed in r326499.Mark Johnston2017-12-081-0/+30
| | | | | | | X-MFC with: r326499 Notes: svn path=/head/; revision=326705
* Complete support for dtrace's -x setenv option.Mark Johnston2017-12-033-2/+1
| | | | | | | | | | | | | | This allows one to override the environment for processes created with dtrace -c. By default, the environment is inherited. This support was originally merged from illumos in r249367 but was lost when the commit was later reverted and then brought back piecemeal. Reported by: Samuel Lepetit <slepetit@apple.com> MFC after: 2 weeks Notes: svn path=/head/; revision=326499
* Revert r326181 for now.Mark Johnston2017-11-274-4/+2
| | | | | | | | | We can't link an executable using -m32 until the lib32 phase of a buildworld, though the build works fine when executing make from cddl/usr.sbin/dtrace/tests. Some other solution will need to be found. Notes: svn path=/head/; revision=326285
* Compile one of the uctf test programs with -m32.Mark Johnston2017-11-244-2/+4
| | | | | | | | | The err.user64mode.ksh test expects it to run as a 32-bit process. MFC after: 1 week Notes: svn path=/head/; revision=326181
* Annotate pragma/err.invalidlibdep.ksh as EXFAIL.Mark Johnston2017-11-221-0/+5
| | | | | | | | | | | | | | The test creates a D library with a "depends_on library" pragma referencing a non-existent library, and expects compilation to fail. However, as far as I can tell, libdtrace is supposed simply abort compilation of the library in this case, and continue. This behaviour is desirable when adding libraries which depend on optional KLDs, for example. MFC after: 1 week Notes: svn path=/head/; revision=326096
* Annotate usdt/tst.eliminate.ksh as EXFAIL.Mark Johnston2017-11-211-0/+3
| | | | | | | | | It appears to depend on some behaviour specific to the Sun link editor. MFC after: 1 week Notes: svn path=/head/; revision=326063
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-3115-14/+5
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-10-311-0/+11
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325187
* Add a regression test for r322773.Mark Johnston2017-08-211-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=322774
* The test case common.funcs.t_dtrace_contrib.tst_basename_d generates aLi-Wen Hsu2017-07-251-0/+8
| | | | | | | | | | | | verifying script which needs being run to complete the test. While here, add missing shebang. Reviewed by: gnn, markj, ngie Differential Revision: https://reviews.freebsd.org/D11716 Notes: svn path=/head/; revision=321472
* Add a simple script which calls open(2) and others to generate events forLi-Wen Hsu2017-07-251-0/+1
| | | | | | | | | | | | | testing. This test times-out on a quiet system because there is nobody triggers syscall::open:entry or syscall::: probe while test execution. Reviewed by: gnn, markj (earlier version) Differential Revision: https://reviews.freebsd.org/D11671 Notes: svn path=/head/; revision=321465
* Add a simple program which calls sigtimedwait(2) to generate events for testingLi-Wen Hsu2017-07-251-0/+1
| | | | | | | | | | | This test timeout on a quiet system because there is nobody triggers 'syscall::*wait*:entry' probe while test execution. Reviewed by: gnn, markj, ngie Differential Revision: https://reviews.freebsd.org/D11668 Notes: svn path=/head/; revision=321464
* Override the locale so that file lists get a consistent sort order.Mark Johnston2017-06-101-0/+2
| | | | | | | | Reported by: avg MFC after: 1 week Notes: svn path=/head/; revision=319792
* follow up to r319746: add the new test files to the make fileAndriy Gapon2017-06-101-0/+2
| | | | | | | | | Reported by: markj MFC after: 2 days X-MFC with: r319746 Notes: svn path=/head/; revision=319769
* Add a little helper program for tst.exitcore.ksh.Mark Johnston2017-05-221-0/+1
| | | | | | | | | | | sleep(1) is capsicumized, which means that we cannot rely on it to dump core as required by the test. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318680
* Remove the EXFAIL annotation for tests which pass as of r309596.Mark Johnston2017-05-191-5/+0
| | | | | | | | Reported by: bdrewery Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318508
* cddl: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-3/+3
| | | | | | | | | | | | | 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 after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314654
* Skip a ustack test that triggers an assertion on INVARIANTS kernels.Mark Johnston2016-12-141-0/+3
| | | | | | | | | Reported by: ngie Sponsored by: Dell EMC Isilon X-MFC-With: r309698 Notes: svn path=/head/; revision=310085
* err.D_PROC_CREATEFAIL.many.d passes, so remove the EFAIL annotation.Mark Johnston2016-12-081-3/+0
| | | | | | | | MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=309718
* Run DTrace test scripts with "tst" set to the test script file name.Mark Johnston2016-12-071-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=309698
* tst.kpriv.ksh fails because DTrace privilege levels are unimplemented.Mark Johnston2016-10-161-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=307400
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-08-311-0/+2
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=305146
* Regenerate DTrace tests.Mark Johnston2016-08-163-0/+28
| | | | Notes: svn path=/head/; revision=304201
* dtraceUtil/tst.DataModel32.d.ksh passes on amd64.Mark Johnston2016-08-151-1/+0
| | | | Notes: svn path=/head/; revision=304183
* Highball memory requirement (4GB) with common/{raise,safety}Enji Cooper2016-08-103-3/+20
| | | | | | | | | | | | | | | | 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 MFC after: 2 weeks Discussed with: markj Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=303900
* Fix DTrace test ATF wrapper generation.Mark Johnston2016-05-101-1/+1
| | | | Notes: svn path=/head/; revision=299388
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-0484-87/+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 Notes: svn path=/head/; revision=299094
* DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-0981-0/+971
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* Test directories can build in parallel fine.Bryan Drewery2016-02-161-2/+0
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295643
* Fix a discrepancy in r291738.Mark Johnston2015-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. Notes: svn path=/head/; revision=291965
* Update DTrace test suite makefiles after r291963.Mark Johnston2015-12-071-0/+2
| | | | Notes: svn path=/head/; revision=291964
* Fix LDADD/DPADD that should be LIBADD.Bryan Drewery2015-12-042-4/+2
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291738
* Reduce overlinking of libdtrace consumers with libctf, libelf, libproc.Bryan Drewery2015-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 Notes: svn path=/head/; revision=291628
* META MODE: Fix userland/cddl.Bryan Drewery2015-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 Notes: svn path=/head/; revision=291562
* Rename Makefile.inc1 to dtrace.test.mk to avoid clash with top-level ↵Bryan Drewery2015-11-2583-82/+82
| | | | | | | | | | Makefile.inc1. Discussed with: ngie, markj Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291332