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

Automated hardware architecture detection in procsmpl.cpp (feature request) #3

Open
PaulDapolito opened this issue Apr 17, 2016 · 0 comments

Comments

@PaulDapolito
Copy link

The performance event hardware counter codes used in src/procsmpl.cpp are specific to the Sandy Bridge generation of Intel processors. This results in an error being printed when examples/api_test is run (in addition to the performance event data being presumably lost) on a Westmere machine:

$ ./examples/api_test
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
perf_event_open: Invalid argument
0

These hardware counter encodings can be found on any architecture using a tool like perfmon2. Automated hardware architecture detection is desired in Mitos in order to allow it to be used out-of-the-box on architectures other than Sandy Bridge.

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

1 participant