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

PAPI Pi4 Support #250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

willowec
Copy link
Contributor

Pull Request Description

This pull request adds preset events for the Arm Cortex-A72, which is the processor used by the Raspberry Pi 4. This work is based on a patch by Stack Exchange user Bambo Wu, published in May 2021.

Known issues:
The flops_validation test fails because the Arm Cortex-A72 has no event for measuring normal floating point operations. The closest event is VFP_SPEC (INST_SPEC_EXEC_VFP in libpfm4) which seems to only measure the number of instructions in the vector floating point instruction set that have been speculatively executed. Because the Cortex-A57 and the Cortex-A15 all use this native event for the PAPI_FP_INS preset event anyway, it seems like the best course to keep using it for the Cortex-A72 even though it does not count all floating point instructions.

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

Because the A72 has the same events as the A57, this
addition is a one-liner. This work is based on a patch
by Stack Exchange user Bambo Wu, published in May 2021:
https://raspberrypi.stackexchange.com/a/112396
@dbarry9 dbarry9 self-requested a review September 27, 2024 20:45
@dbarry9 dbarry9 self-assigned this Sep 30, 2024
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.

2 participants