EDIT No. 1My task is mirroring , i.e., copying updated data from master server to all mirrors, by using rsync and rsh. But during rsync and rsh, I found some delay. My thinking is , the reason for delay is reverse DNS lookup. So I want to make log for time consumed in reverse dns lookup process, when master server connects with mirror server.In my application I want to detect reverse DNS lookup system call called or not. So, for that which command helps ?For reverse DNS Lookup , system call is getnameinfo(),. if you any other , tell me.I just want to trace only this system call in my project. Which command can I use?I know ltrace/strace command to trace all system call called till script exits, but that makes extra overhead, because all system call trace is not of use in my project.I want to make log for time consumed in reverse dns lookup during rsync and rsh.Help me in my problem.
How to detect particular system call called or not in a whole workflow?
logs;rsync;dns;strace;rsh