Page MenuHomeFreeBSD

hwpmc: Permit the minimum sampling count to be set as a sysctl.
ClosedPublic

Authored by jhb on Jun 3 2022, 10:02 PM.
Tags
None
Referenced Files
F166452051: D35400.id106702.diff
Thu, Aug 13, 4:04 PM
F166413997: D35400.id106702.diff
Thu, Aug 13, 12:12 PM
F166310283: D35400.id.diff
Wed, Aug 12, 7:57 PM
Unknown Object (File)
Wed, Aug 12, 4:37 PM
Unknown Object (File)
Wed, Aug 12, 3:33 PM
Unknown Object (File)
Wed, Aug 12, 2:35 PM
Unknown Object (File)
Wed, Aug 12, 2:30 PM
Unknown Object (File)
Wed, Aug 12, 2:30 PM

Details

Summary

A rarely occurring event (e.g. an event that occurs less than 1000
times during execution of a program) may require a lower minimum
threshold than 1000. Replace the hardcoded 1000 with a sysctl that
the administrator can use to permit smaller sampling count values.

Sponsored by: University of Cambridge, Google, Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45883
Build 42771: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jun 3 2022, 10:02 PM

I agree that the hard coded limitation is annoying. I hurt me also when I've tried to profile something with PCM_SOFT and low event rate. It is good to have it at least configurable.

This revision is now accepted and ready to land.Jun 4 2022, 12:49 AM

Please add this to the sysctl section in hwpmc(4).

This revision now requires review to proceed.Jun 6 2022, 11:51 PM
This revision is now accepted and ready to land.Jun 9 2022, 12:56 PM
pauamma_chezdork.com added inline comments.
share/man/man4/hwpmc.4
420

Clearer and more consistent with change log message.