diff options
| author | Adrian Hunter <[email protected]> | 2017-05-26 08:17:35 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-06-30 14:50:53 +0000 |
| commit | cc892720d85a31cc04f4c01c03d88a0eb3c437fa (patch) | |
| tree | 8563fcf24e6590d75f610aa9422b16dbfb54f597 /tools/perf/scripts/python/bin/intel-pt-events-record | |
| parent | perf intel-pt: Synthesize new power and "ptwrite" events (diff) | |
| download | kernel-cc892720d85a31cc04f4c01c03d88a0eb3c437fa.tar.gz kernel-cc892720d85a31cc04f4c01c03d88a0eb3c437fa.zip | |
perf intel-pt: Add example script for power events and PTWRITE
Add script intel-pt-events.py that provides an example of how to unpack the
raw data for power events and PTWRITE.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/intel-pt-events-record')
| -rw-r--r-- | tools/perf/scripts/python/bin/intel-pt-events-record | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/bin/intel-pt-events-record b/tools/perf/scripts/python/bin/intel-pt-events-record new file mode 100644 index 000000000000..10fe2b6977d4 --- /dev/null +++ b/tools/perf/scripts/python/bin/intel-pt-events-record @@ -0,0 +1,13 @@ +#!/bin/bash + +# +# print Intel PT Power Events and PTWRITE. The intel_pt PMU event needs +# to be specified with appropriate config terms. +# +if ! echo "$@" | grep -q intel_pt ; then + echo "Options must include the Intel PT event e.g. -e intel_pt/pwr_evt,ptw/" + echo "and for power events it probably needs to be system wide i.e. -a option" + echo "For example: -a -e intel_pt/pwr_evt,branch=0/ sleep 1" + exit 1 +fi +perf record $@ |
