mperf
mperf copied to clipboard
terminate called after throwing an instance of 'mperf::MperfError'
./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
请问是android平台吗?这种是event系统调用的访问权限问题,可以尝试 echo -1 > /proc/sys/kernel/perf_event_paranoid
或者检查一下/sys/bus/event_source/devices目录下有没有类似armv8_pmuv3这样的cpu pmu文件夹,因为有些嵌入式开发板上面就没有cpu pmu,所以自然就fail了