| Current Path : /usr/share/systemtap/examples/io/ |
| Current File : //usr/share/systemtap/examples/io/switchfile.stp |
#!/usr/bin/stap
# Usage: stap -o outfile switchfile.stp
probe begin {
println("Begin logging")
}
probe timer.ms(1000) {
println("log data")
}
probe timer.ms(5000) {
switch_file()
}
probe end {
println("End logging")
}