aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinsoo Choo <minsoochoo0122@proton.me>2025-11-29 19:02:42 +0000
committerMark Johnston <markj@FreeBSD.org>2025-12-01 14:19:18 +0000
commitd667cc77ba20082c16457ef4ae7f3060d9ab70b1 (patch)
tree0bb166c0e816539855f67e9e927caa9af2eb174c
parent72b114169bd56ec157d746a2df87b3a4617065b3 (diff)
dtrace: remove sparc tests
Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me> Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/1907
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/arrays/tst.uregsarray.d85
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.d40
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.exe29
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d70
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d.out23
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.s81
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.d78
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.s63
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.d73
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.s59
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/usdt/tst.tailcall.ksh132
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/annotated_helper.d32
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/helper_helper.d32
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.c43
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d35
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d.out4
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.d46
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.s44
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.c81
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d44
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d.out4
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.trapstat.ksh87
22 files changed, 0 insertions, 1185 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/arrays/tst.uregsarray.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/arrays/tst.uregsarray.d
deleted file mode 100644
index 3ef38983ad52..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/arrays/tst.uregsarray.d
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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"
-
-
-/*
- * ASSERTION:
- * Positive test to make sure that we can invoke sparc
- * ureg[] aliases.
- *
- * SECTION: User Process Tracing/uregs Array
- *
- * NOTES: This test does no verification - the value of the output
- * is not deterministic.
- */
-
-#pragma D option quiet
-
-BEGIN
-{
- printf("R_G0 = 0x%x\n", uregs[R_G0]);
- printf("R_G1 = 0x%x\n", uregs[R_G1]);
- printf("R_G2 = 0x%x\n", uregs[R_G2]);
- printf("R_G3 = 0x%x\n", uregs[R_G3]);
- printf("R_G4 = 0x%x\n", uregs[R_G4]);
- printf("R_G5 = 0x%x\n", uregs[R_G5]);
- printf("R_G6 = 0x%x\n", uregs[R_G6]);
- printf("R_G7 = 0x%x\n", uregs[R_G7]);
- printf("R_O0 = 0x%x\n", uregs[R_O0]);
- printf("R_O1 = 0x%x\n", uregs[R_O1]);
- printf("R_O2 = 0x%x\n", uregs[R_O2]);
- printf("R_O3 = 0x%x\n", uregs[R_O3]);
- printf("R_O4 = 0x%x\n", uregs[R_O4]);
- printf("R_O5 = 0x%x\n", uregs[R_O5]);
- printf("R_O6 = 0x%x\n", uregs[R_O6]);
- printf("R_O7 = 0x%x\n", uregs[R_O7]);
- printf("R_L0 = 0x%x\n", uregs[R_L0]);
- printf("R_L1 = 0x%x\n", uregs[R_L1]);
- printf("R_L2 = 0x%x\n", uregs[R_L2]);
- printf("R_L3 = 0x%x\n", uregs[R_L3]);
- printf("R_L4 = 0x%x\n", uregs[R_L4]);
- printf("R_L5 = 0x%x\n", uregs[R_L5]);
- printf("R_L6 = 0x%x\n", uregs[R_L6]);
- printf("R_L7 = 0x%x\n", uregs[R_L7]);
- printf("R_I0 = 0x%x\n", uregs[R_I0]);
- printf("R_I1 = 0x%x\n", uregs[R_I1]);
- printf("R_I2 = 0x%x\n", uregs[R_I2]);
- printf("R_I3 = 0x%x\n", uregs[R_I3]);
- printf("R_I4 = 0x%x\n", uregs[R_I4]);
- printf("R_I5 = 0x%x\n", uregs[R_I5]);
- printf("R_I6 = 0x%x\n", uregs[R_I6]);
- printf("R_I7 = 0x%x\n", uregs[R_I7]);
- printf("R_CCR = 0x%x\n", uregs[R_CCR]);
- printf("R_PC = 0x%x\n", uregs[R_PC]);
- printf("R_NPC = 0x%x\n", uregs[R_NPC]);
- printf("R_Y = 0x%x\n", uregs[R_Y]);
- printf("R_ASI = 0x%x\n", uregs[R_ASI]);
- printf("R_FPRS = 0x%x\n", uregs[R_FPRS]);
- exit(0);
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.d
deleted file mode 100644
index 3e4662740816..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.d
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * 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"
-
-/*
- * ASSERTION: On SPARC, you can't trace misaligned offsets
- *
- * SECTION: User Process Tracing/pid Provider
- *
- * NOTES:
- *
- */
-
-pid$1:a.out:main:7
-{
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.exe b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.exe
deleted file mode 100644
index 595db1de33da..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/err.D_PROC_ALIGN.misaligned.exe
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/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 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
-
-sleep 1000000
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d
deleted file mode 100644
index cf1dc02ec47c..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/*
- * ASSERTION: Trace all instructions in the function 'test' to verify that
- * the branches are emulated correctly.
- */
-
-#pragma D option destructive
-#pragma D option quiet
-
-pid$1:a.out:waiting:entry
-{
- this->a = (char *)alloca(1);
- *this->a = 1;
- copyout(this->a, arg0, 1);
-}
-
-pid$1:a.out:test:
-{
- printf("%s:%s\n", probefunc, probename);
-}
-
-syscall::rexit:entry
-/pid == $1/
-{
- exit(0);
-}
-
-
-BEGIN
-{
- /*
- * Let's just do this for 5 seconds.
- */
- timeout = timestamp + 5000000000;
-}
-
-profile:::tick-4
-/timestamp > timeout/
-{
- trace("test timed out");
- exit(1);
-}
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d.out b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d.out
deleted file mode 100644
index 8559271e4aac..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.d.out
+++ /dev/null
@@ -1,23 +0,0 @@
-test:entry
-test:0
-test:4
-test:8
-test:c
-test:10
-test:14
-test:18
-test:1c
-test:20
-test:24
-test:28
-test:2c
-test:30
-test:34
-test:38
-test:3c
-test:40
-test:44
-test:48
-test:4c
-test:return
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.s b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.s
deleted file mode 100644
index dfa7d27074f2..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.br.s
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include <sys/asm_linkage.h>
-
- DGDEF(__fsr_init_value)
- .word 0
-
- ENTRY(waiting)
- retl
- ldub [%o0], %o0
- SET_SIZE(waiting)
-
- ENTRY(test)
- mov 1, %g1
-
- brz %g1, 1f
- nop
- brlez %g1, 1f
- nop
- brlz %g0, 1f
- nop
- brlz %g1, 1f
- nop
- brnz %g0, 1f
- sub %g0, 2, %g1
- brgz %g1, 1f
- nop
- brgz %g0, 1f
- nop
- brgez %g1, 1f
- nop
-
- mov %g1, %o0
-
-1:
- retl
- nop
- SET_SIZE(test)
-
- ENTRY(main)
- save %sp, -SA(MINFRAME + 4), %sp
- stb %g0, [%fp - 4]
-1:
- call waiting
- sub %fp, 4, %o0
- tst %o0
- bz 1b
- nop
-
- call test
- nop
-
- ret
- restore %g0, %g0, %o0
- SET_SIZE(main)
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.d
deleted file mode 100644
index cfcf0a715d1a..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.d
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * 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"
-
-/*
- * ASSERTION:
- *
- * SECTION:
- *
- * NOTES:
- *
- */
-
-#pragma D option destructive
-
-pid$1:a.out:waiting:entry
-{
- this->a = (char *)alloca(1);
- *this->a = 1;
- copyout(this->a, arg0, 1);
-}
-
-pid$1:a.out:main:,
-pid$1:a.out:other:
-{
-}
-
-pid$1:a.out:bad:entry
-{
- exit(1);
-}
-
-syscall::rexit:entry
-/pid == $1/
-{
- exit(0);
-}
-
-
-BEGIN
-{
- /*
- * Let's just do this for 5 seconds.
- */
- timeout = timestamp + 5000000000;
-}
-
-profile:::tick-4
-/timestamp > timeout/
-{
- trace("test timed out");
- exit(1);
-}
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.s b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.s
deleted file mode 100644
index 3e6531f32190..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.branch.s
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include <sys/asm_linkage.h>
-
- DGDEF(__fsr_init_value)
- .word 0
-
- ENTRY(waiting)
- retl
- ldub [%o0], %o0
- SET_SIZE(waiting)
-
- ENTRY(main)
- save %sp, -SA(MINFRAME + 4), %sp
- stb %g0, [%fp - 4]
-1:
- call waiting
- sub %fp, 4, %o0
- tst %o0
- bz 1b
- nop
-
- restore
-
- tst %g0
- be other
- nop
-
- ALTENTRY(bad)
- illtrap
- SET_SIZE(bad)
- SET_SIZE(main)
-
- ENTRY(other)
- retl
- clr %o0
- SET_SIZE(other)
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.d
deleted file mode 100644
index c484c3f0c721..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.d
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * 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"
-
-/*
- * ASSERTION:
- *
- * SECTION:
- *
- * NOTES:
- *
- */
-
-#pragma D option destructive
-
-pid$1:a.out:waiting:entry
-{
- this->a = (char *)alloca(1);
- *this->a = 1;
- copyout(this->a, arg0, 1);
-}
-
-pid$1:a.out:main:,
-pid$1:a.out:inner:
-{
-}
-
-syscall::rexit:entry
-/pid == $1/
-{
- exit(0);
-}
-
-
-BEGIN
-{
- /*
- * Let's just do this for 5 seconds.
- */
- timeout = timestamp + 5000000000;
-}
-
-profile:::tick-4
-/timestamp > timeout/
-{
- trace("test timed out");
- exit(1);
-}
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.s b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.s
deleted file mode 100644
index 612f0b926142..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/tst.embedded.s
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include <sys/asm_linkage.h>
-
- DGDEF(__fsr_init_value)
- .word 0
-
- ENTRY(waiting)
- retl
- ldub [%o0], %o0
- SET_SIZE(waiting)
-
- ENTRY(main)
- save %sp, -SA(MINFRAME + 4), %sp
- stb %g0, [%fp - 4]
-1:
- call waiting
- sub %fp, 4, %o0
- tst %o0
- bz 1b
- nop
-
- restore
-
- ALTENTRY(inner)
- nop
- nop
- nop
- SET_SIZE(inner)
-
- retl
- clr %o0
- SET_SIZE(main)
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/usdt/tst.tailcall.ksh b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/usdt/tst.tailcall.ksh
deleted file mode 100644
index c3651ecf7eb4..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/usdt/tst.tailcall.ksh
+++ /dev/null
@@ -1,132 +0,0 @@
-#
-# 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 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-
-#
-# ASSERTION: Make sure USDT probes work as tail-calls on SPARC.
-#
-
-if [ $# != 1 ]; then
- echo expected one argument: '<'dtrace-path'>'
- exit 2
-fi
-
-dtrace=$1
-DIR=/var/tmp/dtest.$$
-
-mkdir $DIR
-cd $DIR
-
-cat > test.s <<EOF
-#include <sys/asm_linkage.h>
-
- DGDEF(__fsr_init_value)
- .word 0
-
- ENTRY(test)
- save %sp, -SA(MINFRAME + 4), %sp
- mov 9, %i0
- mov 19, %i1
- mov 2006, %i2
- call __dtrace_test___fire
- restore
- SET_SIZE(test)
-
- ENTRY(main)
- save %sp, -SA(MINFRAME + 4), %sp
-
-1:
- call test
- nop
-
- ba 1b
- nop
-
- ret
- restore %g0, %g0, %o0
- SET_SIZE(main)
-EOF
-
-cat > prov.d <<EOF
-provider test {
- probe fire(int, int, int);
-};
-EOF
-
-/usr/bin/as -xregsym=no -P -D_ASM -o test.o test.s
-if [ $? -ne 0 ]; then
- print -u2 "failed to compile test.s"
- exit 1
-fi
-
-$dtrace -G -32 -s prov.d test.o
-if [ $? -ne 0 ]; then
- print -u2 "failed to create DOF"
- exit 1
-fi
-
-cc -o test test.o prov.o
-if [ $? -ne 0 ]; then
- print -u2 "failed to link final executable"
- exit 1
-fi
-
-$dtrace -c ./test -s /dev/stdin <<EOF
-test\$target:::fire
-/arg0 == 9 && arg1 == 19 && arg2 == 2006/
-{
- printf("%d/%d/%d", arg0, arg1, arg2);
- exit(0);
-}
-
-test\$target:::fire
-{
- printf("%d/%d/%d", arg0, arg1, arg2);
- exit(1);
-}
-
-BEGIN
-{
- /*
- * Let's just do this for 5 seconds.
- */
- timeout = timestamp + 5000000000;
-}
-
-profile:::tick-4
-/timestamp > timeout/
-{
- trace("test timed out");
- exit(1);
-}
-EOF
-
-status=$?
-
-cd /
-/bin/rm -rf $DIR
-
-exit $status
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/annotated_helper.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/annotated_helper.d
deleted file mode 100644
index 3577f86f8ee6..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/annotated_helper.d
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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"
-
-dtrace:helper:ustack:
-{
- "@it's annotated"
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/helper_helper.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/helper_helper.d
deleted file mode 100644
index 8abc47d006dc..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/helper_helper.d
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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"
-
-dtrace:helper:ustack:
-{
- "<it's working>"
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.c
deleted file mode 100644
index 8cdf8abad5af..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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"
-
-int
-baz(void)
-{
- return (8);
-}
-
-int
-main(int argc, char **argv)
-{
- for (;;) {
- baz();
- }
-
- return (0);
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d
deleted file mode 100644
index dd795bece03f..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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
-
-pid$1:a.out:baz:entry
-{
- ustack(1, 1024);
- exit(0);
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d.out b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d.out
deleted file mode 100644
index 806d6a2b43dc..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.annotated.d.out
+++ /dev/null
@@ -1,4 +0,0 @@
-
- tst.annotated.exe`baz
- [ it's annotated ]
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.d
deleted file mode 100644
index 78218bd72aea..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.d
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-syscall::getpid:entry
-/pid == $1/
-{
- @[ustackdepth] = count();
-}
-
-ERROR
-/arg4 == DTRACEFLT_BADSTACK/
-{
- exit(0);
-}
-
-profile:::tick-1s
-/++n == 10/
-{
- exit(1)
-}
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.s b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.s
deleted file mode 100644
index a5076c969d92..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.s
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include <sys/asm_linkage.h>
-
- DGDEF(__fsr_init_value)
- .word 0
-
- ENTRY(main)
- save %sp, -SA(MINFRAME), %sp
- mov %sp, %fp
-loop:
- call getpid
- nop
- ba loop
- nop
- ret
- restore
- SET_SIZE(main)
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.c
deleted file mode 100644
index fa4802acd5d6..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include <stdint.h>
-#include <stdlib.h>
-#include <strings.h>
-
-int
-baz(void)
-{
- return (8);
-}
-
-static int
-foo(void)
-{
- /*
- * In order to assure that our helper is properly employed to identify
- * the frame, we're going to trampoline through data.
- */
- uint32_t instr[] = {
- 0x9de3bfa0, /* save %sp, -0x60, %sp */
- 0x40000000, /* call baz */
- 0x01000000, /* nop */
- 0x81c7e008, /* ret */
- 0x81e80000 /* restore */
- };
- uint32_t *fp = malloc(sizeof (instr));
-
- /*
- * Do our little relocation dance.
- */
- instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2;
-
- /*
- * Copy the code to the heap (it's a pain to build in ON with an
- * executable stack).
- */
- bcopy(instr, fp, sizeof (instr));
-
- (*(int (*)(void))fp)();
-
- free(fp);
-
- return (0);
-}
-
-int
-main(int argc, char **argv)
-{
- for (;;) {
- foo();
- }
-
- return (0);
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d
deleted file mode 100644
index ce2b9b30f14f..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * 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"
-
-/*
- * ASSERTION:
- *
- * SECTION:
- *
- * NOTES:
- *
- */
-
-#pragma D option quiet
-
-pid$1:a.out:baz:entry
-{
- ustack(2, 1024);
- exit(0);
-}
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d.out b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d.out
deleted file mode 100644
index 29646288e7ac..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.helper.d.out
+++ /dev/null
@@ -1,4 +0,0 @@
-
- tst.helper.exe`baz
- <it's working>
-
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.trapstat.ksh b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.trapstat.ksh
deleted file mode 100644
index 84af8006768f..000000000000
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/tst.trapstat.ksh
+++ /dev/null
@@ -1,87 +0,0 @@
-#/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 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-
-#
-# This script verifies that user-land stacks can be walked safely
-# when the trapstat(1M) utility is running. An arbitrary program, w(1),
-# is started once a second to ensure stacks can be walked at all stages
-# of the process lifecycle.
-#
-
-script()
-{
- $dtrace -o $dtraceout -s /dev/stdin <<EOF
- fbt:::
- {
- @[ustackdepth] = count();
- }
-EOF
-}
-
-run_commands()
-{
- cnt=0
-
- while [ $cnt -lt 10 ]; do
- w > /dev/null
- sleep 1
- cnt=$(($cnt+1))
- done
-}
-
-if [ $# != 1 ]; then
- echo expected one argument: '<'dtrace-path'>'
- 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
-
-run_commands &
-trapstat -t 1 10
-status=$?
-
-rm $dtraceout
-
-exit $status