Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/flightrec2.stp

raw
1
2 /* Generate roughly 4MB of output and then quit.
3 * Be nice to the transport layer => divide the
4 * load into chunks across a reasonable time interval
5 */
6
7 probe timer.ms(100)
8 {
9 for (j = 0; j < 4000; j++)
10 printf("1234567890\n")
11 }
12
13 /* Reliably terminate the testcase after 10 seconds
14 * runtime. This way the .exp file can simply rely
15 * on this constant run time and amount of data
16 * generated.
17 */
18
19 probe timer.s(10)
20 {
21 exit()
22 }
23