summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/dtracetoolkit/Code/Shell/func_slow.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cddl/contrib/dtracetoolkit/Code/Shell/func_slow.sh')
-rwxr-xr-xcddl/contrib/dtracetoolkit/Code/Shell/func_slow.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/cddl/contrib/dtracetoolkit/Code/Shell/func_slow.sh b/cddl/contrib/dtracetoolkit/Code/Shell/func_slow.sh
new file mode 100755
index 0000000..3407646
--- /dev/null
+++ b/cddl/contrib/dtracetoolkit/Code/Shell/func_slow.sh
@@ -0,0 +1,35 @@
+#!./sh
+
+func_c()
+{
+ echo "Function C"
+ i=0
+ while [ $i -lt 300 ]
+ do
+ i=`expr $i + 1`
+ done
+}
+
+func_b()
+{
+ echo "Function B"
+ i=0
+ while [ $i -lt 200 ]
+ do
+ i=`expr $i + 1`
+ done
+ func_c
+}
+
+func_a()
+{
+ echo "Function A"
+ i=0
+ while [ $i -lt 100 ]
+ do
+ i=`expr $i + 1`
+ done
+ func_b
+}
+
+func_a
OpenPOWER on IntegriCloud