Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262442AbVD2GqB (ORCPT ); Fri, 29 Apr 2005 02:46:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262445AbVD2GqB (ORCPT ); Fri, 29 Apr 2005 02:46:01 -0400 Received: from rproxy.gmail.com ([64.233.170.203]:28861 "EHLO rproxy.gmail.com") by vger.kernel.org with ESMTP id S262442AbVD2Gpo convert rfc822-to-8bit (ORCPT ); Fri, 29 Apr 2005 02:45:44 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RcKst3sQPWXYfI7V2nPqalgix+cZFUkxh2r2P4TpjGfq9Kkdk3B8VArV3GCw4Sx1mY4ksVARXOtCUJ2xkbtLDGX1PYYRsuQYHBlJAcjPFpBzudMk7nJhqunD30E3yqkraKsm0JMifGaMt80Pc02cgayUKAIQnd6erRmmOMFPhyM= Message-ID: Date: Thu, 28 Apr 2005 23:45:40 -0700 From: Gilles Pokam Reply-To: Gilles Pokam To: Chris Wedgwood Subject: Re: Kernel memory Cc: linux-kernel@vger.kernel.org In-Reply-To: <20050429061254.GB12654@taniwha.stupidest.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <20050429030313.GA10344@taniwha.stupidest.org> <20050429054351.GA12654@taniwha.stupidest.org> <20050429061254.GB12654@taniwha.stupidest.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1176 Lines: 30 On 4/28/05, Chris Wedgwood wrote: > On Thu, Apr 28, 2005 at 10:48:31PM -0700, Gilles Pokam wrote: > > > Can you be more explicit ? > > why can't you have the parent process of whatever your tracing mess > with /dev/kmem or whatever so you don't have to frob the original > binary? I see the point. Just to test this solution, I tried before to modify a test application by mmaping /dev/mem into the application address range. Since I don't know apriori which address is going to raise a pagefault, I had to mmap the entire memory to the user space. However this doesn't work. It looks like there is a limitation on the amount of memory you can mmap ? > i guess it's not really clear to me what you're doing entirely the simplest way to say is: I want the pagefault handler to return a memory page when it encounters a pagefault exceptions due to an invalid address or incorrect page protection. Thanks. Gilles - 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/