HEX
Server: LiteSpeed
System: Linux vearitale.com 5.14.0-570.32.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 6 11:30:41 EDT 2025 x86_64
User: yunab9059 (2007)
PHP: 8.3.21
Disabled: NONE
Upload Files
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")
}