Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935444Ab1ETJNB (ORCPT ); Fri, 20 May 2011 05:13:01 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:37297 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934436Ab1ETJNA (ORCPT ); Fri, 20 May 2011 05:13:00 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=WZS1bt8nrkWsfbVGlbcQlYce5pgXxzXaf/FgV+mHSnLJNInlOA0mS2+g3vmhb/LuEc iQVplguUNl4aBCAi6yiDgkiqFT2eYSLJdcNfuGjoba1Rgfy2xibRDMNvuKaztJMOmVJE E/hON6VbHZ9kAzRoiHYnvSxXTVIsXeouKiuz8= Date: Fri, 20 May 2011 11:12:56 +0200 From: Tejun Heo To: Pedro Alves Cc: Denys Vlasenko , oleg@redhat.com, jan.kratochvil@redhat.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, indan@nul.nu, bdonlan@gmail.com Subject: Re: [PATCH 03/10] ptrace: implement PTRACE_SEIZE Message-ID: <20110520091256.GD31426@htj.dyndns.org> References: <1305569849-10448-1-git-send-email-tj@kernel.org> <201105200000.18310.pedro@codesourcery.com> <201105200344.44520.vda.linux@googlemail.com> <201105200956.23320.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105200956.23320.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 33 Hello, On Fri, May 20, 2011 at 09:56:22AM +0100, Pedro Alves wrote: > > Ptrace API never allowed poking of running tracees. > > Which is a bit lame. Lame as it may be, it would be quite challenging to change that. > > You need to stop it first. > > That was my point... I was just pointing out that GDB will end > up PTRACE_INTERRUPTing the target anyway. Maybe we could extend > GDB's "observer" mode to be even more observer-only, and delay > reading the DSO list and whatever else GDB does on attach until > the first stop, or to user request. Some archs need reading > registers as soon as possible in order to actually know which > arch variant we've attached to. Anyway, this is GDBs business. > SEIZE not interrupting won't hurt GDB, and is obviously useful for > some use cases and tracers, _provided the race with SETOPTS is fixed_. Other than the to-be-removed SIGTRAP, I don't think the trace is observable from userland. Do you have anything specific on mind? Thanks. -- tejun -- 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/