Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754067Ab0ARPns (ORCPT ); Mon, 18 Jan 2010 10:43:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754072Ab0ARPnp (ORCPT ); Mon, 18 Jan 2010 10:43:45 -0500 Received: from e3.ny.us.ibm.com ([32.97.182.143]:45082 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070Ab0ARPnn (ORCPT ); Mon, 18 Jan 2010 10:43:43 -0500 Date: Mon, 18 Jan 2010 21:13:23 +0530 From: Ananth N Mavinakayanahalli To: Pekka Enberg Cc: Avi Kivity , Peter Zijlstra , Jim Keniston , Srikar Dronamraju , Ingo Molnar , Arnaldo Carvalho de Melo , utrace-devel , Frederic Weisbecker , Masami Hiramatsu , Maneesh Soni , Mark Wielaard , LKML Subject: Re: [RFC] [PATCH 1/7] User Space Breakpoint Assistance Layer (UBP) Message-ID: <20100118154323.GA4424@in.ibm.com> Reply-To: ananth@in.ibm.com References: <4B5325CF.5000001@redhat.com> <1263740593.557.20967.camel@twins> <4B53661A.9090907@redhat.com> <1263800752.4283.19.camel@laptop> <4B543F93.3060509@redhat.com> <1263815072.4283.305.camel@laptop> <4B544D7C.2060708@redhat.com> <1263816396.4283.361.camel@laptop> <4B544F8E.1080603@redhat.com> <84144f021001180413w76a8ca2axb0b9f07ee4dea67e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <84144f021001180413w76a8ca2axb0b9f07ee4dea67e@mail.gmail.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: 1427 Lines: 33 On Mon, Jan 18, 2010 at 02:13:25PM +0200, Pekka Enberg wrote: > Hi Avi, > > On Mon, 2010-01-18 at 14:01 +0200, Avi Kivity wrote: > >>> Maybe you place no value on uprobes. ?But people who debug userspace > >>> likely will see a reason. > > On 01/18/2010 02:06 PM, Peter Zijlstra wrote: > >> I do see value in uprobes, I just don't like it mucking about with the > >> address space. Nor does it appear required. > > On Mon, Jan 18, 2010 at 2:09 PM, Avi Kivity wrote: > > Well, the alternatives are very unappealing. ?Emulation and single-stepping > > are going to be very slow compared to a couple of jumps. > > So how big chunks of the address space are we talking here for uprobes? As Srikar mentioned, the least we start with is 1 page. Though you can have as many probes as you want, there are certain optimizations we can do, depending on the most common usecases. For eg., if you'd consider the start of a routine to be the most commonly traced location, most routines in a binary would generally start with the same instruction (say push %ebp), and we can refcount a slot with that instruction to be used for all probes of the same instruction. Ananth -- 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/