Add PMU cycle counting for Armv8.1-M #1514
Merged
hanno-becker merged 3 commits intomainfrom Jan 21, 2026
Merged
Conversation
e46f5da to
8ab59cf
Compare
Contributor
CBMC Results (ML-KEM-512)Full Results (139 proofs)
|
Contributor
CBMC Results (ML-KEM-768)Full Results (139 proofs)
|
Contributor
CBMC Results (ML-KEM-1024)Full Results (139 proofs)
|
hanno-becker
approved these changes
Jan 21, 2026
Make the benchmark parameters (NWARMUP, NITERATIONS, NTESTS) configurable via CFLAGS by wrapping them in #ifndef guards and renaming to MLK_BENCHMARK_NWARMUP, MLK_BENCHMARK_NITERATIONS, and MLK_BENCHMARK_NTESTS. Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
Add PMU-based cycle counting support for Armv8.1-M Cortex-M processors. This uses the CMSIS PMU APIs for portable cycle counter access. - Resolves #1502 Co-Authored-By: Brendan Moran <brendan.moran@arm.com> Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
The cycle counts will be zero, but it still tests the PMU code builds. Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
8ab59cf to
690c190
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PMU-based cycle counting support for Armv8.1-M Cortex-M processors.
This uses the CMSIS PMU APIs for portable cycle counter access.
Resolves Armv8.1-M: Add PMU benchmarking code #1502
Hoisted out from Add native implementations for Keccak on Armv8.1-m mldsa-native#511