From owner-svn-src-all@FreeBSD.ORG Mon Aug 2 12:13:34 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FF27106566C; Mon, 2 Aug 2010 12:13:34 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EEC458FC0A; Mon, 2 Aug 2010 12:13:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o72CDXt7018331; Mon, 2 Aug 2010 12:13:33 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o72CDXGK018304; Mon, 2 Aug 2010 12:13:33 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201008021213.o72CDXGK018304@svn.freebsd.org> From: Rui Paulo Date: Mon, 2 Aug 2010 12:13:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210753 - in vendor/opensolaris/dist: cmd/dtrace/test/cmd/baddof cmd/dtrace/test/cmd/chkargs cmd/dtrace/test/cmd/jdtrace cmd/dtrace/test/cmd/scripts cmd/dtrace/test/tst/common/aggs cmd/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2010 12:13:34 -0000 Author: rpaulo Date: Mon Aug 2 12:13:33 2010 New Revision: 210753 URL: http://svn.freebsd.org/changeset/base/210753 Log: Update DTrace userland code to the latest available. Summary of changes: - libdtrace changeset: 12902:3bb859a7330c user: Bryan Cantrill date: Fri Jul 23 17:34:02 2010 -0700 summary: 6679140 asymmetric alloc/dealloc activity can induce dynamic variable drops changeset: 12692:4341b447c069 user: Ali Bahrami date: Thu Jun 24 18:16:42 2010 -0600 summary: 6916796 OSnet mapfiles should use version 2 link-editor syntax changeset: 12507:501806a754d2 user: Alan Maguire date: Thu May 27 17:29:51 2010 -0400 summary: PSARC 2010/106 DTrace TCP and UDP providers changeset: 11798:1e7f1f154004 user: Roger A. Faulkner date: Sun Feb 28 18:42:20 2010 -0800 summary: PSARC 2009/657 delete obsolete system call traps changeset: 11466:d60272412fb0 user: Roger A. Faulkner date: Mon Jan 11 17:42:13 2010 -0800 summary: 6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads changeset: 11237:0d23e47ed228 user: Jonathan Haslam date: Thu Dec 03 13:39:19 2009 +0000 summary: 6795386 macro arguments and globbing in DTrace probe descriptions don't mix changeset: 10791:944abfb5b345 user: Jonathan Haslam date: Wed Oct 14 11:25:23 2009 +0100 summary: 6886953 large symbols lead to stack exhaustion changeset: 10326:8e3fbeec2d76 user: Siddheshwar Mahesh date: Mon Aug 17 13:26:49 2009 -0500 summary: 6868411 NFS provider generates error on ci_remote on RDMA operations changeset: 10207:87c40ea3fc4b user: jmcp date: Wed Jul 29 16:56:03 2009 -0700 summary: 6864230 hiho, hiho, it'ch chtime for CH to go changeset: 10044:2643c1cd9e2a user: Priya Krishnan date: Mon Jul 06 21:19:41 2009 -0400 summary: 6855027 iscsit.d breaks dtrace in osol based on snv_117 changeset: 9900:1b86d65a4f9e user: Ali Bahrami date: Thu Jun 18 13:16:39 2009 -0600 summary: 6851224 elf_getshnum() and elf_getshstrndx() incompatible with 2002 ELF gABI agreement changeset: 9885:a3d5e9d9e779 user: Robert Mastors date: Tue Jun 16 15:25:25 2009 -0500 summary: 6711844 assert: vp->v_shrlocks == 0L, file: ../../common/fs/vnode.c, line: 2333 changeset: 9881:741c9e4e094c user: Charles Ting date: Tue Jun 16 14:51:40 2009 -0400 summary: 6849606 SRP DTrace Probe for xfer-done misses completion of READ transfers changeset: 9829:e8059fcaee97 user: Charles Ting date: Tue Jun 09 10:11:35 2009 -0400 summary: 6804431 Add Dtrace probes to SRPT changeset: 9812:a2990074321f user: Priya Krishnan date: Mon Jun 08 09:49:48 2009 -0400 summary: 6847237 The iscsit.d DTrace translator should include iscsi.d for the definition of iscsiinfo_t changeset: 9721:4f7e194c7c37 user: Priya Krishnan date: Tue May 26 10:40:43 2009 -0400 summary: 6809997 COMSTAR iscsi target DTrace Provider needed changeset: 9625:8aa5731291b4 user: Sam Cramer date: Wed May 13 17:10:06 2009 -0700 summary: 6840354 "/usr/lib/dtrace/fc.d", line 59: syntax error near "fct_local_port_t" changeset: 9609:8874cc8d5e3f user: Sam Cramer date: Mon May 11 21:02:27 2009 -0700 summary: 6809580 fct DTrace providers needed for qlt changeset: 9578:c4b38ec17f4e user: Sam Cramer date: Fri May 08 12:12:40 2009 -0700 summary: 6809580 fct DTrace providers needed for qlt changeset: 9531:dc8924ef7839 user: Rafael Vanoni date: Mon May 04 11:48:15 2009 -0700 summary: 6730130 dtrace missing printf handler for stdev changeset: 9389:750ed3471e90 user: Vamsi Nagineni date: Fri Apr 17 06:26:47 2009 -0700 summary: 6812050 dtrace should translate curpsinfo->pr_contract changeset: 9085:ff7eb0bace56 user: Ali Bahrami date: Wed Mar 18 13:28:28 2009 -0600 summary: 6813909 generalize eh_frame support to non-amd64 platforms changeset: 8803:8c01b39012c9 user: Jonathan Haslam date: Fri Feb 13 07:13:13 2009 +0000 summary: PSARC 2008/480 DTrace CPC Provider changeset: 8744:03d5725cda56 user: Ali Bahrami date: Tue Feb 10 09:38:02 2009 -0700 summary: 6798660 Cadmium .NOT file processing problem with CWD relative file paths changeset: 8337:079ecc003ca6 user: Jonathan Haslam date: Thu Dec 11 11:26:47 2008 +0000 summary: 6750659 drti.o crashes app due to corrupt environment changeset: 7991:d3b751ef3d85 user: Jonathan Haslam date: Mon Nov 03 10:26:23 2008 +0000 summary: 6738982 Representative thread after DTrace stop() action is incorrect changeset: 7208:568549b138d8 user: vv149972 date: Mon Jul 28 23:14:31 2008 -0700 summary: 6696397 NFS v3 provider reports all UDP clients as 0.0.0.0 changeset: 6878:360e73ea6b0c user: brendan date: Fri Jun 13 19:06:55 2008 -0700 summary: PSARC 2008/302 DTrace IP Provider changeset: 6554:b5817e112852 user: ahl date: Mon May 05 14:38:24 2008 -0700 summary: 6677812 race between dtrace activities in non-local zones ---- - ctf tools: changeset: 12177:800b7f847f1e user: Surya Prakki date: Sun Apr 18 23:59:57 2010 -0700 summary: 6941452 ctfconvert fails on VLAs with code generated by SS12u1 changeset: 11432:c1c450bf62f2 user: John Levon date: Tue Jan 05 06:57:53 2010 -0800 summary: 6905711 anonymous and empty SOUs crash ctfconvert changeset: 11227:cd2ac59c39f2 user: Ali Bahrami date: Wed Dec 02 15:37:55 2009 -0700 summary: 6900241 ld should track SHT_GROUP sections by symbol name, not section name changeset: 10380:5394a7172e1f user: Ali Bahrami date: Tue Aug 25 13:51:43 2009 -0600 summary: 6866605 SUNWonbld ELF analysis tools need overhaul (fix ctfmerge/libc dependency) changeset: 10207:87c40ea3fc4b user: jmcp date: Wed Jul 29 16:56:03 2009 -0700 summary: 6864230 hiho, hiho, it'ch chtime for CH to go changeset: 10206:51f52702df72 user: John Levon date: Wed Jul 29 14:36:30 2009 -0700 summary: 6854065 CTF tools should error out given 1024+-member structures changeset: 7230:429b4f7acf1a user: sn199410 date: Wed Jul 30 16:10:30 2008 -0700 summary: 6575435 ctf tools cannot handle C99 VLAs ("variable length arrays") changeset: 6936:72189fcd99e4 user: sommerfe date: Sun Jun 22 09:13:44 2008 -0700 summary: 6716983 left-for-dead ctfmerge worker threads awake to take out maker ---- - dtrace command utility: changeset: 12507:501806a754d2 user: Alan Maguire date: Thu May 27 17:29:51 2010 -0400 summary: PSARC 2010/106 DTrace TCP and UDP providers changeset: 11838:32bb5d254240 user: Liane Praza date: Tue Mar 02 19:29:26 2010 -0700 summary: PSARC 2010/067 Interim modernization updates changeset: 11270:47a962fe7b45 user: Frank Van Der Linden date: Mon Dec 07 13:47:36 2009 -0800 summary: 6907170 fix for 6875656 left out updates to DTrace test suite changeset: 11237:0d23e47ed228 user: Jonathan Haslam date: Thu Dec 03 13:39:19 2009 +0000 summary: 6795386 macro arguments and globbing in DTrace probe descriptions don't mix changeset: 11153:dec430d20576 user: Frank Van Der Linden date: Sun Nov 22 19:22:26 2009 -0800 summary: 6875656 xdt needs to support more XenTrace probes changeset: 11102:b91faef0c984 user: Gavin Maltby date: Thu Nov 19 15:28:11 2009 +1100 summary: PSARC/2009/554 door_xcreate - extended door creation interface for private doors changeset: 11066:cebb50cbe4f9 user: Rafael Vanoni date: Fri Nov 13 01:32:32 2009 -0800 summary: PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling changeset: 10791:944abfb5b345 user: Jonathan Haslam date: Wed Oct 14 11:25:23 2009 +0100 summary: 6886953 large symbols lead to stack exhaustion changeset: 10207:87c40ea3fc4b user: jmcp date: Wed Jul 29 16:56:03 2009 -0700 summary: 6864230 hiho, hiho, it'ch chtime for CH to go changeset: 9531:dc8924ef7839 user: Rafael Vanoni date: Mon May 04 11:48:15 2009 -0700 summary: 6730130 dtrace missing printf handler for stdev changeset: 9397:e667d620a75c user: Jonathan Haslam date: Mon Apr 20 07:58:44 2009 +0100 summary: 6806023 cpc provider event name validation needs to be a bit tighter changeset: 8803:8c01b39012c9 user: Jonathan Haslam date: Fri Feb 13 07:13:13 2009 +0000 summary: PSARC 2008/480 DTrace CPC Provider changeset: 8605:0189cb9c5358 user: Jonathan Haslam date: Thu Jan 22 12:09:13 2009 +0000 summary: 6749441 intrstat(1M) shows zeroed values after suspend/resume changeset: 8337:079ecc003ca6 user: Jonathan Haslam date: Thu Dec 11 11:26:47 2008 +0000 summary: 6750659 drti.o crashes app due to corrupt environment changeset: 8287:771477e4b843 user: John Sonnenschein date: Fri Dec 05 19:08:38 2008 -0800 summary: PSARC 2005/462 Removal of Perl 5.6.1 from Solaris 11 changeset: 7991:d3b751ef3d85 user: Jonathan Haslam date: Mon Nov 03 10:26:23 2008 +0000 summary: 6738982 Representative thread after DTrace stop() action is incorrect changeset: 7502:da077e5d991e user: Aruna Ramakrishna date: Sat Sep 06 05:36:02 2008 -0400 summary: 6706947 tcp_trace should be replaced with dtrace probes. changeset: 7484:a48e950bad22 user: Tom Erickson date: Wed Sep 03 15:14:25 2008 -0700 summary: 6737926 getAggregate() method fails to specify anonymous aggregation explicitly changeset: 7299:d9a056040774 user: John Beck date: Thu Aug 07 12:44:26 2008 -0700 summary: 6734627 protocmp complains about opt/SUNWdtrt/README after TW -> Hg switch changeset: 6998:58787ea78303 user: brendan date: Tue Jul 01 18:28:22 2008 -0700 summary: 6721426 tst.sdtargs.d passes despite dtrace "invalid address" error changeset: 6878:360e73ea6b0c user: brendan date: Fri Jun 13 19:06:55 2008 -0700 summary: PSARC 2008/302 DTrace IP Provider changeset: 6670:1961a43f2335 user: tariq date: Tue May 20 15:08:16 2008 -0700 summary: 6685348 Hypervisor event provider for DTrace changeset: 6554:b5817e112852 user: ahl date: Mon May 05 14:38:24 2008 -0700 summary: 6677812 race between dtrace activities in non-local zones changeset: 6543:465433824d87 user: rie date: Fri May 02 15:01:06 2008 -0700 summary: 6683064 check_rtime could do with some spring cleaning Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_AGG_SCALAR.stddevtoofew.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_PROTO_LEN.stddevnoarg.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_PROTO_LEN.stddevtoomany.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.clearstddev.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.clearstddev.d.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.lowfrequency.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.malformedoverflow.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.nonexistentevent.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cpcvscpustatpart1.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cpcvscpustatpart2.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cputrackfailtostart.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cputrackterminates.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.toomanyenablings.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/tst.allcpus.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/tst.genericevent.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/tst.platformevent.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/get.ipv6remote.pl (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4localicmp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4localicmp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4localtcp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4localtcp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4localudp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4localudp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4remoteicmp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4remoteicmp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4remotetcp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4remotetcp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4remoteudp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv4remoteudp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv6localicmp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv6localicmp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv6remoteicmp.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.ipv6remoteicmp.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.localtcpstate.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.localtcpstate.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.remotetcpstate.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/ip/tst.remotetcpstate.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/java_api/src/TestGetAggregate.java vendor/opensolaris/dist/cmd/dtrace/test/tst/common/java_api/tst.GetAggregate.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/misc/tst.macroglob.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/misc/tst.macroglob.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PDESC_ZERO.badlib.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_CREATEFAIL.many.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_FUNC.badfunc.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_LIB.libdash.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_NAME.alldash.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_NAME.badname.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_NAME.globdash.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/err.D_PROC_OFF.toobig.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/tst.coverage.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/tst.emptystack.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/tst.killonerror.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/plockstat/tst.available.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/plockstat/tst.libmap.exe (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/printa/tst.largeusersym.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/sdt/ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/sdt/tst.sdtargs.c (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/common/sdt/tst.sdtargs.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/speculation/err.D_AGG_SPEC.SpeculateWithStddev.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/usdt/tst.corruptenv.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/ vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/xdt/ vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/xdt/tst.basic.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/xdt/tst.hvmenable.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/xdt/tst.memenable.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/xdt/tst.schedargs.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/i86xpv/xdt/tst.schedenable.ksh (contents, props changed) vendor/opensolaris/dist/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.exe (contents, props changed) vendor/opensolaris/dist/lib/libdtrace/common/mkerrno.sh (contents, props changed) vendor/opensolaris/dist/lib/libdtrace/common/mksignal.sh (contents, props changed) Modified: vendor/opensolaris/dist/cmd/dtrace/test/cmd/baddof/baddof.c vendor/opensolaris/dist/cmd/dtrace/test/cmd/chkargs/chkargs.c vendor/opensolaris/dist/cmd/dtrace/test/cmd/jdtrace/exception.lst vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dstyle.pl vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dtest.pl vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs1.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/java_api/src/TestFunctionLookup.java vendor/opensolaris/dist/cmd/dtrace/test/tst/common/java_api/tst.FunctionLookup.ksh.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/pid/tst.probemod.ksh vendor/opensolaris/dist/cmd/dtrace/test/tst/common/printa/tst.basics.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/printa/tst.basics.d.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/printf/tst.str.d vendor/opensolaris/dist/cmd/dtrace/test/tst/common/printf/tst.str.d.out vendor/opensolaris/dist/cmd/dtrace/test/tst/common/sysevent/tst.post_chan.c vendor/opensolaris/dist/cmd/dtrace/test/tst/i386/funcs/tst.badcopyin.d vendor/opensolaris/dist/common/avl/avl.c vendor/opensolaris/dist/lib/libdtrace/common/drti.c vendor/opensolaris/dist/lib/libdtrace/common/dt_cc.c vendor/opensolaris/dist/lib/libdtrace/common/dt_consume.c vendor/opensolaris/dist/lib/libdtrace/common/dt_dof.c vendor/opensolaris/dist/lib/libdtrace/common/dt_error.c vendor/opensolaris/dist/lib/libdtrace/common/dt_impl.h vendor/opensolaris/dist/lib/libdtrace/common/dt_lex.l vendor/opensolaris/dist/lib/libdtrace/common/dt_link.c vendor/opensolaris/dist/lib/libdtrace/common/dt_module.c vendor/opensolaris/dist/lib/libdtrace/common/dt_open.c vendor/opensolaris/dist/lib/libdtrace/common/dt_pid.c vendor/opensolaris/dist/lib/libdtrace/common/dt_printf.c vendor/opensolaris/dist/lib/libdtrace/common/dt_proc.c vendor/opensolaris/dist/lib/libdtrace/common/dt_program.c vendor/opensolaris/dist/lib/libdtrace/common/dt_string.c vendor/opensolaris/dist/lib/libdtrace/common/dt_subr.c vendor/opensolaris/dist/lib/libgen/common/gmatch.c vendor/opensolaris/dist/tools/ctf/cvt/ctf.c vendor/opensolaris/dist/tools/ctf/cvt/ctfmerge.c vendor/opensolaris/dist/tools/ctf/cvt/ctfmerge.h vendor/opensolaris/dist/tools/ctf/cvt/st_parse.c vendor/opensolaris/dist/tools/ctf/cvt/tdata.c Modified: vendor/opensolaris/dist/cmd/dtrace/test/cmd/baddof/baddof.c ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/cmd/baddof/baddof.c Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/cmd/baddof/baddof.c Mon Aug 2 12:13:33 2010 (r210753) @@ -20,12 +20,10 @@ */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -162,7 +160,7 @@ main(int argc, char **argv) FILE *fp; unsigned char *dof, *copy; - if (argc < 1) + if (argc < 2) fatal("expected D script as argument\n"); if ((fp = fopen(filename, "r")) == NULL) Modified: vendor/opensolaris/dist/cmd/dtrace/test/cmd/chkargs/chkargs.c ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/cmd/chkargs/chkargs.c Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/cmd/chkargs/chkargs.c Mon Aug 2 12:13:33 2010 (r210753) @@ -20,12 +20,10 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -35,6 +33,7 @@ static int g_errs; static int g_fd; static int g_verbose; static int g_errexit; +static char *g_progname; static int probe(dtrace_hdl_t *dtp, const dtrace_probedesc_t *pdp, void *data) @@ -91,9 +90,11 @@ main(int argc, char *argv[]) int err, c; char *p; + g_progname = argv[0]; + if ((dtp = dtrace_open(DTRACE_VERSION, 0, &err)) == NULL) { (void) fprintf(stderr, "%s: failed to open dtrace: %s\n", - argv[0], dtrace_errmsg(dtp, err)); + g_progname, dtrace_errmsg(dtp, err)); return (1); } @@ -111,7 +112,7 @@ main(int argc, char *argv[]) if (dtrace_setopt(dtp, optarg, p) != 0) { (void) fprintf(stderr, "%s: failed to set " - "option -x %s: %s\n", argv[0], optarg, + "option -x %s: %s\n", g_progname, optarg, dtrace_errmsg(dtp, dtrace_errno(dtp))); return (2); } @@ -119,7 +120,7 @@ main(int argc, char *argv[]) default: (void) fprintf(stderr, "Usage: %s [-ev] " - "[-x opt[=arg]] [probedesc]\n", argv[0]); + "[-x opt[=arg]] [probedesc]\n", g_progname); return (2); } } @@ -128,9 +129,9 @@ main(int argc, char *argv[]) argc -= optind; if (argc > 0) { - if (dtrace_str2desc(dtp, DTRACE_PROBESPEC_NAME, argv[1], &pd)) { + if (dtrace_str2desc(dtp, DTRACE_PROBESPEC_NAME, argv[0], &pd)) { (void) fprintf(stderr, "%s: invalid probe description " - "%s: %s\n", argv[0], argv[1], + "%s: %s\n", g_progname, argv[0], dtrace_errmsg(dtp, dtrace_errno(dtp))); return (2); } Modified: vendor/opensolaris/dist/cmd/dtrace/test/cmd/jdtrace/exception.lst ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/cmd/jdtrace/exception.lst Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/cmd/jdtrace/exception.lst Mon Aug 2 12:13:33 2010 (r210753) @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" +# ident "%Z%%M% %I% %E% SMI" # Exception list: names tests that are bypassed when running in Java # mode (relative to /opt/SUNWdtrt/tst) @@ -49,6 +49,7 @@ common/usdt/tst.dlclose2.ksh common/usdt/tst.dlclose3.ksh common/usdt/tst.eliminate.ksh common/usdt/tst.enabled.ksh +common/usdt/tst.enabled2.ksh common/usdt/tst.entryreturn.ksh common/usdt/tst.fork.ksh common/usdt/tst.header.ksh Modified: vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dstyle.pl ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dstyle.pl Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dstyle.pl Mon Aug 2 12:13:33 2010 (r210753) @@ -21,12 +21,11 @@ # # -# Copyright 2006 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" -require 5.6.1; +require 5.8.4; $PNAME = $0; $PNAME =~ s:.*/::; Modified: vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dtest.pl ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dtest.pl Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/cmd/scripts/dtest.pl Mon Aug 2 12:13:33 2010 (r210753) @@ -24,9 +24,8 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -require 5.6.1; +require 5.8.4; use File::Find; use File::Basename; @@ -40,6 +39,7 @@ $OPTSTR = 'abd:fghi:jlnqsx:'; $USAGE = "Usage: $PNAME [-abfghjlnqs] [-d dir] [-i isa] " . "[-x opt[=arg]] [file | dir ...]\n"; ($MACH = `uname -p`) =~ s/\W*\n//; +($PLATFORM = `uname -i`) =~ s/\W*\n//; @dtrace_argv = (); @@ -215,17 +215,17 @@ sub is_exception { } # -# Iterate over the set of test files specified on the command-line or by -# a find on "$defdir/common" and "$defdir/$MACH" and execute each one. -# If the test file is executable, we fork and exec it. If the test is a -# .ksh file, we run it with $ksh_path. Otherwise we run dtrace -s on it. -# If the file is named tst.* we assume it should return exit status 0. -# If the file is named err.* we assume it should return exit status 1. -# If the file is named err.D_[A-Z0-9]+[.*].d we use dtrace -xerrtags and -# examine stderr to ensure that a matching error tag was produced. -# If the file is named drp.[A-Z0-9]+[.*].d we use dtrace -xdroptags and -# examine stderr to ensure that a matching drop tag was produced. -# If any *.out or *.err files are found we perform output comparisons. +# Iterate over the set of test files specified on the command-line or by a find +# on "$defdir/common", "$defdir/$MACH" and "$defdir/$PLATFORM" and execute each +# one. If the test file is executable, we fork and exec it. If the test is a +# .ksh file, we run it with $ksh_path. Otherwise we run dtrace -s on it. If +# the file is named tst.* we assume it should return exit status 0. If the +# file is named err.* we assume it should return exit status 1. If the file is +# named err.D_[A-Z0-9]+[.*].d we use dtrace -xerrtags and examine stderr to +# ensure that a matching error tag was produced. If the file is named +# drp.[A-Z0-9]+[.*].d we use dtrace -xdroptags and examine stderr to ensure +# that a matching drop tag was produced. If any *.out or *.err files are found +# we perform output comparisons. # # run_tests takes two arguments: The first is the pathname of the dtrace # command to invoke when running the tests. The second is the pathname @@ -548,6 +548,7 @@ $bindir = -d $dt_bin ? $dt_bin : '.'; find(\&wanted, "$defdir/common") if (scalar(@ARGV) == 0); find(\&wanted, "$defdir/$MACH") if (scalar(@ARGV) == 0); +find(\&wanted, "$defdir/$PLATFORM") if (scalar(@ARGV) == 0); die $USAGE if (scalar(@files) == 0); $dtrace_path = '/usr/sbin/dtrace'; Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_AGG_SCALAR.stddevtoofew.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_AGG_SCALAR.stddevtoofew.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,41 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * ASSERTION: + * stddev() should not accept a non-scalar value + * + * SECTION: Aggregations/Aggregations + * + */ + +#pragma D option quiet + +BEGIN +{ + @a[pid] = stddev(probefunc); +} + Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_PROTO_LEN.stddevnoarg.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_PROTO_LEN.stddevnoarg.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,41 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * ASSERTION: + * stddev() should not accept a call with no arguments + * + * SECTION: Aggregations/Aggregations + * + */ + +#pragma D option quiet + +BEGIN +{ + @a[1] = stddev(); +} + Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_PROTO_LEN.stddevtoomany.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/err.D_PROTO_LEN.stddevtoomany.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,41 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * ASSERTION: + * stddev() should not have more than one argument + * + * SECTION: Aggregations/Aggregations + * + */ + +#pragma D option quiet + +BEGIN +{ + @a[1] = stddev(1, 2); +} + Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.clearstddev.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.clearstddev.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,57 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * ASSERTION: + * Positive stddev() test + * + * SECTION: Aggregations/Aggregations + * + * NOTES: + * Verifies that printing a clear()'d aggregation with an stddev() + * aggregation function doesn't cause problems. + * + */ + +#pragma D option quiet + +tick-10ms +/i++ < 5/ +{ + @a = stddev(timestamp); +} + +tick-10ms +/i == 5/ +{ + exit(2); +} + +END +{ + clear(@a); + exit(0); +} Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.clearstddev.d.out ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.clearstddev.d.out Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,2 @@ + + 0 Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs1.d ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs1.d Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs1.d Mon Aug 2 12:13:33 2010 (r210753) @@ -20,15 +20,13 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * ASSERTION: - * Multiple aggregates can be used within the same D script. + * Multiple aggregates can be used within the same D script. * * SECTION: Aggregations/Aggregations * @@ -52,9 +50,11 @@ tick-10ms @c[pid] = avg(new_time); @d[pid] = sum(new_time); @e[pid] = quantize(new_time); - @f[timestamp] = max(new_time); - @g[timestamp] = quantize(new_time); - @h[timestamp] = lquantize(new_time, 0, 10000, 1000); + @f[pid] = stddev(new_time); + @g[timestamp] = max(new_time); + @h[timestamp] = quantize(new_time); + @i[timestamp] = lquantize(new_time, 0, 10000, 1000); + time_1 = time_2; i++; } Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d Mon Aug 2 12:13:33 2010 (r210753) @@ -20,18 +20,16 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * ASSERTION: - * Test multiple aggregations and the default output order + * Test multiple aggregations and the default output order * * SECTION: Aggregations/Aggregations; - * Aggregations/Output + * Aggregations/Output * */ @@ -51,6 +49,7 @@ tick-10ms @d = max(i); @e = quantize(i); @f = lquantize(i, 0, 1000, 100); + @g = stddev(i); i += 100; } Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d.out ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d.out Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs2.d.out Mon Aug 2 12:13:33 2010 (r210753) @@ -34,3 +34,4 @@ 900 |@@@@ 1 >= 1000 | 0 + 287 Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d Mon Aug 2 12:13:33 2010 (r210753) @@ -20,19 +20,17 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * ASSERTION: - * Test multiple aggregations and overriding default order with - * printa() statements. + * Test multiple aggregations and overriding default order with + * printa() statements. * * SECTION: Aggregations/Aggregations; - * Aggregations/Output + * Aggregations/Output * * NOTES: This is a simple verifiable test. * @@ -55,6 +53,7 @@ tick-10ms @e = max(i); @f = quantize(i); @g = lquantize(i, 0, 1000, 100); + @h = stddev(i); i += 100; } @@ -62,6 +61,7 @@ tick-10ms tick-10ms /i == 1000/ { + printa("%@d\n", @h); printa("%@d\n", @g); printa("%@d\n", @f); printa("%@d\n", @e); Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d.out ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d.out Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.multiaggs3.d.out Mon Aug 2 12:13:33 2010 (r210753) @@ -1,3 +1,4 @@ +287 value ------------- Distribution ------------- count < 0 | 0 Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d Mon Aug 2 12:13:33 2010 (r210753) @@ -20,20 +20,19 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - - /* * ASSERTION: - * Positive stddev() test + * Positive stddev() test * * SECTION: Aggregations/Aggregations * * NOTES: This is a simple verifiable positive test of the stddev() function. + * printa() for one aggregation, default printing behavior for the other + * so that we exercise both code paths. */ #pragma D option quiet @@ -60,5 +59,6 @@ BEGIN @b = stddev(-5000000700); @b = stddev(-5000000800); @b = stddev(-5000000900); + printa("%@d\n", @a); exit(0); } Modified: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d.out ============================================================================== --- vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d.out Mon Aug 2 12:13:02 2010 (r210752) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/aggs/tst.stddev.d.out Mon Aug 2 12:13:33 2010 (r210753) @@ -1,3 +1,3 @@ +287 287 - 287 Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.lowfrequency.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.lowfrequency.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * Test to check that attempting to enable a valid event with a frequency + * lower than the default platform limit will fail. + * + * This test will fail if: + * 1) The system under test does not define the 'PAPI_tot_ins' event. + * 2) The 'dcpc-min-overflow' variable in dcpc.conf has been modified. + */ + +#pragma D option quiet + +BEGIN +{ + exit(0); +} + +cpc:::PAPI_tot_ins-all-100 +{ +} Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.malformedoverflow.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.malformedoverflow.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,40 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * Tests that specifying an overflow value containing extraneous characters + * (only digits are allowed) will fail. + */ + +BEGIN +{ + exit(0); +} + +cpc:::PAPI_tot_ins-all-10000bonehead +{ + @[probename] = count(); +} Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.nonexistentevent.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.D_PDESC_ZERO.nonexistentevent.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,40 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* + * Tests that attempting to enable a probe containing a non existent event + * will fail. + */ + +BEGIN +{ + exit(0); +} + +cpc:::PAPI_cpc_bad-all-10000 +{ + @[probename] = count(); +} Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cpcvscpustatpart1.ksh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cpcvscpustatpart1.ksh Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,78 @@ +#!/bin/ksh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# + + +# +# This tests that cpustat(1) should fail to start if the cpc provider +# is already calling the shots. +# +# This script will fail if: +# 1) The system under test does not define the 'PAPI_tot_ins' +# generic event. + +script() +{ + $dtrace -o $dtraceout -s /dev/stdin <' + exit 2 +fi + +dtrace=$1 +dtraceout=/tmp/dtrace.out.$$ +script 2>/dev/null & +timeout=15 + +# +# Sleep while the above script fires into life. To guard against dtrace dying +# and us sleeping forever we allow 15 secs for this to happen. This should be +# enough for even the slowest systems. +# +while [ ! -f $dtraceout ]; do + sleep 1 + timeout=$(($timeout-1)) + if [ $timeout -eq 0 ]; then + echo "dtrace failed to start. Exiting." + exit 1 + fi +done + +cpustat -c PAPI_tot_ins 1 5 +status=$? + +rm $dtraceout + +exit $status Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cpcvscpustatpart2.ksh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cpcvscpustatpart2.ksh Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,70 @@ +#!/bin/ksh -p +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# + + +# +# This tests that enablings from the cpc provider will fail if cpustat(1) is +# already master of the universe. +# +# This script will fail if: +# 1) The system under test does not define the 'PAPI_tot_ins' +# generic event. + +script() +{ + $dtrace -s /dev/stdin <' + exit 2 +fi + +dtrace=$1 +dtraceout=/tmp/dtrace.out.$$ + +cpustat -c PAPI_tot_ins 1 20 & +pid=$! +sleep 5 +script 2>/dev/null + +status=$? + +kill $pid +exit $status Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cputrackfailtostart.ksh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cputrackfailtostart.ksh Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,77 @@ +#!/bin/ksh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. + +# +# This script ensures that cputrack(1M) will fail to start when the cpc +# provider has active enablings. +# +# The script will fail if: +# 1) The system under test does not define the 'PAPI_tot_ins' event. +# + +script() +{ + $dtrace -o $dtraceout -s /dev/stdin <' + exit 2 +fi + +dtrace=$1 +dtraceout=/tmp/dtrace.out.$$ +script 2>/dev/null & +timeout=15 + +# +# Sleep while the above script fires into life. To guard against dtrace dying +# and us sleeping forever we allow 15 secs for this to happen. This should be +# enough for even the slowest systems. +# +while [ ! -f $dtraceout ]; do + sleep 1 + timeout=$(($timeout-1)) + if [ $timeout -eq 0 ]; then + echo "dtrace failed to start. Exiting." + exit 1 + fi +done + +cputrack -c PAPI_tot_ins sleep 10 +status=$? + +rm $dtraceout + +exit $status Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cputrackterminates.ksh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.cputrackterminates.ksh Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,70 @@ +#!/bin/ksh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. + +# +# This script ensures that cputrack(1) will terminate when the cpc provider +# kicks into life. +# +# The script will fail if: +# 1) The system under test does not define the 'PAPI_tot_ins' event. +# + +script() +{ + $dtrace -s /dev/stdin < 10/ + { + exit(0); + } +EOF +} + +if [ $# != 1 ]; then + echo expected one argument: '<'dtrace-path'>' + exit 2 +fi + +dtrace=$1 + +cputrack -c PAPI_tot_ins sleep 20 & +cputrack_pid=$! +sleep 5 +script 2>/dev/null & + +wait $cputrack_pid +status=$? + +rm $dtraceout + +exit $status Added: vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.toomanyenablings.d ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/opensolaris/dist/cmd/dtrace/test/tst/common/cpc/err.toomanyenablings.d Mon Aug 2 12:13:33 2010 (r210753) @@ -0,0 +1,55 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***