diff options
author | hunt <hunt> | 2007-10-25 18:40:37 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-25 18:40:37 +0000 |
commit | 805006f778928f9d43419c3ad0f9e6cd0e9df9c0 (patch) | |
tree | 4b13bc2e50b235d551ff0560ccd2dc981080051b /testsuite/systemtap.printf/printdln.stp | |
parent | eca23f3dbde340a85adbeb3ea4e81df5cbc10c0b (diff) | |
download | systemtap-steved-805006f778928f9d43419c3ad0f9e6cd0e9df9c0.tar.gz systemtap-steved-805006f778928f9d43419c3ad0f9e6cd0e9df9c0.tar.xz systemtap-steved-805006f778928f9d43419c3ad0f9e6cd0e9df9c0.zip |
2007-10-25 Martin Hunt <hunt@redhat.com>
* systemtap.printf/printd.stp: New
* systemtap.printf/printdln.stp: New
Diffstat (limited to 'testsuite/systemtap.printf/printdln.stp')
-rw-r--r-- | testsuite/systemtap.printf/printdln.stp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/printdln.stp b/testsuite/systemtap.printf/printdln.stp new file mode 100644 index 00000000..86886ac1 --- /dev/null +++ b/testsuite/systemtap.printf/printdln.stp @@ -0,0 +1,33 @@ +# test the printdln function with string and integers, +# variables and constants. + +probe begin { + a = "hello" + b = " " + c = "world" + d = 777 + e = "<-->" + + # print variables + printdln(b,a) + printdln(b,a,c) + printdln(e,a,c,d) + + # print literals + printdln(",","foo") + printdln(" *** ","foo","bar") + printdln(" *** ","foo","bar","baz") + + printdln(", " , 777) + printdln(",","foo",99) + println(",",99, "foo") + + printdln("",123,456,789) + printdln(" ",123,456,789) + + # mixed + printdln("-",a,999) + printdln("-",999,a) + + exit() +} |