Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3411144ybk; Tue, 19 May 2020 04:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOlgw1mTcxdX7L1wefTVJcSptiQLlRFB8LGaagYh8orHKwI1ibYw3qBL/UnH5JSaj456ni X-Received: by 2002:a17:906:868f:: with SMTP id g15mr1456036ejx.208.1589886412120; Tue, 19 May 2020 04:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589886412; cv=none; d=google.com; s=arc-20160816; b=UksbDGtlME0YaNd4lGQ802m1lKbnbgNXEAqypB9eTczyT7QK8A5fvdiXDCqL1L5BfO npYCopB+3VkJyVl7Vsl5ESIy7eVSr6aqSr2JUwJYooaei8BebVGb173vqYODhM+EEI3n akVGBvATFE2n+l8e7Cl7hoqQ2Gq5VhDbJJSHkCJHaRtJU009O6ZpvAksiiSkWbrRg6Ua VtNOvOicw+NdWHMtfVFQv1HAbzr2rYJ877VbkJuwkwLi/Nf37cWRrqqdVedotn6SPCJM tnNTr0ZhiUd5o4shg753ZbSvs8rTeY3PqHWMeTNTtt6IBvMgB5LtDRMP4FrwI2KqrLyO jUjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Ej3zoQJl5wKcQRgdxw7ZljDCpE6zMLEMikMDC8zw6yo=; b=oQpaS+y3VSFeaqkJMtkO0DBBL91ZOkMwCDo+XsCbwV596znacPVmmX8Nud+E9nZWvv GW4jZZ0hJuYMVEPgqrZK95HsSR+dEn8cMSBCSMJgwE46Mz+ssRKArRvVQgTLa9GU4bW5 cCnq+KnidlpOylGQvC5sALL70pRlRhhvLmSijrCaxgxGGooeK4fwaTkl/8MljZk5AJV4 qj3t76crLuuerZf4ooR1ZJToEbR4mevV7SNcDyywQLRchTVuNOIiXr2aGLL3+F8XBfzN MnIoi7HBGar8BWyaW4pczZQnXuMyMEzdoOM6I7362Jq6ro3M+f7l/3jfjtQOs+1ghVwk K8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=eSGZ2Vmt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si8418911ejk.81.2020.05.19.04.06.28; Tue, 19 May 2020 04:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=eSGZ2Vmt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728728AbgESLDl (ORCPT + 99 others); Tue, 19 May 2020 07:03:41 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60884 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbgESLDk (ORCPT ); Tue, 19 May 2020 07:03:40 -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; bh=Ej3zoQJl5wKcQRgdxw7ZljDCpE6zMLEMikMDC8zw6yo=; b=eSGZ2VmtCNAkORypwtaQqJNgSj X1Ixh55nHJlzPpOdt0JopI6heH5P4k8VwHj/IcYnahHyPxAtDPz1hIxm4AEQexGX1dR9sEyNZzO49 u0JA/ctFC+4igqXX7ZCPizlsQXu2ZRM7x9uaiNpO+x1AjrnL4Q7qvlSp7o4j/34VRIBGI3P05SXW4 GDZPNEoazu6zS3l8ptYA6tTye6v8AUSrk9qmO+H3GXHpk/UrVTLXsTD6m/iuq2SOUMHo1bDa36U02 We8URx1gIcyY4tsP/7xEojDpBRWkS5Pm+S41ymElo/SLYuspYyUdWxBb4VOV2sbbUAT7UuZr9FPGj hSak3I8A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jazzf-0005cc-Em; Tue, 19 May 2020 11:01:07 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 0B1AB3008A8; Tue, 19 May 2020 13:01:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F16072868A9D5; Tue, 19 May 2020 13:01:04 +0200 (CEST) Date: Tue, 19 May 2020 13:01:04 +0200 From: Peter Zijlstra To: Like Xu Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , ak@linux.intel.com, wei.w.wang@intel.com Subject: Re: [PATCH v11 08/11] KVM: x86/pmu: Emulate LBR feature via guest LBR event Message-ID: <20200519110104.GH279861@hirez.programming.kicks-ass.net> References: <20200514083054.62538-1-like.xu@linux.intel.com> <20200514083054.62538-9-like.xu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200514083054.62538-9-like.xu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 14, 2020 at 04:30:51PM +0800, Like Xu wrote: > + struct perf_event_attr attr = { > + .type = PERF_TYPE_RAW, > + .size = sizeof(attr), > + .pinned = true, > + .exclude_host = true, > + .config = INTEL_FIXED_VLBR_EVENT, > + .sample_type = PERF_SAMPLE_BRANCH_STACK, > + .branch_sample_type = PERF_SAMPLE_BRANCH_CALL_STACK | > + PERF_SAMPLE_BRANCH_USER, Maybe order the fields according to how they're declared in the structure? > + };