summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/out3.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-04-10 14:41:39 +0000
committerhunt <hunt>2007-04-10 14:41:39 +0000
commitee7369e533d6965f1661b9c5bc174a843b335c6e (patch)
treef9ede7a6904c883c126cd8fb5688dd5f4083b5b1 /testsuite/systemtap.printf/out3.stp
parent3d1f0c8fa10174815920ed3568bd816bd488f62f (diff)
downloadsystemtap-steved-ee7369e533d6965f1661b9c5bc174a843b335c6e.tar.gz
systemtap-steved-ee7369e533d6965f1661b9c5bc174a843b335c6e.tar.xz
systemtap-steved-ee7369e533d6965f1661b9c5bc174a843b335c6e.zip
2007-04-10 Martin Hunt <hunt@redhat.com>
* systemtap.printf/out*: New output tests to stress output buffering and transport. * systemtap.printf/mixed*: More output tests mixing print, printf, and print_char. * systemtap.printf/end*: Test that output from end probes is all sent.
Diffstat (limited to 'testsuite/systemtap.printf/out3.stp')
-rw-r--r--testsuite/systemtap.printf/out3.stp17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/out3.stp b/testsuite/systemtap.printf/out3.stp
new file mode 100644
index 00000000..2dfcc106
--- /dev/null
+++ b/testsuite/systemtap.printf/out3.stp
@@ -0,0 +1,17 @@
+# output "large_output" pattern using print_char.
+
+# This should detect any problems in the print_char code, output
+# buffers or transport.
+
+probe begin
+{
+ for (j = 0; j < 3000; j++) {
+ for (i = 0x41; i <= 0x5a; i++)
+ print_char(i)
+ for (i = 0x61; i <= 0x7a; i++)
+ print_char(i)
+ print_char(10);
+ }
+
+ exit()
+}