☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
testsuite
/
systemtap.examples
/
io
/
switchfile.stp
☽
☼
testsuite/systemtap.examples/io/switchfile.stp
code
plain
raw
1
#! /usr/bin/env/ stap
2
3
# Usage: stap -o outfile switchfile.stp
4
5
probe begin {
6
println("Begin logging")
7
}
8
9
probe timer.ms(1000) {
10
println("log data")
11
}
12
13
probe timer.ms(5000) {
14
switch_file()
15
}
16
17
probe end {
18
println("End logging")
19
}