Date: Sat, 18 Sep 2010 19:11:22 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Mateusz Guzik <mjguzik@gmail.com> Cc: Alexander Best <arundel@freebsd.org>, freebsd-hackers@freebsd.org, Jilles Tjoelker <jilles@stack.nl>, Yuri <yuri@rawbw.com> Subject: Re: Why I can't trace linux process's childs with truss? Message-ID: <20100918161122.GU2389@deviant.kiev.zoral.com.ua> In-Reply-To: <AANLkTikiWs9O%2B8%2BmwOaE4nVovT0yDQ3GvPO7E9H_MWkW@mail.gmail.com> References: <4C8A81D9.5020905@rawbw.com> <20100910194600.GB60815@stack.nl> <20100912130801.GA23538@freebsd.org> <AANLkTikiWs9O%2B8%2BmwOaE4nVovT0yDQ3GvPO7E9H_MWkW@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Wlbg71WMOPzcvmIn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 12, 2010 at 05:01:09PM +0200, Mateusz Guzik wrote: > On Sun, Sep 12, 2010 at 3:08 PM, Alexander Best <arundel@freebsd.org> wro= te: > > 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 use= d on > > any non freebsd executable? > > >=20 > Actually truss handles linux processes just fine, except for their childr= en. :) > Linux process can create a child using linux_clone syscall, but truss doe= s not > handle that case and this can be the problem that Yuri reported (since > no log was > provided, I can only guess). >=20 > This trivial patch should fix this: > http://student.agh.edu.pl/~mjguzik/truss-linux-forks.patch This is too trivial, IMO. linux_clone() does not neccessary cause new process to be created, I think. >=20 > Tested on this simple program: > http://student.agh.edu.pl/~mjguzik/fork.c >=20 > If it still does not work, log generated by truss would be helfpul. --Wlbg71WMOPzcvmIn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkyU5KoACgkQC3+MBN1Mb4gHLwCgmhPxYKiowkOfNguiKSZ3pY6X cBAAn2eQ4uOkvtH2s58PkJls7s3SbipN =VDPi -----END PGP SIGNATURE----- --Wlbg71WMOPzcvmIn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100918161122.GU2389>