Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3811928ybh; Tue, 6 Aug 2019 01:47:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn+uYEFJmNpM0UPiz/pgg3dg7/txr3HxP12A0AWooPaPGti11XmanvNE5fpzD2gv1575YI X-Received: by 2002:aa7:9786:: with SMTP id o6mr2456209pfp.222.1565081249962; Tue, 06 Aug 2019 01:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565081249; cv=none; d=google.com; s=arc-20160816; b=IMP5sY4OkDOXUuaHA4geHOb+clEc6UlIe0mifO3HW6X4G1zW1Cqm31a7RvG6R0u8bm d2u3e37LbQYrTpFBEzK8Sj3YwfBwGe0YEzUkpRT5rFYCDfryk3+UtNsqA9LffmxNFF/6 Cwu0P18smsCaw43V5COisYpmi3MRdhxF9UGMNlVtt8S1fo4H8x6n32s7+9VT5dQYrsq9 jA6rc1HxiY0h4UqPS0fraaG/O1DrCkL+t573y+dWvWfizxQW0o1h7m9ATXbm7S3CXMJg udWc0LVXpuSCg8nxDes10m8L+ofVo92zVtRbNAifWSwl54s1UNrtw+mt0R+hzmmtLIdS XBrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qYEWcyfkVVPepI3cEweiJI219xYVLa8LO8LecsTdEbk=; b=Qc2qLjj5aWYY+vWlcNWvPEuMhhPVUn+pPICn7jqZA1nhGIUmY+dc7uRhqtcybMC+zw TrkM6CglH/Ev9PWSzYBxDPOvu8C+8Q5OllpNygHMs1vuwv62LtGjWpL8X4a0jCH0BQNp 69VEafVQ72QI7+JVL9t9Jnoj+4EmedkZajhhfPe3qll4w2NsBOA4MiIA1Cje43RTZ261 NFh6M06ZBTVFU3fKNMy3YINLmE9zACEnjZHzhqATG+KBCjfFhfzNnqWcHQDOcvi6qU3P J11RBaSZ3sd8ZsJUdnThJld/cHm2NANSlnaYefiooKyNJfGjMrI7gL56lLgJbgOuCont sQjw== 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 i127si44628514pfc.177.2019.08.06.01.47.14; Tue, 06 Aug 2019 01:47:29 -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 S1732447AbfHFIqe (ORCPT + 99 others); Tue, 6 Aug 2019 04:46:34 -0400 Received: from mga01.intel.com ([192.55.52.88]:45272 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732430AbfHFIqc (ORCPT ); Tue, 6 Aug 2019 04:46:32 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 01:46:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,353,1559545200"; d="scan'208";a="174122841" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 06 Aug 2019 01:46:30 -0700 From: Alexander Shishkin To: Peter Zijlstra Cc: Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel@vger.kernel.org, kan.liang@linux.intel.com, Adrian Hunter , Alexander Shishkin Subject: [PATCH v6 7/7] perf intel-pt: Add brief documentation for PEBS via Intel PT Date: Tue, 6 Aug 2019 11:46:06 +0300 Message-Id: <20190806084606.4021-8-alexander.shishkin@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190806084606.4021-1-alexander.shishkin@linux.intel.com> References: <20190806084606.4021-1-alexander.shishkin@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + +To display PEBS events from the Intel PT trace, use the itrace 'o' option e.g. + + perf script --itrace=oe -- 2.20.1