xuchen03@onlinegame-53-51:~/systab$ vi strace-open.stp xuchen03@onlinegame-53-51:~/systab$ sudo stap ./strace-open.stp redis-server(24453) open ("/proc/24453/stat", O_RDONLY) bot(28026) open ("/proc/self/stat", O_RDONLY) bot(28026) open ("/proc/stat", O_RDONLY) redis-server(24453) open ("/proc/24453/stat", O_RDONLY) redis-server(24453) open ("/proc/24453/stat", O_RDONLY) tail(3649) open ("logs/zqc/gameapp.3.INFO", O_RDONLY|O_NONBLOCK) tail(3651) open ("logs/zqc/gameapp.5.INFO", O_RDONLY|O_NONBLOCK) mgrapp(3845) open ("/proc/self/stat", O_RDONLY) mgrapp(3845) open ("/proc/stat", O_RDONLY) tail(3652) open ("logs/zqc/gateapp.2.INFO", O_RDONLY|O_NONBLOCK) tail(3650) open ("logs/zqc/gameapp.4.INFO", O_RDONLY|O_NONBLOCK) mgrapp(11899) open ("/proc/self/stat", O_RDONLY) mgrapp(11899) open ("/proc/stat", O_RDONLY) gateapp(3849) open ("/proc/self/stat", O_RDONLY) gateapp(3849) open ("/proc/stat", O_RDONLY) gateapp(11903) open ("/proc/self/stat", O_RDONLY) gateapp(11903) open ("/proc/stat", O_RDONLY) loginapp(3847) open ("/proc/self/stat", O_RDONLY) loginapp(3847) open ("/proc/stat", O_RDONLY) redis-server(24453) open ("/proc/24453/stat", O_RDONLY) gameapp(3855) open ("/proc/self/stat", O_RDONLY) ...