diff options
-rw-r--r-- | README | 18 | ||||
-rw-r--r-- | README-CVS | 9 | ||||
-rw-r--r-- | README-linux | 61 | ||||
-rw-r--r-- | strace.c | 2 |
4 files changed, 31 insertions, 59 deletions
@@ -9,17 +9,6 @@ specify it on the command line after the other options like this: ./configure --prefix=/usr i486-linux -The following configurations are supposed to work (in porting order): - - sparc-sun-sunos4.1 - i486-linux - sparc-sun-solaris2 - i486-ncr-sysv4 - i486-sun-solaris2 - m68k-linux - mips-sgi-irix5 - alpha-linux - A single sunos4.1 binary should work on all the sun4, sun4c and sun4m kernel architectures. Let me know if sun4d doesn't work. Other i486-*-sysv4 systems may work with little or no tweaking. @@ -34,5 +23,10 @@ See the file CREDITS to see who has contributed to strace. See the file TODO if you feel like helping out. -Please send bug reports and enhancements to Wichert Akkerman +You can get the latest version of strace from its homepage at +http://www.wi.leidenuniv.nl/~wichert/strace/ . + +Please send bug reports and enhancements to the strace +mailinglist at strace@lists.wiggy.net, or to Wichert Akkerman <wakkerma@debian.org> + diff --git a/README-CVS b/README-CVS new file mode 100644 index 0000000..dad18ea --- /dev/null +++ b/README-CVS @@ -0,0 +1,9 @@ + +If you use the CVS version of strace there will be some files missing +that you need to build strace. These files are generated by tools from +the GNU autoconf package. + +In order to generate the missing package you can run the cvsbuild script. +For some architectures (powerpc, (ultra)sparc) you need a recent version +of autoconf, otherwise it might fail to recognize your system. + diff --git a/README-linux b/README-linux index b6f3753..584d565 100644 --- a/README-linux +++ b/README-linux @@ -1,52 +1,21 @@ -======================================================================== -This is the unmodified README from Branko Lankester's release of strace -for Linux. Some of the notes and instructions are no longer valid -however the file has been retained for its historical value. -- jrs -======================================================================== -This is the second release of strace for linux, it requires linux -version 0.99.10 or newer. strace was written by Paul Kranenburg for -SunOS, I have modified it to work with linux. Read the file README and -the strace.1 for more info on strace. +Strace has been ported by Branko Lankester <branko@hacktic.nl> +to run on Linux systems. Since then it has been greatly modified +by various other people. +If you want to compile strace on a Linux system please make sure +that you use very recent kernel headers. Strace needs those to get +the proper data structures used by the kernel, since these can be +different from the structures that the C library uses. Currently +you will need a 2.2.7 or newer kernel. -Changes for this release are: -- bugfixes -- support for new system calls and ioctls -- symbolic output for: termio ioctls, sysv ipc, fcntl file locking, - statfs and ptrace -- microsecond time stamps +To compile strace using your kernel source you need to tell make where +you put the sources. For example if you have your kernelsource in +/usr/src/linux, you should invoke make like this: -A lot of the changes and bugfixes for this version were done by -Rick Sladkey <jrs@world.std.com>, System V IPC support was added -by Ulrich Pegelow <pegelow@moorea.uni-muenster.de>. + make CFLAGS=-I/usr/src/linux/include +Please note that it is possible to symlink /usr/include/{asm,linux,scsi} +to your kernel source, but for programs that don't need the actual kernel +structures that is highly discouraged. -FILES: - -README.first this file -README the original readme file for SunOS strace -getioctls script to create the ioctlents.h file for linux. -Sun/* files from the original package I didn't use - - -Notes: - -- With older versions of Linux (before 0.99.10) signals can get lost -for a traced process. - -- strace works best if you have a proc fs mounted on /proc, the -/proc/##/mem frame buffers are used for reading system call arguments. -You can use /dev/ram or some other unused block device for mounting -the proc fs: - - mount -t proc /dev/ram /proc - -or in /etc/fstab: - -/dev/hda /proc proc defaults - - - -Branko Lankester Jun 18 1993 -branko@hacktic.nl || lankeste@fwi.uva.nl @@ -87,7 +87,7 @@ static int interrupted; static struct tcb *pfd2tcb P((int pfd)); static void reaper P((int sig)); static void rebuild_pollv P((void)); -struct pollfd pollv[MAX_PROCS]; +struct pollfd pollv[MAX_PR\(^[^.-]\+$\|[.-]0\+\)OCS]; #ifndef HAVE_POLLABLE_PROCFS |