Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

truss output interpretation help needed

Status
Not open for further replies.

bi

Technical User
Apr 13, 2001
1,552
US
I ran truss on a PID and here is just a little of the output:

write(5, " D B R E A D ".., 55) = 55
write(8, "\0 !\0\006\0\0\0\0\00304".., 33) = 33
read(8, "\0 8\0\006\0\0\0\0\004\0".., 2048) = 56
write(8, "\015\0\006\0\0\0\0\00305".., 21) = 21
read(8, "\0DB\0\006\0\0\0\0\00602".., 2048) = 219
write(5, " D B R E A D ".., 55) = 55
lseek(10, 0, SEEK_SET) = 0
fstat64(10, 0xFFBE9EA0) = 0
ioctl(10, TCGETA, 0xFFBE9F84) Err#25 ENOTTY
lseek(10, 1378, SEEK_SET) = 1378

Can anyone tell me what the various columns mean, especially the last ones -- what do the numbers mean? I can't find anything in the man pages or at Sun's web site on interpreting the output of truss. (I'm trying to understand a Sun problem with pre-9i Oracle OCI, if anyone has worked with that.)

Thanks for any help you can give me.

 
Hi,

The first column is the file-descriptor, which the system call is to function on. Use 'lsof' to workout what file this number relates to.

It would appear that the last column in the writes and reads, is the amount of data to be written and the max. about to be read, respectively.

The '= x' is the return code, so the read call requests to read up to 2K, but there's only 219 bytes,

read(8, "\0DB\0\006\0\0\0\0\00602".., 2048) = 219


cheers,
Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top