File perf-intel-pt-add-brief-documentation-for-pebs-via-intel-pt.patch of Package perf
49
1
From: Adrian Hunter <adrian.hunter@intel.com>
2
Date: Tue, 6 Aug 2019 11:46:06 +0300
3
Subject: perf intel-pt: Add brief documentation for PEBS via Intel PT
4
Git-commit: 243384dd25c8ea721c5c82a229eaf33cbd1bfd52
5
Patch-mainline: v5.4-rc1
6
References: JIRA#SLE-9874
7
8
Document how to select PEBS via Intel PT and how to display synthesized
9
PEBS samples.
10
11
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
12
Cc: Jiri Olsa <jolsa@kernel.org>
13
Cc: Kan Liang <kan.liang@linux.intel.com>
14
Cc: Namhyung Kim <namhyung@kernel.org>
15
Cc: Peter Zijlstra <peterz@infradead.org>
16
Link: http://lkml.kernel.org/r/20190806084606.4021-8-alexander.shishkin@linux.intel.com
17
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
18
[ Update the example to use a group with intel_pt// as the group leader, as per Alex comment ]
19
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
20
Signed-off-by: Tony Jones <tonyj@suse.de>
21
---
22
tools/perf/Documentation/intel-pt.txt | 15 +++++++++++++++
23
1 file changed, 15 insertions(+)
24
25
diff --git a/tools/perf/Documentation/intel-pt.txt b/tools/perf/Documentation/intel-pt.txt
26
index 50c5b60101bd..e0d9e7dd4f17 100644
27
--- a/tools/perf/Documentation/intel-pt.txt
28
+++ b/tools/perf/Documentation/intel-pt.txt
29
30
31
Note there is currently no advantage to using Intel PT instead of LBR, but
32
that may change in the future if greater use is made of the data.
33
+
34
+
35
+PEBS via Intel PT
36
+=================
37
+
38
+Some hardware has the feature to redirect PEBS records to the Intel PT trace.
39
+Recording is selected by using the aux-output config term e.g.
40
+
41
+ perf record -c 10000 -e '{intel_pt/branch=0/,cycles/aux-output/ppp}' uname
42
+
43
+Note that currently, software only supports redirecting at most one PEBS event.
44
+
45
+To display PEBS events from the Intel PT trace, use the itrace 'o' option e.g.
46
+
47
+ perf script --itrace=oe
48
49