Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5097969ybi; Tue, 28 May 2019 07:30:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxQCqh4HzUhLtTqZqvgw/bY7uheXzWgrlWWEt1Tr/G6B/Y6n/WP0vVjhSpcTWUP9nVZ2kI X-Received: by 2002:a63:c94f:: with SMTP id y15mr69677450pgg.159.1559053857608; Tue, 28 May 2019 07:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559053857; cv=none; d=google.com; s=arc-20160816; b=04ju8BOAMsHzUhk7ueNE5I2uo2sQp8LqxdH/cSh1wq2nRLYe9upLlJ944CUMsB9F1Z 5P9uIUrBTvV4EdNQX3NFqRLl350V5ZTl4wS6x59urzp6Oj7/jkW7HMOP4OrQtMJlmpYn 6FZc0EAanZHSjpxklp8Y7krb8IjxG+SAG7+qD2zv2GgMD0c2BAusPj638067oIcE1Yiq LOHpJcWM6Zd8BjpdR1gZssY7PkBGoRCgSYH/tk3a1o9YQuTpY3Q4ErvCAz0d9R0Z54Zv /na5zAz2o/ceTe1PpJ125Kk7ZHCm4wzE4YMonluT2nNZGAU12p3N946ALcg5sVNOVKk6 1I2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x9AREU78wDa9PBUDBxEftQKPg0c8hz4x/bLmf+9GcpQ=; b=hb4K23K8r3xWniQiSsufHBDGaK211PxSny91ahjQBiNdG2s3OLR2PAVxMTLWxqV3HS ppQ8Rg53WTC8psc3ymjzlYDiqO7bt/E3x3ivVGlRydDr/Z4/7Br2xL7UbRvPkt3IXIQ6 2fdTARXBqeHLD0K31tmXwUbFchQJlINaZ2M5d9kvCr/o9bUeo5f/uLkm+hJf+BsPaV3O +VBs/zBpMePL3Su7DiLIxhhjQqjTmSD6NbfaI0ZfBf3nnVznKdSugFCaGX3uqdnuffWX d++FQGX5MCMQphMz32mLkEZ5/qFpFKdQ/FpjvKTnw7NoO7Owjmo9oveC+Yek5q00urNi kU4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=gczC5kEj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si22840248pla.323.2019.05.28.07.30.41; Tue, 28 May 2019 07:30:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=gczC5kEj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbfE1OF0 (ORCPT + 99 others); Tue, 28 May 2019 10:05:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:50562 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfE1OF0 (ORCPT ); Tue, 28 May 2019 10:05:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=x9AREU78wDa9PBUDBxEftQKPg0c8hz4x/bLmf+9GcpQ=; b=gczC5kEji2unkiDt8TjEfNkqD nNiKfI9BuVAEgXXKhZerxf1jtCCxn7i9uYMRuyQQey4g7C4HOF7ZFdvWuYk57ps8tAH7p1tnwe7lL x3VCuu5K/55TpWeZrWVaWu4TOvXBuOFgoILR4hrTYBk/9JgGhiunTo7rEfKJqECJTFDf4wAtV3t4H /Gl+F75FbnKrAg+7jAafOUP4XoNV2pxjZG1D7mruxHsSic7y5c8xmjeRGEmTwMOdttGIGfeQJ9R40 3Sa47u2yFVaGB1WF46gawc/hX4872Q/MgypI20+DkPwhe3jEUx0NGT/VwNuYoIDsUWsLPWIGttYC2 iSr++QDyg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVcjA-0004RZ-8V; Tue, 28 May 2019 14:05:20 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 088B420750761; Tue, 28 May 2019 16:05:19 +0200 (CEST) Date: Tue, 28 May 2019 16:05:18 +0200 From: Peter Zijlstra To: "Liang, Kan" Cc: mingo@kernel.org, acme@redhat.com, vincent.weaver@maine.edu, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, ak@linux.intel.com, jolsa@redhat.com, eranian@google.com Subject: Re: [PATCH V2 1/3] perf/x86: Disable non generic regs for software/probe events Message-ID: <20190528140518.GU2623@hirez.programming.kicks-ass.net> References: <1558984077-7773-1-git-send-email-kan.liang@linux.intel.com> <20190528085601.GL2623@hirez.programming.kicks-ass.net> <7c8d8998-4722-e059-d378-b8517193e32f@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c8d8998-4722-e059-d378-b8517193e32f@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 28, 2019 at 09:33:40AM -0400, Liang, Kan wrote: > Uncore PMU doesn't support sampling. It will return -EINVAL. > There is no regs support for counting. The request will be ignored. > > I think current check for uncore is good enough. breakpoints then.. There's also no guarantee you covered all software events, and the core rewrite will allow other per-task/sampling PMUs too. The approach you take is just not complete, don't do that.