diff options
author | 2017-08-14 13:14:36 -0400 | |
---|---|---|
committer | 2017-08-14 13:14:36 -0400 | |
commit | 1724c7c0c9494dcbdd7f630f29e1e8427cb231d1 (patch) | |
tree | d7c7ad032289cdf0633feee4bd6ec5800b666ca7 /tools/perf/scripts/python/bin | |
parent | drm/atomic: Handle -EDEADLK with out-fences correctly (diff) | |
parent | Linux 4.13-rc5 (diff) | |
download | linux-dev-1724c7c0c9494dcbdd7f630f29e1e8427cb231d1.tar.xz linux-dev-1724c7c0c9494dcbdd7f630f29e1e8427cb231d1.zip |
Merge origin/master into drm-misc-fixes
Backmerge 4.13-rc5 into drm-misc-fixes, it was getting a
little stale.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
-rw-r--r-- | tools/perf/scripts/python/bin/intel-pt-events-record | 13 | ||||
-rw-r--r-- | tools/perf/scripts/python/bin/intel-pt-events-report | 3 |
2 files changed, 16 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 $@ diff --git a/tools/perf/scripts/python/bin/intel-pt-events-report b/tools/perf/scripts/python/bin/intel-pt-events-report new file mode 100644 index 000000000000..9a9c92fcd026 --- /dev/null +++ b/tools/perf/scripts/python/bin/intel-pt-events-report @@ -0,0 +1,3 @@ +#!/bin/bash +# description: print Intel PT Power Events and PTWRITE +perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/intel-pt-events.py
\ No newline at end of file |