summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/cmd/dtrace/test
Commit message (Collapse)AuthorAgeFilesLines
* MFC r331135:markj2018-03-261-1/+1
| | | | Use __syscall(2) rather than syscall(2) in syscall/tst.args.c.
* MFC r313264:eadler2018-03-191-1/+1
| | | | Avoid using Sun compiler-specific flags.
* MFC r327888, r327972, r327973:markj2018-02-132-0/+88
| | | | Add "jid" and "jailname" variables to DTrace.
* MFC r326061, r326063:markj2017-11-281-1/+1
| | | | DTrace test fixups.
* MFC: 323253, 323499gnn2017-09-201-3/+0
| | | | | | Add D definitions for the named values in socket.h (gnn@) Fix DTrace test tst_inet_ntop_d: remove definitions are already in libdtrace (lwhsu@)
* MFC r319746,r319747,r319769: 8269 dtrace stddev aggregation is normalized ↵avg2017-09-192-0/+49
| | | | | | | | | | | | | | | | | | | | | | | 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/+25
| | | | Fix an off-by-two in the llquantize() action parameter validation.
* MFC r321387:ngie2017-08-221-1/+1
| | | | | Don't use incorrect hardcoded path to ksh -- use /usr/bin/env to find ksh instead
* MFC r307400, r307401:markj2017-02-031-2/+2
| | | | DTrace test fixes.
* MFC r309698, r309699, r309700:markj2017-02-034-4/+4
| | | | DTrace test fixes.
* Add a trailing newline to the expected output for tst.walltimestamp.ksh.markj2015-12-071-0/+1
| | | | MFC after: 1 week
* MFV r289003:markj2015-12-072-0/+103
| | | | | | | | | | | | 6271 dtrace caused excessive fork time Author: Bryan Cantrill <bryan@joyent.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Gordon Ross <gwr@nexenta.com> illumos/illumos-gate@7bd3c1d12d0c764e1517c3aca62c634409356764
* MFV r288408:markj2015-09-303-0/+164
| | | | | | | | | | | | | 6266 harden dtrace_difo_chunksize() with respect to malicious DIF illumos/illumos-gate@395c7a3dcfc66b8b671dc4b3c4a2f0ca26449922 Reviewed by: Alex Wilson <alex.wilson@joyent.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Approved by: Garrett D'Amore <garrett@damore.org> Author: Bryan Cantrill <bryan@joyent.com> MFC after: 1 week
* Stop hard-coding a 32-bit data model for USDT tests, and just use the nativemarkj2015-09-3020-21/+21
| | | | | | | model. This was causing many of the tests to fail on amd64 since USDT support for 32-bit programs is currently non-functional. MFC after: 1 week
* Don't hardcode the module or function component of lockstat probes.markj2015-08-026-6/+6
| | | | MFC after: 1 week
* - Remove hardcoded paths for the perl executable.markj2015-08-026-7/+20
| | | | | | | | | - Rather than assuming that a process is listening on 127.0.0.1:22, use nc(1) to find an available port and bind to it for the duration of the test. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix ping(8) and ping6(8) usage in a couple of ip provider tests, andmarkj2015-03-304-16/+22
| | | | | | | update expected test output to reflect differences in default TTL and payload length. MFC after: 1 week
* Fix ping(8) usage in funcs/tst.system.d so that the test actually completes.markj2015-03-302-6/+15
| | | | MFC after: 1 week
* tcp provider tests: sleep for a bit after closing the socket so thatmarkj2015-03-284-0/+4
| | | | | | libdtrace has a chance to capture the traced data. MFC after: 1 week
* Use the -shared option to create a shared library.markj2015-02-285-8/+8
| | | | MFC after: 1 week
* Remove a leading tab that causes a make(1) error when running the test.markj2015-02-281-1/+1
| | | | MFC after: 1 week
* Only kill sleep processes that were forked from the test script.markj2015-02-281-1/+1
| | | | MFC after: 1 week
* Stop hard-coding an incorrect path to rm(1).markj2015-02-285-5/+5
| | | | MFC after: 1 week
* Tweak the fds test program so that it actually compiles. Also use 0 insteadmarkj2015-02-142-7/+8
| | | | | | | of -1 for the bogus ioctl command so that dmesg doesn't get spammed with sign extension warnings when the test program runs. MFC after: 1 week
* Avoid hard-coding a path to ksh in scripts that are executed directly bymarkj2015-02-0311-11/+11
| | | | | | | | the test harness. This is a problem in many of the *.ksh test scripts as well, but those scripts are executed using a shell whose path is specified in dtest.pl, so there's no need to modify them. MFC after: 1 week
* Fix mktemp(1) usage.markj2015-01-311-1/+1
| | | | MFC after: 1 week
* Use syscall::exit instead of the nonexistent syscall::rexit.markj2015-01-311-1/+1
| | | | MFC after: 1 week
* Remove hard-coded invocations of gcc; use cc(1) instead.markj2015-01-314-13/+7
| | | | MFC after: 1 week
* Remove a makefile that isn't present upstream.markj2015-01-311-13/+0
| | | | MFC after: 1 week
* Fix a number of DTrace scripting tests:markj2015-01-3111-27/+27
| | | | | | | | * Avoid hard-coding program paths. * Use -x when searching for oneself in ps(1) output. * Use the correct keyword (egid instead of pgid) in tst.egid.ksh. MFC after: 1 week
* Fix some proc provider tests:markj2015-01-313-12/+14
| | | | | | | | | | * Avoid hard-coding program paths, except when it's necessary in order to override the use of a shell builtin. * Translate struct proc through psinfo_t so that we can access process arguments via the pr_psargs field of psinfo_t. * Replace uses of pstop and prun with kill(1). MFC after: 1 week
* pause() isn't a system call on FreeBSD; use sigsuspend(2) instead.markj2015-01-301-2/+5
| | | | MFC after: 1 week
* The DTrace harness (dtest.pl) executes DTrace scripts with the -C flag,markj2015-01-303-3/+9
| | | | | | | | which causes dtrace(1) to run the C preprocessor on input scripts before executing them. Suppress some warnings emitted by the preprocessor which are confusing the DTrace lexer tests. MFC after: 1 week
* Include required headers in DTrace test programs.markj2015-01-3010-0/+15
| | | | MFC after: 1 week
* Replace Solaris identifiers and types with their FreeBSD equivalents.markj2015-01-3012-16/+16
| | | | MFC after: 1 week
* Use the correct field when reading the PID out of a struct proc.markj2015-01-304-4/+4
| | | | MFC after: 1 week
* When searching for an accompanying test program, look in the directorymarkj2015-01-301-1/+1
| | | | | | | containing the test script rather than the current directory. This is needed in order to run the DTrace tests under Kyua. MFC after: 1 week
* Remove a build artifact of the USDT tests.markj2014-10-151-11/+0
| | | | MFC after: 3 days
* Hook up support for userland CTF support in DTrace. This required somemarkj2014-10-031-1/+1
| | | | | | | | | | | | | | | | | | modifications to libproc to support fetching the CTF info for a given file. With this change, dtrace(1) is able to resolve type info for function and USDT probe arguments, and function return values. In particular, the args[n] syntax should now work for referencing arguments of userland probes, provided that the requisite CTF info is available. The uctf tests pass if the test programs are compiled with CTF info. The current infrastructure around the DTrace test suite doesn't support this yet. Differential Revision: https://reviews.freebsd.org/D891 MFC after: 1 month Relnotes: yes Sponsored by: EMC / Isilon Storage Division
* Implement a workaround to allow this test program to be compiled with clang.markj2014-09-171-2/+2
| | | | | | | | | It seems that if a pragma is used to define a weak alias for a local function, the pragma must appear after the function is defined. PR: 193056 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix a number of typos and programming errors in the userland CTF tests. Itmarkj2014-09-174-5/+9
| | | | | | | | seems that they would only pass by chance on illumos; on FreeBSD, they still fail since userland CTF is not yet supported. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix elfdump(1) usage in the userland CTF tests.markj2014-09-1610-10/+10
| | | | | | PR: 193110 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* MFV illumosrpaulo2014-06-2612-0/+1554
| | | | | | | | 4471 DTrace count() with histogram 4472 DTrace full width distribution histograms 4473 DTrace frequency trails MFC after: 2 weeks
* MFV illumosrpaulo2014-06-2624-0/+1118
| | | | | | | | | | 4474 DTrace Userland CTF Support 4475 DTrace userland Keyword 4476 DTrace tests should be better citizens 4479 pid provider types 4480 dof emulation is missing checks MFC after: 2 weeks
* MFV illumosrpaulo2014-06-2614-2/+790
| | | | | | 4477 DTrace should speak JSON MFC after: 2 weeks
* MFV illumos r266986:rpaulo2014-06-265-0/+454
| | | | | | | | 2915 DTrace in a zone should see "cpu", "curpsinfo", et al 2916 DTrace in a zone should be able to access fds[] 2917 DTrace in a zone should have limited provider access MFC after: 2 weeks
* Revert r267898.rpaulo2014-06-2612-1552/+0
|
* Bring the following change from the illumos-joyent repository:rpaulo2014-06-2612-0/+1552
| | | | | | | | | | | | commit 78e24ab6803bbe11ba37642624e1498ede5b239d Author: Bryan Cantrill <bryan@joyent.com> Date: Thu Oct 31 01:20:54 2013 OS-1688 DTrace count() with histogram OS-2360 DTrace full width distribution histograms OS-2361 DTrace frequency trails MFC after: 2 weeks
* MFV r266988:pfg2014-06-153-0/+168
| | | | | | | | | | | Merge from r258379 missed the tests. 4248 dtrace(1M) should never create DOF with empty probes section 4249 Only probes from the first DTrace object file will be included Illumos Revision: 54a20ab41aadcb81c53e72fc65886e964e9add59 MFC after: 5 days
* Fix tst.ZeroModuleProbes.d.ksh, which was incorrectly modified in r178534.markj2014-05-191-1/+1
| | | | | | Since "BEGIN" is not the name of a module, the test would just hang. MFC after: 3 days
OpenPOWER on IntegriCloud