Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1508538img; Tue, 19 Mar 2019 09:06:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWurZUFfOrzJT1DyY1bxjlcn8IMR6E8Mr9jqu2YJJz8p0yQZ/U31ST46J8e41iTNaqs1Ke X-Received: by 2002:a63:441b:: with SMTP id r27mr2404689pga.36.1553011563695; Tue, 19 Mar 2019 09:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553011563; cv=none; d=google.com; s=arc-20160816; b=dU1X8jAUFdaKIYqJQzL1ihpUCAZMO7Udq+tcV7mFM132gGDhJWL2y10cuUpX4NAdvU LB1KaSG7uPlZPgsvtA7GegYU2Jf3gfFDPzLQ9JtENGRXnoN9zHr1GxoOLXAlqYsd8Kjx SvtL4Y+r7beqY9eSJvjY6jWVx3HT3v/AIPXdk1+BaB0HilTxZ4P8ajM6cl99ZTIM3DRY L/yyZh5V4UEliDX4lsiHch/2KaYP/b1thSEU0qisM90lyiYAFMmswvYlX62lZmi0kCmu EUvHc9MrculR3JUhL2L3FQPdXsLyq9LRDGvQK0zIIOoW7sTplJWU3cdaWl8jlcy4Uw9x 97aw== 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=Gk4xr71SsZ/sbuw89WYGqFwDfSM9GHcpG0zUvo7Lg7o=; b=UtGRcOHjxJVD/FEJqlaPPvPOAjemh5xzu/2uxo8Btini0KsHRRG6H3N3dtTmh0Ckfo bXMgWYm5GB73ItVynfjPDMJDADNRmjk9nT6Jgu/OCmLf8twhJgIKy3iTTh1v2fOu/zTB 90Fo+0srBOlyF3jnqt+v+O8exs9i/cWNYIQUsax3rbwgEi+1kvgxdn3sqn19Ze+11p7T KdME+QJgl1AJQPfDA7+XG5+XvKn2Zm+rb0a6eJCJD4psV1HPT1mAagQDvyFyi10FwxKc NX5DwChdGNnDK5NYcOR5So3iuBLdIEO/1Q7UnSMAU/zKBbtBbyObarie9Rok0+ZwNKDC bRCA== 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 m24si12227350pgh.485.2019.03.19.09.05.47; Tue, 19 Mar 2019 09:06:03 -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; 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 S1727862AbfCSQDi (ORCPT + 99 others); Tue, 19 Mar 2019 12:03:38 -0400 Received: from mga05.intel.com ([192.55.52.43]:65286 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbfCSQDi (ORCPT ); Tue, 19 Mar 2019 12:03:38 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 09:03:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,498,1544515200"; d="scan'208";a="330022091" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga005.fm.intel.com with ESMTP; 19 Mar 2019 09:03:37 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 44B2C301BB6; Tue, 19 Mar 2019 09:03:37 -0700 (PDT) Date: Tue, 19 Mar 2019 09:03:37 -0700 From: Andi Kleen To: Peter Zijlstra Cc: kan.liang@linux.intel.com, acme@kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, jolsa@kernel.org, eranian@google.com, alexander.shishkin@linux.intel.com Subject: Re: [PATCH 03/22] perf/x86/intel: Support adaptive PEBSv4 Message-ID: <20190319160337.GW24002@tassilo.jf.intel.com> References: <20190318214144.4639-1-kan.liang@linux.intel.com> <20190318214144.4639-4-kan.liang@linux.intel.com> <20190319144748.GH5996@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190319144748.GH5996@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 19, 2019 at 03:47:48PM +0100, Peter Zijlstra wrote: > On Mon, Mar 18, 2019 at 02:41:25PM -0700, kan.liang@linux.intel.com wrote: > > From: Kan Liang > > > > Adaptive PEBS is a new way to report PEBS sampling information. Instead > > of a fixed size record for all PEBS events it allows to configure the > > PEBS record to only include the information needed. Events can then opt > > in to use such an extended record, or stay with a basic record which > > only contains the IP. > > > > The major new feature is to support LBRs in PEBS record. > > This allows (much faster) large PEBS, while still supporting callstacks > > through callstack LBR. > > Does it also allow normal LBR usage? Or does it have to be callstacks? It allows normal LBR too. But I would expect callstack to be the most common one. As long as you set a period you can get multi-record PEBS with -g, which has a lot lower lower overhead than using PMIs. Eventually I hope we can even make multi-record PEBS work in frequency mode by averaging the frequency over multiple records. > > hwc->config |= ARCH_PERFMON_EVENTSEL_INT; > > + hwc->config &= ~ICL_EVENTSEL_ADAPTIVE; > > Just curious; the way I read the SDM, we could leave this set, is that > correct? It needs to be cleared to get the basic record (which should be a common case) -Andi