Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755866AbbB0X5J (ORCPT ); Fri, 27 Feb 2015 18:57:09 -0500 Received: from mga02.intel.com ([134.134.136.20]:36751 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754770AbbB0X5H (ORCPT ); Fri, 27 Feb 2015 18:57:07 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,663,1418112000"; d="scan'208";a="684621698" Date: Fri, 27 Feb 2015 15:57:02 -0800 From: Andi Kleen To: Peter Zijlstra Cc: kan.liang@intel.com, linux-kernel@vger.kernel.org, mingo@redhat.com, acme@kernel.org Subject: Re: [RFC PATCH 1/1] proc: introduce /proc//lbr_stack Message-ID: <20150227235702.GJ27767@tassilo.jf.intel.com> References: <1424663021-82663-1-git-send-email-kan.liang@intel.com> <20150223164957.GB5029@twins.programming.kicks-ass.net> <20150223174448.GE27767@tassilo.jf.intel.com> <20150227075829.GC21418@twins.programming.kicks-ass.net> <20150227175434.GI27767@tassilo.jf.intel.com> <20150227220545.GT5029@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150227220545.GT5029@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 30 On Fri, Feb 27, 2015 at 11:05:45PM +0100, Peter Zijlstra wrote: > On Fri, Feb 27, 2015 at 09:54:34AM -0800, Andi Kleen wrote: > > > > perf record doesn't show where you're currently blocked. > > > > > > Of course it does; look at perf inject -s. > > > > Trace points don't support the LBR stack. > > Yes, indeed. But would it not make much more sense to squirrel the LBR > state into sched:sched_switch and teach that inject -s thing to dtrt, > than to make a proc file that's available on all archs but will only > work on 1-2 x86 uarchs and only if you're also running the right magic > perf record at the same time? Yes. It would be nice to capture the whole PMU state in trace points. There are use models for this where it can work better than sampling. But that would be a lot bigger project than this simple file, which is already quite useful with minimal effort. -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/