Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754896Ab0AZWDM (ORCPT ); Tue, 26 Jan 2010 17:03:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754864Ab0AZWDI (ORCPT ); Tue, 26 Jan 2010 17:03:08 -0500 Received: from one.firstfloor.org ([213.235.205.2]:50101 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754842Ab0AZWDG (ORCPT ); Tue, 26 Jan 2010 17:03:06 -0500 Date: Tue, 26 Jan 2010 23:03:01 +0100 From: Andi Kleen To: Oleg Nesterov Cc: Andi Kleen , Linus Torvalds , tromey@redhat.com, Stephen Rothwell , Kyle Moffett , Peter Zijlstra , Peter Zijlstra , Fr??d??ric Weisbecker , Steven Rostedt , LKML , Arnaldo Carvalho de Melo , "Frank Ch. Eigler" , linux-next@vger.kernel.org, "H. Peter Anvin" , utrace-devel@redhat.com, Thomas Gleixner Subject: Re: linux-next: add utrace tree Message-ID: <20100126220301.GG6567@basil.fritz.box> References: <20100122221348.GA4263@redhat.com> <877hr4g49l.fsf@basil.nowhere.org> <20100126210232.GF6567@basil.fritz.box> <20100126215349.GB19146@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100126215349.GB19146@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 942 Lines: 22 > Simple example. Try to debug/strace strace ot gdb itself. Not trivial, > you can't attach to strace's tracees. Recently I spent 2 days trying to > understand why strace -f hangs. I was able to attach to strace, but > I wasn't able to see what its tracees do. But what would the semantics be inside the tracees even if you could? > And, it was not possible to even trace strace until it hangs, with > ptrace the tracee (strace) must stop to report the event and this > shadowed the race. "Shadowing the race" was the second surname of strace I thought anyways @) Basically if you care about races never use strace in the first place. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/