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/printd.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/printd.stp')
-rw-r--r-- | testsuite/systemtap.printf/printd.stp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/printd.stp b/testsuite/systemtap.printf/printd.stp new file mode 100644 index 00000000..500b0600 --- /dev/null +++ b/testsuite/systemtap.printf/printd.stp @@ -0,0 +1,46 @@ +# test the printd function with string and integers, +# variables and constants. + +probe begin { + a = "hello" + b = " " + c = "world" + d = 777 + e = "<-->" + + # print variables + printd(b,a) + println("") + printd(b,a,c) + println("") + printd(e,a,c,d) + println("") + + # print literals + printd(",","foo") + println("") + printd(" *** ","foo","bar") + println("") + printd(" *** ","foo","bar","baz") + println("") + + printd(", " , 777) + println("") + printd(",","foo",99) + println("") + println(",",99, "foo") + println("") + + printd("",123,456,789) + println("") + printd(" ",123,456,789) + println("") + + # mixed + printd("-",a,999) + println("") + printd("-",999,a) + println("") + + exit() +} |