Page MenuHomeFreeBSD

tools/regression/pmc: hwpmc multiplex positive-path test
Needs ReviewPublic

Authored by afscoelho_gmail.com on Jun 18 2026, 7:06 AM.
Tags
None
Referenced Files
F175282893: D57640.id188470.diff
Fri, Oct 9, 4:26 PM
Unknown Object (File)
Wed, Oct 7, 1:29 AM
Unknown Object (File)
Mon, Oct 5, 10:37 PM
Unknown Object (File)
Mon, Oct 5, 11:34 AM
Unknown Object (File)
Mon, Oct 5, 8:27 AM
Unknown Object (File)
Mon, Oct 5, 2:13 AM
Unknown Object (File)
Sat, Oct 3, 11:36 PM
Unknown Object (File)
Sat, Oct 3, 10:30 PM
Subscribers
None

Details

Summary

Positive-path multiplex regression test, complementing
pmc_mux_test.c (which only exercises ENOSPC):

Build a (cores + 2)-event group with PMC_F_GROUP_MUX, attach all
siblings, start, run a CPU-busy child for 200 ms, stop, read every
sibling. Asserts:

  • commit succeeds (no ENOSPC -- multiplex fallback engaged);
  • every sibling has a non-zero count (group was scheduled in at least once);
  • within-group atomicity is sound (max/min sibling-delta ratio stays bounded; rate variance across event types is allowed up to 64x);
  • a second over-subscribed group running in parallel converges to roughly fair share (cross-group max-delta ratio <= 64x).

Like pmc_group_test, it is x86-only and skips itself on hosts
without AMD core PMCs.

Sponsored by: AMD
Signed-off-by: Raghavendra K T <raghavendra.kt@amd.com>

Diff Detail

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

Event Timeline

afscoelho_gmail.com updated this revision to Diff 185754.

Update to the rebuilt PerfMonV2 grouping and multiplexing stack.

Rebase on main (D60141 and D60185 are committed). No change.