Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754600Ab0HBSl5 (ORCPT ); Mon, 2 Aug 2010 14:41:57 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:36118 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754517Ab0HBSlz (ORCPT ); Mon, 2 Aug 2010 14:41:55 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=HNZBDrX5YvT8iIaFfxtbUNVuYI49jILlrCsN20cH5wQFsWTHx6BGE6ltBtkDCMkNho eVIZQaxO/BgixVJizZmXqgSxydD1mP++xkYBEOl5WOJ7cYHk6uIaCVyrMRmmP8mpSboG 0TJ7YnNwYBe0i2rYD6Qpfq5SDMYdPL3lFCTqg= Date: Mon, 2 Aug 2010 20:41:51 +0200 From: Frederic Weisbecker To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Paul Mackerras , Stephane Eranian , Markus Metzger , Robert Richter , LKML Subject: Re: [RFC] BTS based perf user callchains Message-ID: <20100802184149.GB8962@nowhere> References: <20100802183506.GA8962@nowhere> <1280774332.1923.245.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1280774332.1923.245.camel@laptop> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 21 On Mon, Aug 02, 2010 at 08:38:52PM +0200, Peter Zijlstra wrote: > On Mon, 2010-08-02 at 20:35 +0200, Frederic Weisbecker wrote: > > I'm not even sure that will work. Also, while looking at the BTS implementation > > in perf, I see we have one BTS buffer per cpu. But that doesn't look right as > > the code flow is not linear per cpu but per task. Hence I suspect we need > > one BTS buffer per task. But may be someone tried that and encountered a > > problem? > > IIRC we flush the buffer when we deschedule the counter. Ok. So the buffer is cut on schedule time. It might be nice to maintain the buffer progress across scheduling. That requires one buffer per task though. That could be worth. -- 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/