blob: ef9bd3b4a517bf81c073be39c9c9adf12d113e61 [file] [log] [blame]
Wichert Akkermanf75a9ab2000-09-01 21:09:08 +00001Here's a preliminary port of strace to FreeBSD.
2
3Here are some notes about it :
4
5- This couldn't have been done without the sources of the truss
6 utility by Sean Eric Fagan, which were of great help.
Denys Vlasenko402eeb62009-01-02 13:03:44 +00007
Wichert Akkermanf75a9ab2000-09-01 21:09:08 +00008- The tracing mecanism used by FreeBD is a lot like the SVR4 one, so
9 this port shares a lot of code with the SVR4 port, including the
10 akward event loop when tracing multiple processes.
11
12- This works for i386 binaries, although support for alpha processor
13 should be quite straight forward, but I do not have an alpha to
14 test it on.
15
16- Tracing linux binaries is not supported yet, but should be possible
17 with some work.
Denys Vlasenko402eeb62009-01-02 13:03:44 +000018
Wichert Akkermanf75a9ab2000-09-01 21:09:08 +000019- There are some issues with following forks, and only a few FreeBSD
20 specific syscalls are decoded right now.
21
22- This was tested on FreeBSD 4.0. I believe the tracing interface is
23 present since at least FreeBSD 3.0, so it "should" work on all
24 latest releases. I have no idea for other BSDs, though.
Denys Vlasenko402eeb62009-01-02 13:03:44 +000025
Wichert Akkermanf75a9ab2000-09-01 21:09:08 +000026Gaël Roualland <gael.roualland@iname.com>