diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-11-04 14:11:15 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-11-04 14:11:15 -0500 |
commit | 806b26a85d30f59af7dcb0025c68a50bf4bbb352 (patch) | |
tree | 8b1cc9edab49eda46278199a7027d956549f6ddb /testsuite/systemtap.printf/printdln.stp | |
parent | 24993e4fcae48ca014e6b53f3f9a011c9cfa8f06 (diff) | |
parent | 600e72b28cc0676dc581b8fc5d54c09772979b79 (diff) | |
download | systemtap-steved-806b26a85d30f59af7dcb0025c68a50bf4bbb352.tar.gz systemtap-steved-806b26a85d30f59af7dcb0025c68a50bf4bbb352.tar.xz systemtap-steved-806b26a85d30f59af7dcb0025c68a50bf4bbb352.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.printf/printdln.stp')
-rw-r--r-- | testsuite/systemtap.printf/printdln.stp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/printdln.stp b/testsuite/systemtap.printf/printdln.stp new file mode 100644 index 00000000..ed78eac5 --- /dev/null +++ b/testsuite/systemtap.printf/printdln.stp @@ -0,0 +1,27 @@ +# test the printdln function with string and integers, +# variables and constants. + +probe begin { + a = "hello" + c = "world" + d = 777 + + # print variables + printdln(" ",a,c) + printdln("<-->",a,c,d) + + # print literals + printdln(" *** ","foo","bar") + printdln(" *** ","foo","bar","baz") + + printdln(",","foo",99) + printdln(",",99, "foo") + + printdln(" ",123,456,789) + + # mixed + printdln("-",a,999) + printdln("-",999,a) + + exit() +} |