Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wwangxinhao opened this issue Apr 13, 2023 · 2 comments
Open

Comments

@wwangxinhao
Copy link

./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

@youzhedian
Copy link
Collaborator

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

@youzhedian
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants