intercepting system call / alternative to strace
Hello guys,
I want to trace a particular application, all the system calls which was call to that application. I can do this by strace but I want to do this dynamically. like say if I want to keep track on ps2pdf, whenever I run this command then it should capture all the system calls related to ps2pdf. CAn we do this by intercpeting the system call? ( execve , read, write ,open ,close) . Its enough if we can able to get exec() command . Is there any other way to achieve this? Thanks Shanim |
Have a look at systemtap.
|
Hi, Thanks for reply
But systemmap can able to return this kind of output? like not counting how many syscalls, how many times, rather I am looking for an arguments inside it. I can able to parse those system call by other functions. Basically I am trying to generate a relationship between arguments of the syscalls ( including header files / or read only files etc) Can I achieve this by systemtap? if yes tell me in short how? Quote:
Thanks Shanim |
All times are GMT -5. The time now is 05:39 PM. |