linux/tools/perf/arch/x86/util
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
..
auxtrace.c perf intel-pt/bts: In auxtrace_record__init_intel() evlist is never NULL 2018-03-08 10:05:56 -03:00
Build perf machine: Synthesize and process mmap events for x86 PTI entry trampolines 2018-05-23 10:26:39 -03:00
dwarf-regs.c perf dwarf: Guard !x86_64 definitions under #ifdef else clause 2016-04-08 12:04:29 -03:00
event.c perf machine: Synthesize and process mmap events for x86 PTI entry trampolines 2018-05-23 10:26:39 -03:00
group.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
header.c perf vendor events: Add stepping in CPUID string for x86 2018-11-21 22:39:57 -03:00
intel-bts.c perf intel-pt/bts: Remove unused SAMPLE_SIZE defines and bts priv array 2017-06-19 15:27:09 -03:00
intel-pt.c perf intel-pt: Fix error with config term "pt=0" 2018-12-17 14:54:51 -03:00
kvm-stat.c perf tools: Add Hygon Dhyana support 2018-11-21 22:39:56 -03:00
machine.c perf machine: Create maps for x86 PTI entry trampolines 2018-05-23 10:24:08 -03:00
perf_regs.c perf tools: Fix compilation errors on gcc8 2018-07-11 09:39:57 -04:00
pmu.c perf tools: Fix the build on the alpine:edge distro 2018-07-30 13:15:03 -03:00
tsc.c perf tools: Fix the build on the alpine:edge distro 2018-07-30 13:15:03 -03:00
unwind-libdw.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
unwind-libunwind.c perf tools: Fix compile error with libunwind x86 2018-01-08 11:11:57 -03:00