From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3565c352517a15cb X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,3565c352517a15cb X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: YET ANOTHER New & Improved "trace" (aka truss) Date: 1998/04/24 Message-ID: <6hr3do$mgh$1@news.iastate.edu>#1/1 X-Deja-AN: 347434286 References: <6hlnah$1be$1@news.iastate.edu> 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.32.tar.Z Changes since 1.31: + Better handling of "BSD4.4" sockaddr struct's (_SOCKADDR_LEN). + Compiles cleanly under D-Unix 4.0b (as well as 3.2x and 4.0d) + New command line flag: -c bytes [default 64k] to limit the number of bytes malloc'd and copied out of the traced processes' address space. For example, this mistake: struct sockaddr_in sin; int slen = sizeof(sin); fillin(sin); bind(sockFd, &sin, &slen); /* should be bind(sockFd, &sin, slen); */ passing the pointer to slen, rather than slen itself would cause trace to try to malloc and then read a very large number of bytes to decode 'sin', often causing trace to give up or die. John -- 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