Debian Codegraph @

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

raw
1 global count = 0
2
3 probe syscall.setsid {
4 if (pid() == target()) {
5 printf(":%02d %014d kern\n", count, gettimeofday_us());
6 count ++;
7 }
8 }