linux_dsm_epyc7002/tools/perf/arch/x86
Adrian Hunter 1c6f709b9f perf intel-pt: Fix error with config term "pt=0"
Users should never use 'pt=0', but if they do it may give a meaningless
error:

	$ perf record -e intel_pt/pt=0/u uname
	Error:
	The sys_perf_event_open() syscall returned with 22 (Invalid argument) for
	event (intel_pt/pt=0/u).

Fix that by forcing 'pt=1'.

Committer testing:

  # perf record -e intel_pt/pt=0/u uname
  Error:
  The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (intel_pt/pt=0/u).
  /bin/dmesg | grep -i perf may provide additional information.

  # perf record -e intel_pt/pt=0/u uname
  pt=0 doesn't make sense, forcing pt=1
  Linux
  [ perf record: Woken up 1 times to write data ]
  [ perf record: Captured and wrote 0.020 MB perf.data ]
  #

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/b7c5b4e5-9497-10e5-fd43-5f3e4a0fe51d@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-12-17 14:54:51 -03:00
..
annotate perf annotate: Handle variables in 'sub', 'or' and many other instructions 2018-04-13 10:00:05 -03:00
entry/syscalls perf tools: Update x86's syscall_64.tbl, adding 'io_pgetevents' and 'rseq' 2018-06-25 11:59:36 -03:00
include perf tests: Add breakpoint modify tests 2018-08-30 14:49:22 -03:00
tests perf tests: Add breakpoint modify tests 2018-08-30 14:49:22 -03:00
util perf intel-pt: Fix error with config term "pt=0" 2018-12-17 14:54:51 -03:00
Build perf tests: Add arch tests 2015-10-05 16:55:38 -03:00
Makefile perf tools: Move syscall_64.tbl check into check-headers.sh 2018-08-14 15:10:40 -03:00