Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux/fpc-iii.git] / tools / perf / scripts / python / bin / intel-pt-events-record
blob10fe2b6977d4d214b81c26674e8b1fe85ce93232
1 #!/bin/bash
4 # print Intel PT Power Events and PTWRITE. The intel_pt PMU event needs
5 # to be specified with appropriate config terms.
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
13 perf record $@