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)
Thu, Apr 30, 4:36 AM
Unknown Object (File)
Mon, Apr 27, 2:37 PM
Unknown Object (File)
Fri, Apr 24, 1:32 AM
Unknown Object (File)
Mon, Apr 20, 6:17 PM
Unknown Object (File)
Sun, Apr 19, 6:26 PM
Unknown Object (File)
Sat, Apr 11, 5:57 AM
Unknown Object (File)
Thu, Apr 9, 1:21 AM
Unknown Object (File)
Mon, Apr 6, 11:25 PM

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!