Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6175479ybf; Thu, 5 Mar 2020 14:50:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vsgrj7GTRso+aAv4vxCxaYu3ivMFE+5YAkAP3qShxgHcAjN/MRbxWwkoGS3wPB2wUe+eG9Y X-Received: by 2002:a9d:372:: with SMTP id 105mr158605otv.15.1583448620296; Thu, 05 Mar 2020 14:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583448620; cv=none; d=google.com; s=arc-20160816; b=v05i45g6l+HDuWOqxczHNd51wRJkujnVywT7Tcn3pQmckmo9HsqVSKIkTJgIX7WkUs 0KJeOCrgZfxh6PuPhX/UX/iu2adJd7Z9OuNifg1unNcNVtGov7/CpVu29y7Jn6LAHAs3 87ROtZ3cQ5vy+n/oJqThbL0cF2POMbKKHze/3f5wQw+tvpUMxF2zz1LWT3QituInAd/m yAN+gVY6HRgTbAhDUUR3iC20hisAYcmphrssiguN8/VGkToIBKamkU45jcx3Spi3O6SB o7wxBk1HMQQ7prOyBTnbPCI6tAzqOL2l5q6El1L36U/qZnJLm4gfZ6WQyyB0yn2kPTF4 J8CA== 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; bh=vQwIGfc65lzvI8w653cfRASmlE3msmKIAkidK6oWnM4=; b=bXjLzaglDnEN3JQkXOMY9r/XHI4GTPPsZ6ObB5qfcl4j33ZQPfau/yhxEBeCrIJXyo w3iGj/XK2Yn0Dtn7arXPKpmmuSci2UyV3BnoPv52K9cNS3tLusBCEGvItnGU+W3Jbg2g obmUcGq9rbE1+AYxImuJq2RSeY7BP2P1ul1mNp+J1z7UqregB0ms6PMhum1Xl0xyuD4D XNGuAbnjxv51JSyqCgLX90vmmyMDD4FsO2eLQxaF3y7HfZX4QpHVdubOiQxPevly/JsP PODet+rM41zsgf1PkhV5YKAdsR7Ab7cCBRWRkaft3Lz/1znDcZEsr0qsILA3Rp3kysRP 7RjQ== 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 a25si215168oid.67.2020.03.05.14.50.08; Thu, 05 Mar 2020 14:50:20 -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 S1726676AbgCEWsx (ORCPT + 99 others); Thu, 5 Mar 2020 17:48:53 -0500 Received: from mga11.intel.com ([192.55.52.93]:5209 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgCEWsx (ORCPT ); Thu, 5 Mar 2020 17:48:53 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2020 14:48:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,519,1574150400"; d="scan'208";a="387645389" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga004.jf.intel.com with ESMTP; 05 Mar 2020 14:48:52 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id C0679301BC6; Thu, 5 Mar 2020 14:48:52 -0800 (PST) Date: Thu, 5 Mar 2020 14:48:52 -0800 From: Andi Kleen To: Luwei Kang Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, tglx@linutronix.de, bp@alien8.de, hpa@zytor.com, pbonzini@redhat.com, sean.j.christopherson@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, pawan.kumar.gupta@linux.intel.com, thomas.lendacky@amd.com, fenghua.yu@intel.com, kan.liang@linux.intel.com, like.xu@linux.intel.com Subject: Re: [PATCH v1 00/11] PEBS virtualization enabling via DS Message-ID: <20200305224852.GE1454533@tassilo.jf.intel.com> References: <1583431025-19802-1-git-send-email-luwei.kang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1583431025-19802-1-git-send-email-luwei.kang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Testing: > The guest can use PEBS feature like native. e.g. Could you please add example qemu command lines too? That will make it much easier for someone to reproduce. -Andi > > # perf record -e instructions:ppp ./br_instr a > > perf report on guest: > # Samples: 2K of event 'instructions:ppp', # Event count (approx.): 1473377250 > # Overhead Command Shared Object Symbol > 57.74% br_instr br_instr [.] lfsr_cond > 41.40% br_instr br_instr [.] cmp_end > 0.21% br_instr [kernel.kallsyms] [k] __lock_acquire > > perf report on host: > # Samples: 2K of event 'instructions:ppp', # Event count (approx.): 1462721386 > # Overhead Command Shared Object Symbol > 57.90% br_instr br_instr [.] lfsr_cond > 41.95% br_instr br_instr [.] cmp_end > 0.05% br_instr [kernel.vmlinux] [k] lock_acquire