How to do it...

When printing a system call, strace prints the values passed to the kernel or returned from the kernel. The verbose option prints more details for some system calls.

For example, filtering just the sendto() system calls from a single ping looks as follows:

# strace -f -t -e sendto /bin/sh -c "ping -c 1 127.0.0.1"
[pid   430] 21:40:25 sendto(0, "10254325613603102551"..., 64, 0, {sa_family=AF_I4  
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset