summaryrefslogtreecommitdiff
path: root/deleted_files
diff options
context:
space:
mode:
authorahl <none@none>2007-04-01 23:38:22 -0700
committerahl <none@none>2007-04-01 23:38:22 -0700
commit73427c57f824c3ec3b396181b163f37d50c5b3b1 (patch)
tree3d76069130cfb33bce8dadeb9528309330291035 /deleted_files
parentbde2d83e45d88c83112106542d9c11e6ca01addc (diff)
downloadillumos-gate-73427c57f824c3ec3b396181b163f37d50c5b3b1.tar.gz
6484266 fasttrap needs to check for duplicate offsets
6497891 dtrace -G can fail due to uninitialized data 6504328 mapid disabling isn't enough 6512813 calendar-based DTrace tests fail when not in US/Pacific 6513027 tst.[v]fork.d needs updating for forksys() 6534984 fasttrap emulation code could use some work 6534988 remove the lint work-around from fasttrap 6534991 prepare the DTrace test suite for PIT --HG-- rename : usr/src/cmd/dtrace/test/pkg/Makefile => deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile rename : usr/src/cmd/dtrace/test/pkg/Makefile.pkg => deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile.pkg rename : usr/src/cmd/dtrace/test/pkg/common/bld_awk_pkginfo.ksh => deleted_files/usr/src/cmd/dtrace/test/pkg/common/bld_awk_pkginfo.ksh rename : usr/src/cmd/dtrace/test/pkg/common/copyright => deleted_files/usr/src/cmd/dtrace/test/pkg/common/copyright rename : usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d => deleted_files/usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d rename : usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d => deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d rename : usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d => deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d rename : usr/src/cmd/dtrace/test/pkg/common/README => usr/src/cmd/dtrace/test/README rename : usr/src/cmd/dtrace/test/cmd/jdtrace/src/Getopt.java => usr/src/cmd/dtrace/test/cmd/jdtrace/Getopt.java rename : usr/src/cmd/dtrace/test/cmd/jdtrace/src/JDTrace.java => usr/src/cmd/dtrace/test/cmd/jdtrace/JDTrace.java rename : usr/src/cmd/dtrace/test/cmd/jdtrace/src/jdtrace.c => usr/src/cmd/dtrace/test/cmd/jdtrace/jdtrace.c rename : usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d.out => usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.ksh.out rename : usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d.out => usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.ksh.out rename : usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d.out => usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.ksh.out rename : usr/src/cmd/dtrace/test/tst/i386/ustack/tst.annotated_helper.d => usr/src/cmd/dtrace/test/tst/i386/ustack/annotated_helper.d rename : usr/src/cmd/dtrace/test/tst/i386/ustack/tst.helper_helper.d => usr/src/cmd/dtrace/test/tst/i386/ustack/helper_helper.d rename : usr/src/cmd/dtrace/test/tst/sparc/ustack/tst.annotated_helper.d => usr/src/cmd/dtrace/test/tst/sparc/ustack/annotated_helper.d rename : usr/src/cmd/dtrace/test/tst/sparc/ustack/tst.helper_helper.d => usr/src/cmd/dtrace/test/tst/sparc/ustack/helper_helper.d rename : usr/src/cmd/dtrace/test/pkg/SUNWdtrt/Makefile => usr/src/pkgdefs/SUNWdtrt/Makefile rename : usr/src/cmd/dtrace/test/pkg/common/depend => usr/src/pkgdefs/SUNWdtrt/depend rename : usr/src/cmd/dtrace/test/pkg/SUNWdtrt/pkginfo.tmpl => usr/src/pkgdefs/SUNWdtrt/pkginfo.tmpl rename : usr/src/cmd/dtrace/test/pkg/SUNWdtrt/prototype_com => usr/src/pkgdefs/SUNWdtrt/prototype_com rename : usr/src/cmd/dtrace/test/pkg/SUNWdtrt/prototype_i386 => usr/src/pkgdefs/SUNWdtrt/prototype_i386 rename : usr/src/cmd/dtrace/test/pkg/SUNWdtrt/prototype_sparc => usr/src/pkgdefs/SUNWdtrt/prototype_sparc
Diffstat (limited to 'deleted_files')
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile29
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile.pkg77
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/pkg/common/bld_awk_pkginfo.ksh85
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/pkg/common/copyright2
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d44
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d38
-rw-r--r--deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d38
7 files changed, 313 insertions, 0 deletions
diff --git a/deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile b/deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile
new file mode 100644
index 0000000000..5160f39b78
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile
@@ -0,0 +1,29 @@
+#
+# 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 2006 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "%Z%%M% %I% %E% SMI"
+
+SUBDIRS = SUNWdtrt
+include ../Makefile.subdirs
diff --git a/deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile.pkg b/deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile.pkg
new file mode 100644
index 0000000000..d98ec5acf6
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/pkg/Makefile.pkg
@@ -0,0 +1,77 @@
+#
+# 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 2006 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "%Z%%M% %I% %E% SMI"
+
+include $(SRC)/Makefile.master
+
+PACKAGE :sh= basename `pwd`
+ROOTOPTPKG = $(ROOT)/opt/$(PACKAGE)
+PSTAMP :sh= echo "`echo \$LOGNAME`:`date +%Y-%m-%d`:`basename \$CODEMGR_WS`"
+
+DATAFILES = copyright depend
+FILES = $(DATAFILES) pkginfo prototype_com prototype_$(MACH)
+
+CLEANFILES = $(DATAFILES) pkginfo awk_pkginfo ../bld_awk_pkginfo
+CLOBBERFILES = $(PKGARCHIVE)/$(PACKAGE)
+
+.KEEP_STATE:
+
+all: $(FILES)
+
+lint:
+
+clean:
+ $(RM) $(CLEANFILES)
+
+clobber: clean
+ $(RM) -r $(CLOBBERFILES)
+
+$(PKGARCHIVE):
+ [ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE)
+
+$(DATAFILES): ../common/$$@
+ $(RM) $@; cp ../common/$@ $@
+
+awk_pkginfo: ../bld_awk_pkginfo
+ ../bld_awk_pkginfo -m $(MACH) -p "$(RELEASE)/$(VERSION)/$(USER)" -o $@
+
+pkginfo: pkginfo.tmpl awk_pkginfo
+ $(RM) $@; nawk -f awk_pkginfo $@.tmpl > $@
+
+pkg: $(PKGARCHIVE) FRC
+ pkgmk -f prototype_$(MACH) -d $(PKGARCHIVE) -r $(ROOT) -o \
+ -p $(PSTAMP) $(PACKAGE)
+
+../%: ../common/%.ksh
+ $(RM) $@
+ cp $< $@
+ chmod +x $@
+
+$(ROOTOPTPKG)/%: ../common/%
+ $(RM) $@
+ cp $< $@
+
+FRC:
diff --git a/deleted_files/usr/src/cmd/dtrace/test/pkg/common/bld_awk_pkginfo.ksh b/deleted_files/usr/src/cmd/dtrace/test/pkg/common/bld_awk_pkginfo.ksh
new file mode 100644
index 0000000000..f0598e27e9
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/pkg/common/bld_awk_pkginfo.ksh
@@ -0,0 +1,85 @@
+#!/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 2006 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "%Z%%M% %I% %E% SMI"
+
+usage()
+{
+ echo "Usage: $0 -p <prodver> -m <mach> -o <awk_script>"
+ exit 1
+}
+
+#
+# Awk strings
+#
+# Two VERSION patterns: one for Dewey decimal, one for Dewey plus ",REV=n".
+# The first has one '=' character and the second has two or more '=' characters.
+#
+VERSION1="VERSION=[^=]*$"
+VERSION2="VERSION=[^=]*=.*$"
+PRODVERS="^SUNW_PRODVERS="
+ARCH='ARCH=\"ISA\"'
+
+rev=$(date "+%Y.%m.%d.%H.%M")
+unset mach prodver awk_script
+
+while getopts o:p:m: c; do
+ case $c in
+ o) awk_script=$OPTARG ;;
+ m) mach=$OPTARG ;;
+ p) prodver=$OPTARG ;;
+ \?) usage ;;
+ esac
+done
+
+[[ -z "$prodver" || -z "$mach" || -z "$awk_script" ]] && usage
+[[ -f $awk_script ]] && rm -f $awk_script
+
+#
+# Build awk script which will process all the pkginfo.tmpl files.
+# The first VERSION pattern is replaced with a leading quotation mark.
+#
+cat << EOF > $awk_script
+/$VERSION1/ {
+ sub(/\=[^=]*$/,"=\"$rev\"")
+ print
+ next
+ }
+/$VERSION2/ {
+ sub(/\=[^=]*$/,"=$rev\"")
+ print
+ next
+ }
+/$PRODVERS/ {
+ printf "SUNW_PRODVERS=\"%s\"\n", "$prodver"
+ next
+ }
+/$ARCH/ {
+ printf "ARCH=\"%s\"\n", "$mach"
+ next
+ }
+{ print }
+EOF
diff --git a/deleted_files/usr/src/cmd/dtrace/test/pkg/common/copyright b/deleted_files/usr/src/cmd/dtrace/test/pkg/common/copyright
new file mode 100644
index 0000000000..081b6a0f31
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/pkg/common/copyright
@@ -0,0 +1,2 @@
+Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+Use is subject to license terms.
diff --git a/deleted_files/usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d b/deleted_files/usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d
new file mode 100644
index 0000000000..c7b14cf6d2
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/tst/common/printa/tst.walltimestamp.d
@@ -0,0 +1,44 @@
+/*
+ * 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 2006 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma D option quiet
+#pragma D option destructive
+
+BEGIN
+{
+ @foo = min(1075064400 * (hrtime_t)1000000000);
+ @bar = max(walltimestamp);
+ printa("%@T\n", @foo);
+ printa("%@Y\n", @foo);
+
+ freopen("/dev/null");
+ printa("%@T\n", @bar);
+ printa("%@Y\n", @bar);
+
+ exit(0);
+}
diff --git a/deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d b/deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d
new file mode 100644
index 0000000000..d7b41292a4
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printT.d
@@ -0,0 +1,38 @@
+/*
+ * 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 2006 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma D option quiet
+
+inline uint64_t NANOSEC = 1000000000;
+
+BEGIN
+{
+ printf("%T\n%T\n%T", (uint64_t)0, (uint64_t)1062609821 * NANOSEC,
+ (uint64_t)0x7fffffff * NANOSEC);
+ exit(0);
+}
diff --git a/deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d b/deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d
new file mode 100644
index 0000000000..007ff8700d
--- /dev/null
+++ b/deleted_files/usr/src/cmd/dtrace/test/tst/common/printf/tst.printY.d
@@ -0,0 +1,38 @@
+/*
+ * 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 2006 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma D option quiet
+
+inline uint64_t NANOSEC = 1000000000;
+
+BEGIN
+{
+ printf("%Y\n%Y\n%Y", (uint64_t)0, (uint64_t)1062609821 * NANOSEC,
+ (uint64_t)0x7fffffff * NANOSEC);
+ exit(0);
+}