testsuite/systemtap.printf/basic5.stp
raw| 1 | # This test is really a transport test. |
| 2 | # Waiting one second makes sure the two probes |
| 3 | # send the data in different packets, at least |
| 4 | # with procfs. |
| 5 | |
| 6 | probe begin |
| 7 | { |
| 8 | printf("Hello"); |
| 9 | printf("World"); |
| 10 | } |
| 11 | |
| 12 | probe timer.ms(1000) |
| 13 | { |
| 14 | exit() |
| 15 | } |
| 16 | |
| 17 | probe end |
| 18 | { |
| 19 | printf("Hello"); |
| 20 | printf("World"); |
| 21 | exit() |
| 22 | } |