Page MenuHomeFreeBSD

hwpmc(4): update DEBUGGING section details
ClosedPublic

Authored by mhorne on Jul 7 2023, 6:29 PM.
Tags
None
Referenced Files
F108410126: D40913.diff
Fri, Jan 24, 1:42 PM
Unknown Object (File)
Thu, Jan 9, 11:46 PM
Unknown Object (File)
Dec 5 2024, 4:48 PM
Unknown Object (File)
Nov 26 2024, 8:44 PM
Unknown Object (File)
Nov 12 2024, 8:17 AM
Unknown Object (File)
Nov 12 2024, 8:13 AM
Unknown Object (File)
Oct 3 2024, 4:43 AM
Unknown Object (File)
Sep 24 2024, 5:23 PM
Subscribers

Details

Summary

The examples I wrote previously do not work. We parse the flags using
explicit names, not the shortened flag suffix. Fix the list of major
flags, and add a compact list of minor flags. Fix the examples, and
tweak some wording for clarity.

Fixes: 5fc97cc32553 ("hwpmc(4): document debugging options")

Test Plan

Build a kernel with PMC_DEBUG and try setting the sysctl with the examples provided.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 52485
Build 49376: arc lint + arc unit

Event Timeline

mhorne requested review of this revision.Jul 7 2023, 6:29 PM
mhorne added inline comments.
share/man/man4/hwpmc.4
587–621

FYI this renders as:

The minor flags for each major flag group can vary.  The individual minor
flag names are:

      allocaterow, allocate, attach, bind, config, exec, exit, find,
      flush, fork, getbuf, hook, init, intr, linktarget, mayberemove,
      ops, read, register, release, remove, sample, scheduleio, select,
      signal, swi, swo, start, stop, syscall, unlinktarget, write
This revision is now accepted and ready to land.Jul 8 2023, 7:32 AM
This revision was automatically updated to reflect the committed changes.