Are there any open source or examples for using raspberry pi's ARM cpu's PMU, performance counter?

It can be a bare metal example or user-space application.

I have seen this and that (which I don't understand how can I use to profile bare metal code). This link is work in progress.

  • this question should be re-opened – b20000 Apr 24 '18 at 14:55
  • @b20000 Notice it was closed two years after it was asked, and during that time it received no attention from anyone willing and able to provide an answer. I likely did this during a spree of closing old questions with no answers to "clean up the site" and help our stats for graduation from beta status. Anyway, point being you'd be better off just re-asking it...if I reopen this now it will just continue to be ignored for eternity. – goldilocks Apr 25 '18 at 10:54

Browse other questions tagged or ask your own question.