diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-07-01 04:39:25 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-07-01 04:39:25 -0400 |
| commit | 23acd3e1a0a377cf3730ccb753aa1fdc50378396 (patch) | |
| tree | a80d7cfd2be43d77af659d5f309a5032be5e0662 /tools/perf/scripts/python/bin | |
| parent | e91c8d97eac74e603481840d950536bcb62b471b (diff) | |
| parent | 644e0840ad4615e032d67adec6ee60f821b669fe (diff) | |
Merge tag 'perf-core-for-mingo-4.13-20170630' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
Intel PT enhancements:
- Support "ptwrite" instruction, a way to stuff 32 or 64 bit values into
the Intel PT trace (Adrian Hunter)
- Support power events in Intel PT to report changes to C-state (Adrian
Hunter)
- Synthesize Intel PT events as PERF_RECORD_SAMPLE records with a
perf_event_attr.type (PERF_TYPE_SYNTH) just after the range used by the
kernel, i.e. right after what is allocated for PMUs, at INT_MAX + 1U,
attr.config will have the identification for the synthesized event and
the PERF_SAMPLE_RAW payload will have its fields (Adrian Hunter)
Infrastructure changes:
- Remove warning() and error(), using instead pr_warning() and
pr_error(), consolidating error reporting (Arnaldo Carvalho de Melo)
- Add platform dependency to 'perf test 15' (Thomas Richter)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.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 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | # | ||
| 4 | # print Intel PT Power Events and PTWRITE. The intel_pt PMU event needs | ||
| 5 | # to be specified with appropriate config terms. | ||
| 6 | # | ||
| 7 | if ! echo "$@" | grep -q intel_pt ; then | ||
| 8 | echo "Options must include the Intel PT event e.g. -e intel_pt/pwr_evt,ptw/" | ||
| 9 | echo "and for power events it probably needs to be system wide i.e. -a option" | ||
| 10 | echo "For example: -a -e intel_pt/pwr_evt,branch=0/ sleep 1" | ||
| 11 | exit 1 | ||
| 12 | fi | ||
| 13 | 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 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # description: print Intel PT Power Events and PTWRITE | ||
| 3 | perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/intel-pt-events.py \ No newline at end of file | ||
