summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2019-08-06 04:46:06 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-14 09:59:59 -0400
commit243384dd25c8ea721c5c82a229eaf33cbd1bfd52 (patch)
treee901bc6d68fe61c257ee4a1bd1ac15a8407c1ef4
parent1b9921546a9641aefc4a52c1c635b96b67142993 (diff)
perf intel-pt: Add brief documentation for PEBS via Intel PT
Document how to select PEBS via Intel PT and how to display synthesized PEBS samples. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190806084606.4021-8-alexander.shishkin@linux.intel.com Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> [ Update the example to use a group with intel_pt// as the group leader, as per Alex comment ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Documentation/intel-pt.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/Documentation/intel-pt.txt b/tools/perf/Documentation/intel-pt.txt
index 50c5b60101bd..e0d9e7dd4f17 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.
919 919
920Note there is currently no advantage to using Intel PT instead of LBR, but 920Note there is currently no advantage to using Intel PT instead of LBR, but
921that may change in the future if greater use is made of the data. 921that may change in the future if greater use is made of the data.
922
923
924PEBS via Intel PT
925=================
926
927Some hardware has the feature to redirect PEBS records to the Intel PT trace.
928Recording is selected by using the aux-output config term e.g.
929
930 perf record -c 10000 -e '{intel_pt/branch=0/,cycles/aux-output/ppp}' uname
931
932Note that currently, software only supports redirecting at most one PEBS event.
933
934To display PEBS events from the Intel PT trace, use the itrace 'o' option e.g.
935
936 perf script --itrace=oe