From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3565c352517a15cb,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,3565c352517a15cb,start X-Google-Attributes: gid1164f8,public From: john@iastate.edu (John Hascall) Subject: New & Improved "trace" (aka truss) Date: 1998/04/22 Message-ID: <6hlnah$1be$1@news.iastate.edu>#1/1 X-Deja-AN: 346769351 Organization: Iowa State University, Ames, Iowa USA Newsgroups: comp.unix.osf.osf1,comp.sys.dec 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, , <>},{13, , <>},{17, , <>}}, 3, 0) = 1, [ {{6, <>, <0>},{13, <>, <0>},{17, <>, }}, , ] 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 [ , , , ] ioctl (8, 0x4004667f, 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