From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,12e87ccbf7ca928f,start X-Google-Attributes: gid10d4db,public From: jrs@world.std.com (J. Richard Sladkey) Subject: strace 3.1: system call tracer for sunos, linux, svr4, solaris2, irix5 Date: 1996/06/01 Message-ID: #1/1 X-Deja-AN: 158027206 x-original-date: Fri, 31 May 1996 07:01:28 GMT followup-to: comp.os.linux.development.apps summary: a multi-platform release of the classic sunos4 strace program organization: The Internet keywords: tool debug system call trace decode sunos linux svr4 solaris irix newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- This is strace 3.1, a system call tracer for SunOS 4.x, Linux, System V release 4 and Solaris 2.x. This is a much-enhanced, multi-platform version of the classic strace program written orignally by Paul Kranenburg for SunOS and subsequently modified by Branko Lankester for Linux. strace traces and decodes the system calls made by binary programs. The programs do not need not to be compiled specially to enable tracing so any program can be traced. To give you a feel for what strace can do, here is a sample trace of the command "/sbin/scp /dev/null /dev/tty" where scp is a just a statically-linked version of cp: $ strace /sbin/scp /dev/null /dev/tty brk(0) = 0x11000 geteuid() = 314 umask(0) = 022 brk(0x14000) = 0x14000 brk(0x15000) = 0x15000 brk(0x16000) = 0x16000 lstat("/dev/tty", {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0 stat("/dev/tty", {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0 stat("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 stat("/dev/tty", {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0 open("/dev/null", O_RDONLY) = 3 open("/dev/tty", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 4 fstat(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0 read(3, "", 1024) = 0 close(4) = 0 close(3) = 0 fstat(2, {st_mode=S_IFREG|0644, st_size=889, ...}) = 0 brk(0x17000) = 0x17000 fstat(1, {st_mode=S_IFCHR|0622, st_rdev=makedev(4, 2), ...}) = 0 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0 _exit(0) = ? $ The careful eye will find a small discrepancy in this trace. Changes in version 3.1 ====================== * Irix5 is supported * Linux 68k is supported * Linux alpha is supported * configure is upgraded to autoconf 2.x * using -f in combination with -e now works correctly * output can be piped to a program * tracing setuid programs works better * it is now reasonable to install strace setuid to root in some circumstances * new useful tracing names like file and process to trace whole classes of system calls, e.g. -efile traces all system calls that take a file name as an argument * IPC calls on SunOS 4.1.x are decoded * Linux program memory is reliably dereferenced * Linux decodes at least the name of all syscalls as of pre2.0.4 * various cosmetic changes and bug fixes Please send bug reports J. Richard Sladkey . Messages of thanks and encouragement can be sent to: Paul Kranenburg Branko Lankester J. Richard Sladkey A special thanks goes to all the contributors of this version (see the file CREDITS for details); in particular, Andreas Schwab , Marty Leisner , Juergen Weigert Linus Torvalds , Michael E Chastain , and Thomas Bogendoerfer . -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMbB3JYQRll5MupLRAQGKyAQAu/od2h75wyWRFdI4w4L/Zpw7StYiMjLn oCC41JFz646jKxDIP/ERS2ZlMzo+B5Mo0K6tlzGphaIOZPtZiyoyBsKkScNB/gQP S5S7G0/H258NjMA1qcXKvc9GgfXJt3LYchKFvjihKXqOziFgHsvDNDo4g2NJt5v8 izF/MLgXn7c= =xhO+ -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION.