strace help
Sondra Diamond
sondra.diamond at oracle.com
Tue Jun 8 13:54:24 UTC 2004
Need assistance:
(1) How do I get the strace command to display threads?
(2) How do I get the strace command to print the pid
in which a given system call was made?
For example, under Solaris:
$ truss -fl -t read sh -c 'date | grep asdf'
12133/1: read(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192) = 1000
12131/1: read(0, " W e d J u n 2 1".., 1024) = 29
12131/1: read(0, 0x00025FF8, 1024) = 0
And so I can see that one of the read() calls was made in pid 12133,
and the other two read() calls in pid 12131.
How do I do that with strace?
Regards,
Sondra
More information about the redhat-list
mailing list