From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755936AbbLGK07 (ORCPT ); Mon, 7 Dec 2015 05:26:59 -0500 Received: from casper.infradead.org ([85.118.1.10]:44700 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755701AbbLGK05 (ORCPT ); Mon, 7 Dec 2015 05:26:57 -0500 Date: Mon, 7 Dec 2015 11:26:51 +0100 From: Peter Zijlstra To: Ingo Molnar Cc: vincent.weaver@maine.edu, jolsa@redhat.com, torvalds@linux-foundation.org, eranian@google.com, tglx@linutronix.de, acme@redhat.com, ak@linux.intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, linux-tip-commits@vger.kernel.org, Arnaldo Carvalho de Melo Subject: Re: [tip:perf/core] perf/x86: Use INST_RETIRED.PREC_DIST for cycles: ppp Message-ID: <20151207102651.GN17308@twins.programming.kicks-ass.net> References: <1448929689-13771-2-git-send-email-andi@firstfloor.org> <20151206131102.GA12167@gmail.com> <20151206220651.GM17308@twins.programming.kicks-ass.net> <20151207064841.GA29761@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151207064841.GA29761@gmail.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2015 at 07:48:41AM +0100, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > On Sun, Dec 06, 2015 at 02:11:02PM +0100, Ingo Molnar wrote: > > > > > Also, I'm not convinced we need a new 'ppp' qualifier for any of this, why not > > > just replace 'pp' with this event - 'pp' is meant to be our most precise > > > event. > > > > I requested this because the PREC_DIST events can only be scheduled on a single > > counter, whereas the existing :pp events can be had on all 4. > > > > This mean you can have 2 concurrent :pp users (without RR), but not :ppp. > > Ok. Will tooling do the right thing? I.e. will the first user of 'perf top' get > :ppp automatically, while the second one falls back to :pp? if not I'll make it so.