[Review] Remove procfs dependency of truss

From: Howard Su <howard0su_at_gmail.com>
Date: Wed, 4 Apr 2007 16:18:20 +0800
Following the suggestion in idea page, I proposed the attached patch.
I didn't change any kernel part because I think PTRACE(2) is
functional although man page didn't document it.

I tested the patch under i386 and amd64 box. The help on testing and
code review will be appreciated.

To test, please try the following commands:
1. truss ps
basic stuff
2. truss -o output ps
output the result to file
3. truss -f -o output sh -c "ps"
test follow fork
4. start TOP(1) in another session, the
truss -p <pid_of_top>

-- 
-Howard

Received on Wed Apr 04 2007 - 06:46:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC