testsuite/systemtap.printf/end1.stp
raw| 1 | # output "large_output" pattern using printf. |
| 2 | |
| 3 | # This should detect any problems in the printf code, output |
| 4 | # buffers or transport. |
| 5 | |
| 6 | # This is the same as "out1.stp" except output is at the end probe. |
| 7 | # We need this test to be sure all output from end probes gets written |
| 8 | # before terminating. |
| 9 | |
| 10 | probe begin { |
| 11 | exit() |
| 12 | } |
| 13 | |
| 14 | probe end |
| 15 | { |
| 16 | for (j = 0; j < 3000; j++) |
| 17 | printf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\n") |
| 18 | } |