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)
Mon, May 20, 6:59 PM
Unknown Object (File)
Sun, Apr 28, 9:47 AM
Unknown Object (File)
Apr 9 2024, 8:41 PM
Unknown Object (File)
Apr 6 2024, 4:27 AM
Unknown Object (File)
Apr 4 2024, 5:26 PM
Unknown Object (File)
Mar 26 2024, 9:31 PM
Unknown Object (File)
Mar 8 2024, 11:06 AM
Unknown Object (File)
Jan 28 2024, 9:46 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.