testsuite/systemtap.printf/out3.stp
raw| 1 | # output "large_output" pattern using print_char. |
| 2 | |
| 3 | # This should detect any problems in the print_char code, output |
| 4 | # buffers or transport. |
| 5 | |
| 6 | probe begin |
| 7 | { |
| 8 | for (j = 0; j < 3000; j++) { |
| 9 | for (i = 0x41; i <= 0x5a; i++) |
| 10 | print_char(i) |
| 11 | for (i = 0x61; i <= 0x7a; i++) |
| 12 | print_char(i) |
| 13 | print_char(10); |
| 14 | } |
| 15 | |
| 16 | exit() |
| 17 | } |