Re: Why I can't trace linux process's childs with truss?

[ Available lists | Index of freebsd-hackers | Month of Sep 2010 | Week of 12 Sep 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Mateusz Guzik <mjguzik@gmail.com>
Date
12 Sep 2010 15:27:03
Subject
Re: Why I can't trace linux process's childs with truss?
Message-ID
AANLkTikiWs9O+8+mwOaE4nVovT0yDQ3GvPO7E9H_MWkW@mail.gmail.com

In reply to

[ Hide this part ]
On Sun, Sep 12, 2010 at 3:08 PM, Alexander Best <arundel@freebsd.org> wrote:
> there's a PR related to this "issue" [1]. so is truss missing this
> functionality or is this in fact a feature, because truss musn't be used on
> any non freebsd executable?
>

Actually truss handles linux processes just fine, except for their children. :)
Linux process can create a child using linux_clone syscall, but truss does not
handle that case and this can be the problem that Yuri reported (since
no log was
provided, I can only guess).

This trivial patch should fix this:
http://student.agh.edu.pl/~mjguzik/truss-linux-forks.patch

Tested on this simple program:
http://student.agh.edu.pl/~mjguzik/fork.c

If it still does not work, log generated by truss would be helfpul.

Regards,
--
Mateusz Guzik


Elapsed time: 0.201 seconds