Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp126497imj; Thu, 14 Feb 2019 16:53:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IaMp9IloucDJtXT1Ds9Zj/sJ+YX1NwIEtVuS58fQb75VYrJuaChOZG1TWp2rmmmsLQZSe47 X-Received: by 2002:a63:c503:: with SMTP id f3mr2648185pgd.431.1550192002930; Thu, 14 Feb 2019 16:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550192002; cv=none; d=google.com; s=arc-20160816; b=ESeS2wEgE5eWVzK2XtVjDjwp25rs8hus0QJO3W+J1R6MMtqJrxu7hyHvK5iYjYdMH1 1d4IbbLw0t/phBRmCO19WWYiHACpa+/y4CmZi3AjPQdvcoT+cJrlqgmh129bwKQFaRZi NmhScNGQpY+Xo7CybydzQ0pB7fv3CnsbdFaOz+cpKEbWN2VTBlxijWS1SD1xUlhNYJ8A CkB9WfcuVl1YX8TPJ0RjpNjkA3ApN4v1GaUAjcrYRS8cEQBv014nkXeRlzvMc7dNxCVP MURnvR2d/XQIQ6XStFN9C8RhMEafdrwtaKIU81SIF9A54W5ZJK/OnYKheYRYRFZVjfPY 6S8w== 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; bh=CGxeOeVXsjI+DRE1UTMJUQCejeMhCmZSw9B6oAN6sRA=; b=sAjsfK0ehCEYlcK04ITBHUvGHV56Qj3kk7uQbOpqVlKqyJU3kPVS1XjCkRD6D9uLH8 wjBWKdlEpuihTp0oZYpIJK46EicAUS1vakNQg+VQzLAsc4WX7rqFKLdjZzkWO0CQB1Iz oKdpcNm6/4IooilmtnvehF37zN5RBREPeWYtaqqon0eGzGlZKshLGvfqyp9PPMWgiNL1 qB9O4MIVW6jub9sJ3Q5eCfw9tPTflT3DfvKaP6K/hzDK1NtrgKjTJz5+/4m9clD4f/8G NOx0FKaGs0U7MbONxf6Z6kP5xIptL5oaBWCOpZ+GpqZb25JaniIX2oBwM4kUChK8ld8m QLwA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si271933pgk.234.2019.02.14.16.53.07; Thu, 14 Feb 2019 16:53:22 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502719AbfBNQ0O (ORCPT + 99 others); Thu, 14 Feb 2019 11:26:14 -0500 Received: from mga04.intel.com ([192.55.52.120]:2216 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388556AbfBNQ0O (ORCPT ); Thu, 14 Feb 2019 11:26:14 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2019 08:26:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,369,1544515200"; d="scan'208";a="124496687" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga008.fm.intel.com with ESMTP; 14 Feb 2019 08:26:13 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 7EFBB301247; Thu, 14 Feb 2019 08:26:13 -0800 (PST) Date: Thu, 14 Feb 2019 08:26:13 -0800 From: Andi Kleen To: Wei Wang Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com, peterz@infradead.org, kan.liang@intel.com, mingo@redhat.com, rkrcmar@redhat.com, like.xu@intel.com, jannh@google.com, arei.gonglei@huawei.com, jmattson@google.com Subject: Re: [PATCH v5 07/12] perf/x86: no counter allocation support Message-ID: <20190214162613.GK16922@tassilo.jf.intel.com> References: <1550135174-5423-1-git-send-email-wei.w.wang@intel.com> <1550135174-5423-8-git-send-email-wei.w.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550135174-5423-8-git-send-email-wei.w.wang@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 > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 9de8780..ec97a70 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -372,7 +372,8 @@ struct perf_event_attr { > context_switch : 1, /* context switch data */ > write_backward : 1, /* Write ring buffer from end to beginning */ > namespaces : 1, /* include namespaces data */ > - __reserved_1 : 35; > + no_counter : 1, /* no counter allocation */ Not sure we really want to expose this in the user ABI. Perhaps make it a feature of the in kernel API only? -Andi