I have an executable. When I attach a truss, we have to give $truss -o truss.out -fall ./a.out. It shows all system calls made by this program and all the child processes it forks.
Where as if I am using a DTrace script I am not able to do it.
./sample.d -c "a.out"
pid$1::somefunctionname:entry
{
printf("%s is called by %d",probefunc, tid);
}
_______________________________________________
dtrace-discuss mailing list
[email protected]
