In fact, on Yakkety with 4.8.0-34, the results of running perf --call-graph are even more bizarre:
$ perf record --call-graph dwarf sleep 1
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?
$ grep -i config_perf_events /boot/config-$(uname -r)
CONFIG_PERF_EVENTS=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_PERF_EVENTS_INTEL_RAPL=m
CONFIG_PERF_EVENTS_INTEL_CSTATE=m
# CONFIG_PERF_EVENTS_AMD_POWER is not set
In fact, on Yakkety with 4.8.0-34, the results of running perf --call-graph are even more bizarre:
$ perf record --call-graph dwarf sleep 1 event_open( ) syscall returned with 22 (Invalid argument) for event (cycles). PERF_EVENTS= y kernel support configured? $(uname -r) PERF_EVENTS= y PERF_EVENTS_ INTEL_UNCORE= y PERF_EVENTS_ INTEL_RAPL= m PERF_EVENTS_ INTEL_CSTATE= m PERF_EVENTS_ AMD_POWER is not set
Error:
The sys_perf_
/bin/dmesg may provide additional information.
No CONFIG_
$ grep -i config_perf_events /boot/config-
CONFIG_
CONFIG_
CONFIG_
CONFIG_
# CONFIG_