Page MenuHomeFreeBSD

System wide and NUMA domain wide counters support. PMC classes for ARM DMC-620 and CMN-600.
AcceptedPublic

Authored by ray on Oct 5 2021, 2:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 18 2024, 9:22 AM
Unknown Object (File)
Sep 14 2024, 12:58 PM
Unknown Object (File)
Sep 6 2024, 12:13 AM
Unknown Object (File)
Aug 8 2024, 3:37 AM
Unknown Object (File)
Jul 20 2024, 1:09 PM
Unknown Object (File)
Jul 15 2024, 7:17 AM
Unknown Object (File)
Jul 15 2024, 4:40 AM
Unknown Object (File)
Jul 2 2024, 3:29 PM
Subscribers

Details

Reviewers
mhorne
emaste
andrew
imp
Group Reviewers
pmc
Summary
  • Add support for system wide and NUMA domain wide counters support.
  • Add 3 new PMC classes for ARM DMC-620 and CMN-600 controllers PMU.

Sponsored By: ARM
Sponsored By: Ampere Computing

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41967
Build 38855: arc lint + arc unit

Event Timeline

ray requested review of this revision.Oct 5 2021, 2:51 PM
ray added reviewers: pmc, mhorne.

If I understand this right, this looks good to my eye. It adds all the right things in the right places, but I'm not a domain expert.

This revision is now accepted and ready to land.Dec 23 2021, 3:17 PM

So, the main challenge here is that checking the caps of an event requires allocating it earlier than usual? I think its unfortunate to have to add this code to the option parsing, but I don't see a better alternative.

sys/sys/pmc.h
310–311

These will need descriptions in pmc(3).

usr.sbin/pmcstat/pmcstat.c
119

this could be a bool

768

Perhaps it should set args.pa_flags |= FLAGS_HAS_CPUMASK here as well? I think there is no functional impact, but is accurate.