strace help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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






-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux