Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <cola-liw-833648479-19983-0@liw.clinet.fi> (raw)


-----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 <jrs@world.std.com>.

Messages of thanks and encouragement can be sent to:

	Paul Kranenburg <pk@cs.few.eur.nl>
	Branko Lankester <branko@hacktic.nl>
	J. Richard Sladkey <jrs@world.std.com>

A special thanks goes to all the contributors of this version (see the
file CREDITS for details); in particular, Andreas Schwab
<schwab@issan.informatik.uni-dortmund.de>, Marty Leisner
<leisner@sdsp.mc.xerox.com>, Juergen Weigert
<jnweiger@immd4.informatik.uni-erlangen.de> Linus Torvalds
<Linus.Torvalds@cs.Helsinki.FI>, Michael E Chastain
<mec@duracef.shout.net>, and Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.

-----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.



                 reply	other threads:[~1996-06-01  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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