From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 12 15:27:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B3F11065673; Sun, 12 Sep 2010 15:27:03 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id A946C8FC1E; Sun, 12 Sep 2010 15:27:02 +0000 (UTC) Received: by eyx24 with SMTP id 24so2810271eyx.13 for ; Sun, 12 Sep 2010 08:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=m6j26NU88iPwMai1zisxeFGeJ9x6JoUNitGUgojjdNk=; b=RdxK/vCAnxNJMQYHKNdcMsz0O1ErxDnkvXOIp9a1fogsEdyEbp10aLbIpYqs2qDo+d AtkUFzJl/PC+ARLpIYy1AB7qRKp48YRKGit8uaCkp7JxvVUW+Xo4n7OlgBa2ATGsNVk/ 03J6S+E6Re9Bfr3i3rNdeOSCDWUHQCMZtrAvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pNpssS96zWm8ZtSeSqAHpGCzpapvYy/3YMyyZja0U5BhCGL7mQlml92g88pnHzvW7m AIjBneP1rp9j4841IcXFMUXPen6RhW/Pnv0EvRnvoT0co+g/QOMAdv6LXlZxCHlhjv6N XbXRlC0nZ+/LEvJTvzHyaxmtxn2BKaEPUhO50= MIME-Version: 1.0 Received: by 10.213.22.139 with SMTP id n11mr1022763ebb.21.1284303669383; Sun, 12 Sep 2010 08:01:09 -0700 (PDT) Received: by 10.14.120.146 with HTTP; Sun, 12 Sep 2010 08:01:09 -0700 (PDT) In-Reply-To: <20100912130801.GA23538@freebsd.org> References: <4C8A81D9.5020905@rawbw.com> <20100910194600.GB60815@stack.nl> <20100912130801.GA23538@freebsd.org> Date: Sun, 12 Sep 2010 17:01:09 +0200 Message-ID: From: Mateusz Guzik To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Cc: Yuri , Jilles Tjoelker , freebsd-hackers@freebsd.org Subject: Re: Why I can't trace linux process's childs with truss? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 15:27:03 -0000 On Sun, Sep 12, 2010 at 3:08 PM, Alexander Best 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