Page MenuHomeFreeBSD

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

Authored by ray on Oct 5 2021, 2:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 27, 9:55 AM
Unknown Object (File)
Wed, Mar 4, 5:30 AM
Unknown Object (File)
Feb 18 2026, 6:56 PM
Unknown Object (File)
Feb 16 2026, 4:56 AM
Unknown Object (File)
Feb 6 2026, 4:57 PM
Unknown Object (File)
Jan 31 2026, 2:39 PM
Unknown Object (File)
Jan 17 2026, 6:10 AM
Unknown Object (File)
Nov 30 2025, 11:27 AM

Details

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.

It looks like we landed some version of this diff already? Should we close it?

It looks like we landed some version of this diff already? Should we close it?

Indeed.
Thanks, guys!