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, May 15, 7:45 PM
Unknown Object (File)
Fri, May 15, 7:39 PM
Unknown Object (File)
Fri, May 15, 11:02 AM
Unknown Object (File)
Thu, May 14, 8:32 PM
Unknown Object (File)
Tue, May 12, 2:47 PM
Unknown Object (File)
Sun, May 10, 7:32 AM
Unknown Object (File)
Sat, May 9, 3:44 PM
Unknown Object (File)
Thu, Apr 30, 4:36 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!