Re: [Review] Remove procfs dependency of truss

From: Howard Su <howard0su_at_gmail.com>
Date: Fri, 6 Apr 2007 16:04:23 +0800
Thanks to Robert to point out that my original patch didn't work
against a threaded application. I fixed that. Please try the new
patch.

I tested this patch under i386 box only with libthr and libpthread.

Howard

On 4/4/07, Howard Su <howard0su_at_gmail.com> wrote:
> 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
>
>


-- 
-Howard

Received on Fri Apr 06 2007 - 06:04:25 UTC

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