Page MenuHomeFreeBSD

pmc: enable the new pmc commands
AcceptedPublic

Authored by ali_mashtizadeh.com on Tue, Jun 23, 4:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 5, 11:39 PM
Unknown Object (File)
Sun, Jul 5, 11:36 PM
Unknown Object (File)
Sat, Jul 4, 2:24 AM
Unknown Object (File)
Sat, Jul 4, 2:21 AM
Unknown Object (File)
Fri, Jul 3, 1:14 AM
Unknown Object (File)
Thu, Jul 2, 8:52 PM
Unknown Object (File)
Sun, Jun 28, 9:49 PM
Unknown Object (File)
Sun, Jun 28, 9:49 PM

Details

Reviewers
imp
jhb
mhorne
adrian
Group Reviewers
pmc
Summary

This change hooks everything up to the pmc command and improves the
usage to document all functions. There are a couple older commands that
are currently broken that I have hidden from the usage, but left in the
code for those using it. I won't remove those until we have our
replacements upstreamed that depend on the AMD PMC multiplexing patches.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74158
Build 71041: arc lint + arc unit

Event Timeline

ali_mashtizadeh.com created this revision.

Hi, commenting here. From a high-level perspective this seems like a good move; this pmc(8) utility is open to improvements and seems like it never got past a beta phase.
It is good to be thoughtful about the old commands, but as you note they are broken and the tool as a whole is undocumented. So I do not think we are burdened with supporting them indefinitely.

I will be AFK for, probably the next two weeks. Also my C++ knowledge is pretty basic; I am not going to be much help for thorough review on this series.

A separate question: does this series depend on the group/multiplex additions recently added for review by @raghavendra.kt_amd.com? Or are they unrelated?

This revision is now accepted and ready to land.Tue, Jun 30, 5:49 PM

Hi, commenting here. From a high-level perspective this seems like a good move; this pmc(8) utility is open to improvements and seems like it never got past a beta phase.
It is good to be thoughtful about the old commands, but as you note they are broken and the tool as a whole is undocumented. So I do not think we are burdened with supporting them indefinitely.

I'm glad your okay with that will do after I land my replacement to the stat interface.

I will be AFK for, probably the next two weeks. Also my C++ knowledge is pretty basic; I am not going to be much help for thorough review on this series.

A separate question: does this series depend on the group/multiplex additions recently added for review by @raghavendra.kt_amd.com? Or are they unrelated?

No it's unrelated for now this is all sampling based most of the commands will depend on IBS, but obviously not all. @raghavendra.kt_amd.com 's diffs are for counter mode, and I have a plan for that but its about half done. Will worry about it after landing everything I outlined in the first diff.