linux_dsm_epyc7002/tools/perf
David Ahern 2b821cce1c perf evsel: Handle ENODEV on default cycles event
Some systems (e.g., VMs on qemu-0.13 with the default vcpu model) report
an unsupported CPU model:

Performance Events: unsupported p6 CPU model 2 no PMU driver, software events only.

Subsequent invocations of perf fail with:

The sys_perf_event_open() syscall returned with 19 (No such device) for event (cycles).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?

Add ENODEV to the list of errno's to fallback to cpu-clock.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1374190079-28507-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-07-22 12:03:57 -03:00
..
arch
bench
config perf tools: Use default include path notation for libtraceevent headers 2013-07-12 13:45:54 -03:00
Documentation perf diff: Add generic order option for compute sorting 2013-07-12 13:54:16 -03:00
python
scripts
tests perf tests: Check proper prev_state size for sched_switch tp 2013-07-17 12:34:53 -03:00
ui perf tools: Move hist_entry__period_snprintf into stdio code 2013-07-12 13:54:18 -03:00
util perf evsel: Handle ENODEV on default cycles event 2013-07-22 12:03:57 -03:00
.gitignore
bash_completion
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c perf diff: Add generic order option for compute sorting 2013-07-12 13:54:16 -03:00
builtin-evlist.c
builtin-help.c
builtin-inject.c perf tools: Remove event types framework completely 2013-07-15 16:28:22 -03:00
builtin-kmem.c perf tools: struct thread has a tid not a pid 2013-07-12 13:53:50 -03:00
builtin-kvm.c
builtin-list.c perf list: List kernel supplied event aliases 2013-07-12 13:53:53 -03:00
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c perf tools: Remove event types framework completely 2013-07-15 16:28:22 -03:00
builtin-report.c perf tools: Remove event types framework completely 2013-07-15 16:28:22 -03:00
builtin-sched.c perf tools: struct thread has a tid not a pid 2013-07-12 13:53:50 -03:00
builtin-script.c perf script: Fix named threads support 2013-07-22 11:55:53 -03:00
builtin-stat.c
builtin-timechart.c perf timechart: Remove event types framework only user 2013-07-15 16:14:47 -03:00
builtin-top.c perf report/top: Add option to collapse undesired parts of call graph 2013-07-12 13:53:55 -03:00
builtin-trace.c perf tools: struct thread has a tid not a pid 2013-07-12 13:53:50 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile perf tools: Fix 'make tools/perf' 2013-07-17 10:40:02 -03:00
MANIFEST
perf-archive.sh
perf.c
perf.h