From 805006f778928f9d43419c3ad0f9e6cd0e9df9c0 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 25 Oct 2007 18:40:37 +0000 Subject: 2007-10-25 Martin Hunt * systemtap.printf/printd.stp: New * systemtap.printf/printdln.stp: New --- testsuite/systemtap.printf/printd.stp | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testsuite/systemtap.printf/printd.stp (limited to 'testsuite/systemtap.printf/printd.stp') 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() +} -- cgit