From: john@iastate.edu (John Hascall)
Subject: New & Improved "trace" (aka truss)
Date: 1998/04/22 [thread overview]
Message-ID: <6hlnah$1be$1@news.iastate.edu> (raw)
ftp://ftp/iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.31.tar.Z
This is a much updated version, lots of bug fixes and new decoding
abilities. It knows about syscalls up through D-Unix 4.0d
If you are not familiar with trace it lets you see all the
syscalls a process makes as well as the signals it receives, etc.
It is a great debugging tool (esp. for software you have no
source for). Appended are excerpts from doing:
trace -o trace.dump netscape
to give you an idea of what it can tell you.
John
---------------------------------------------------------------------
Tracing process /proc/22478
obreak (0x14231000) = 0
getgid () = 101
open ("/dev/zero", O_RDWR, 000) = 5
mmap ( 0x50000000, 163840, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_FILE|MAP_FIXED|MAP_PRIVATE, 5, 0 ) = 0x50000000
mprotect (0x50000000, 16384, PROT_NONE) = 0
open ("/usr/shlib/libXC.so", O_RDONLY, 666) = -1, Errno 2 (No such file or directory)
open ("/usr/lib/X11/locale/locale.alias", O_RDONLY, 666) = 8
fstat (8, 0x11ffb8c0) = 0 [ , <8.32774.42719 -r--r--r-- 1 bin bin 7623 893277642,881653616,891550533> ]
uname (0x11ffd868) = 0 [ {"OSF1", "pvtest.cc.iastate.edu", "V4.0", "878", "alpha"} ]
fcntl (8, F_SETFD, FD_CLOEXEC) = 0
access ("/home/john/.Xauthority", R_OK) = 0
writev (8, 0x140001388={ {0x11ffdcd8,12}, {0x1423cf00,18}, {0x11ffdb80,2}, {0x14241140,16} }, 4) = 48
+ 00 00 00 10 00 12 00 00 00 0b d0 6c <00000000> l...........
+ 45 49 4b 4f 4f 43 2d 43 49 47 41 4d 2d 54 49 4d <00000000> MIT-MAGIC-COOKIE
+ 31 2d <00000010> -1
+ e2 48 <00000000> H.
+ 7a 04 3a 35 aa 18 f8 85 aa f6 19 07 18 9e 72 9f <00000000> .r..........5:.z
poll ( 0x145e8900={{6, <POLLIN>, <>},{13, <POLLIN>, <>},{17, <POLLOUT|POLLPRI>, <>}}, 3, 0) = 1, [ {{6, <>, <0>},{13, <>, <0>},{17, <>, <POLLOUT>}}, , ]
sigaction (SIGCHLD, {{0x120dd640,0xfffefeff,0}}, 0x0) = 0, [ , , NULL ]
select (19, 0x11ffbce8={0x00040000}, 0x0={}, 0x0={}, 0x11ffbc58={5,0}) = 1 [ , {0x00040000}, {}, {}, ]
wait4 (22490, 0x11ffbe38, WNOHANG, 0x0) = 22490 [ , <terminated SIGPIPE>, , ]
ioctl (8, 0x4004667f<Out,FIONREAD,4>, 11ffd660) = 0
+ 00 00 00 20 <00000000> ...
exit (0) = ()
EXIT [status=0]
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
next reply other threads:[~1998-04-22 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-22 4:00 John Hascall [this message]
1998-04-22 4:00 ` New & Improved "trace" (aka truss) Kevin Oberman
1998-04-23 4:00 ` John Hascall
1998-04-23 4:00 ` Kevin Oberman
1998-04-24 4:00 ` Bob Koehler
1998-04-24 4:00 ` YET ANOTHER " John Hascall
1998-04-30 4:00 ` YES, " John Hascall
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox