[root@rk3399:/]# perf top
Cannot read kernel map
perf_event_open(…, PERF_FLAG_FD_CLOEXEC) failed with unexpected error 38 (Function not implemented)
perf_event_open(…, 0) failed unexpectedly with error 38 (Function not implemented)
Error:
The sys_perf_event_open() syscall returned with 38 (Function not implemented) for event (cycles).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?
问题解决:
1、
perf_event_open(…, PERF_FLAG_FD_CLOEXEC) failed with unexpected error 38 (Function not implemented) perf_event_open(…, 0) failed
unexpectedly with error 38 (Function not implemented) Error: The
sys_perf_event_open() syscall returned with 38 (Function not
implemented) for event (cycles). /bin/dmesg may provide additional
information.
这部分问题是perf工具移植错误,按照网上的方法不可行。
请参考本文1中移植方法进行编译。
2、
Cannot read kernel map
Segmentation fault
问题解决:
如果有该问题发生,是由于内核配置项 “装载所有的调试符号表信息” 未勾选。
CONFIG_KALLSYMS=y
2)perf stat -a 问题:
[root@rk3399:/]# perf stat -a
^C
Performance counter stats for ‘system wide’:
not supported> task-clock
not supported> context-switches
not supported> cpu-migrations
not supported> page-faults
not supported> cycles
not supported> stalled-cycles-frontend
not supported> stalled-cycles-backend
not supported> instructions
not supported> branches
not supported> branch-misses
1.382871584 seconds time elapsed