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

cpu cycles: on arm64 use clock_gettime and PMCCNTR_EL0 for freestanding #238

Closed
wants to merge 1 commit into from

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Jun 12, 2024

previously, cntvct_el0 was used which is capped to 24 MHz, leading to entropy test failures on macOS and linux-aarch64. The PMCCNTR_EL0 is not available in user-space normally (for Linux, there is a kernel module).

So, what we do is similar to the ARM32 code path now.

Fixes #216

previously, cntvct_el0 was used which is capped to 24 MHz, leading to entropy
test failures on macOS and linux-aarch64. The PMCCNTR_EL0 is not available in
user-space normally (for Linux, there is a kernel module).

So, what we do is similar to the ARM32 code path now.

Fixes mirage#216
@hannesm
Copy link
Member Author

hannesm commented Jun 12, 2024

doesn't work.

@hannesm hannesm closed this Jun 12, 2024
@hannesm hannesm deleted the arm64-cpucycle branch June 12, 2024 17:27
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

Successfully merging this pull request may close these issues.

ARM64 cycle count
1 participant