mperf icon indicating copy to clipboard operation
mperf copied to clipboard

terminate called after throwing an instance of 'mperf::MperfError'

Open wwangxinhao opened this issue 2 years ago • 2 comments

./cpu_pmu_transpose 1 1 INSTRUCTIONS the warm iter 0, and time use 19.946565 the warm iter 1, and time use 13.541801 the warm iter 2, and time use 13.487423 the warm iter 3, and time use 13.471814 the warm iter 4, and time use 13.482091 terminate called after throwing an instance of 'mperf::MperfError' what(): Failed to get a file descriptor for INSTRUCTIONS

wwangxinhao avatar Apr 13 '23 03:04 wwangxinhao

请问是android平台吗?这种是event系统调用的访问权限问题,可以尝试 echo -1 > /proc/sys/kernel/perf_event_paranoid

youzhedian avatar Apr 21 '23 03:04 youzhedian

或者检查一下/sys/bus/event_source/devices目录下有没有类似armv8_pmuv3这样的cpu pmu文件夹,因为有些嵌入式开发板上面就没有cpu pmu,所以自然就fail了

youzhedian avatar Apr 21 '23 10:04 youzhedian