Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1215756ybl; Tue, 13 Aug 2019 09:06:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVZ7m0DsbezIZxg6Vr8XmPjgm1hXJRls2jtOr8ZmemrON30mMooUTcLfKeohpLUv07s7Ac X-Received: by 2002:a62:be04:: with SMTP id l4mr40336326pff.77.1565712363616; Tue, 13 Aug 2019 09:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565712363; cv=none; d=google.com; s=arc-20160816; b=X1mIBJIPhmY8hbV8QPuPshMAhkjw7nu4PdpiDR3jKAqgXdw9VxbVVJJ1VL99CbHER+ LrdLbmvRWizPK0Bl4K/EF2aTPVfIUYy13pV3eTbRGldAP8uq04/PYKeXnS7OTLZx+7UH uDHmniK11DXMyzIkB1/iEaLIA6+EHZ43P1u6yApOaFEC0378L6BklwNhBR+g9HQm3GXt 0rmtae/UPp7Loq7szCh2VjCd5MUg0odkLDf4nuIDKhe6kVJhVostr4eCvXKoy73V8ecU 5XEI3wVPD0NhimJ/KfT0aXAvmP+kj5Vge+sm8WSbiLgaGjU5mMHgCLOPAyAl/wz6bRmD o1Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=lxYe+z7GFPX5frKlndP2vKY1F8aK1zWlHOVNbFV19os=; b=SpnMuTkpQYC0YpghT5+EVF+Qakj2R/Rvp2oi3PETSWvKlZBltLEQHocCrFu/VzbIcB TAG9J6HO0GNbonol2hGonVXB6ja7jpisC8NkSfXvpOlPM2vX2g0dVmr4+tQnpnEMkZkT jNyiiVhCCh3djt++WWUeCVZIftubNaFoMsvvEe8P9oYLz1BTZG/kTgxnfoRFXI04tTBR mmhVjjT53Sd9R6jPDFodcdZsr678o5ndiJMt5ZTfNZTkzrUXKwFjAOq10YLmOnxTDu0Z owWeGb2wo5fmlXfZC0I1ICspJ3hYTDBckFC8ds6PU71LdnYpuPxkeOqOp0+cMiOwbXG7 1Vfg== 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 v14si1207072pjb.82.2019.08.13.09.05.47; Tue, 13 Aug 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 S1729519AbfHMOFt (ORCPT + 99 others); Tue, 13 Aug 2019 10:05:49 -0400 Received: from mga03.intel.com ([134.134.136.65]:23725 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729331AbfHMOFt (ORCPT ); Tue, 13 Aug 2019 10:05:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 07:05:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,381,1559545200"; d="scan'208";a="183879780" Received: from um.fi.intel.com (HELO localhost) ([10.237.72.183]) by FMSMGA003.fm.intel.com with ESMTP; 13 Aug 2019 07:05:46 -0700 From: Alexander Shishkin To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, kan.liang@linux.intel.com, Adrian Hunter , alexander.shishkin@linux.intel.com Subject: Re: [PATCH v6 7/7] perf intel-pt: Add brief documentation for PEBS via Intel PT In-Reply-To: <20190813135149.GA3754@redhat.com> References: <20190806084606.4021-1-alexander.shishkin@linux.intel.com> <20190806084606.4021-8-alexander.shishkin@linux.intel.com> <20190813135149.GA3754@redhat.com> Date: Tue, 13 Aug 2019 17:05:46 +0300 Message-ID: <87imr12m9x.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnaldo Carvalho de Melo writes: > Em Tue, Aug 06, 2019 at 11:46:06AM +0300, Alexander Shishkin escreveu: >> From: Adrian Hunter >> >> Document how to select PEBS via Intel PT and how to display synthesized >> PEBS samples. >> >> Signed-off-by: Adrian Hunter >> Signed-off-by: Alexander Shishkin >> --- >> tools/perf/Documentation/intel-pt.txt | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >> >> diff --git a/tools/perf/Documentation/intel-pt.txt b/tools/perf/Documentation/intel-pt.txt >> index 50c5b60101bd..8dc513b6607b 100644 >> --- a/tools/perf/Documentation/intel-pt.txt >> +++ b/tools/perf/Documentation/intel-pt.txt >> @@ -919,3 +919,18 @@ amended to take the number of elements as a parameter. >> >> Note there is currently no advantage to using Intel PT instead of LBR, but >> that may change in the future if greater use is made of the data. >> + >> + >> +PEBS via Intel PT >> +================= >> + >> +Some hardware has the feature to redirect PEBS records to the Intel PT trace. >> +Recording is selected by using the aux-output config term e.g. >> + >> + perf record -c 10000 -e cycles/aux-output/ppp -e intel_pt/branch=0/ uname >> + >> +Note that currently, software only supports redirecting at most one PEBS event. > > So, with these patches, but not the kernel ones I end up getting: > > [root@quaco ~]# perf record -c 10000 -e cycles/aux-output/ppp -e intel_pt/branch=0/ uname FWIW, the correct command line for that would have the two events grouped and intel_pt be the group leader. Regards, -- Alex