perf failed with unexpected error 89 (Function not implemented)

Question

# syscount
Tracing... Ctrl-C to end.
perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error 89 (Function not implemented)
perf_event_open(..., 0) failed unexpectedly with error 89 (Function not implemented)
Error:
The sys_perf_event_open() syscall returned with 89 (Function not implemented) for event (raw_syscalls:sys_enter).
/bin/dmesg | grep -i perf may provide additional information.

COMM                COUNT
zero-sized data (perf.data), nothing to do!

Answer

CONFIG_PERF_EVENTS=y
0%