diff options
Diffstat (limited to 'testsuite/systemtap.printf/basic5.stp')
-rw-r--r-- | testsuite/systemtap.printf/basic5.stp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/basic5.stp b/testsuite/systemtap.printf/basic5.stp new file mode 100644 index 00000000..8ddb089d --- /dev/null +++ b/testsuite/systemtap.printf/basic5.stp @@ -0,0 +1,22 @@ +# This test is really a transport test. +# Waiting one second makes sure the two probes +# send the data in different packets, at least +# with procfs. + +probe begin +{ + printf("Hello"); + printf("World"); +} + +probe timer.ms(1000) +{ + exit() +} + +probe end +{ + printf("Hello"); + printf("World"); + exit() +} |