Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1214753ybl; Tue, 13 Aug 2019 09:05:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyDUGyDxI9MADJWuzt0Hs0lT/Wg4PYwmNd5S9WYlrl4j+IGv2nWtt66k/GyzCuPCLp0MDq X-Received: by 2002:a17:90a:3ad0:: with SMTP id b74mr2828640pjc.79.1565712318145; Tue, 13 Aug 2019 09:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565712318; cv=none; d=google.com; s=arc-20160816; b=AqFjCG1tDkcrosEn/KC7MO6KIxtx2BJw5OMF3tCPFgHMENDnCAcnWJEVQKMgy5VlpB eAcminek9Xfm1fe6NwnI73w6hJG8caIqX7xJbXpSiCJgw38QUf1V02kBFhbgL4QRkpes aMkGHt+iSHSyEksxaUWtec4imcLOLrNA/SL+CUFZ7w8wg0WlrmRmyYNULK+cjMKb0tOL vFDQYTaBaf/ky6aQF5N2vc62HxIQh3sXEvQpnV+s5EyRHGEXyZoNevTwPA2NCFr+w03/ NBCJ1JVWkYxm73OY1MeIYEaG3Mg/zPsB3GaU53d1oWS0PtNxnhf+ZPqKeCFSK1I8gwrX QPOQ== 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=jNfI7BnsdZs02gTL1wKIcAZ1qGz+PmfCgvtIokAg+do=; b=RcQUqBBksgDT8+uUWr5HXEnziGvSSxmuWh4/B/QGKCZFcn5jQfHu3yNifIKuoJfR8Q Jauru3151IYrNdAafl0H9TKgqLOPGpsOSMXsdUAtdQcK7DOfbv/RBTtv+Pu4ScFU+ZT+ GTSHxfVE7mN+7r2G/L48GSxbs40E0aNEzplZqX8tLHKaCRvYN9hJzylvndeAiXEM7itu NPU0YmGA5HIPAWtiWt9YaWc1YI5N6AE/uOqXK4EHW0augaDNfZPIXiCdl/0Zoz8gT2wd rzSWjdiv/0319RjB3QajY0c9g8KWfkcBNOIQwobegaSKY2BUWhwDBkAS2obbryVNm2ZZ D4AA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si60636467pfn.38.2019.08.13.09.05.02; Tue, 13 Aug 2019 09:05:18 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729226AbfHMNvx (ORCPT + 99 others); Tue, 13 Aug 2019 09:51:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59454 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbfHMNvx (ORCPT ); Tue, 13 Aug 2019 09:51:53 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EAA6630FB8D0; Tue, 13 Aug 2019 13:51:52 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-35.phx2.redhat.com [10.3.112.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B0081001948; Tue, 13 Aug 2019 13:51:52 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 8FB5B12E; Tue, 13 Aug 2019 10:51:49 -0300 (BRT) Date: Tue, 13 Aug 2019 10:51:49 -0300 From: Arnaldo Carvalho de Melo To: Alexander Shishkin Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, kan.liang@linux.intel.com, Adrian Hunter Subject: Re: [PATCH v6 7/7] perf intel-pt: Add brief documentation for PEBS via Intel PT Message-ID: <20190813135149.GA3754@redhat.com> References: <20190806084606.4021-1-alexander.shishkin@linux.intel.com> <20190806084606.4021-8-alexander.shishkin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190806084606.4021-8-alexander.shishkin@linux.intel.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Tue, 13 Aug 2019 13:51:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles/aux-output/ppp). /bin/dmesg | grep -i perf may provide additional information. [root@quaco ~]# I'll check if I can make it spew a more helpful message, then build a kernel with the kernel patches and try with it as well. PeterZ has the kernel ones landed on tip? I guess not, as perf/core I have should be in sync... - Arnaldo > +To display PEBS events from the Intel PT trace, use the itrace 'o' option e.g. > + > + perf script --itrace=oe > -- > 2.20.1