intel-pt-events-record 425 B

1234567891011121314
  1. #!/bin/bash
  2. #
  3. # print Intel PT Power Events and PTWRITE. The intel_pt PMU event needs
  4. # to be specified with appropriate config terms.
  5. #
  6. if ! echo "$@" | grep -q intel_pt ; then
  7. echo "Options must include the Intel PT event e.g. -e intel_pt/pwr_evt,ptw/"
  8. echo "and for power events it probably needs to be system wide i.e. -a option"
  9. echo "For example: -a -e intel_pt/pwr_evt,branch=0/ sleep 1"
  10. exit 1
  11. fi
  12. perf record $@