Page MenuHomeFreeBSD

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

Authored by raghavendra.kt_amd.com on Jun 18 2026, 7:06 AM.
Tags
None
Referenced Files
F169639146: D57640.id.diff
Wed, Sep 2, 3:39 AM
F169635403: D57640.id179985.diff
Wed, Sep 2, 3:25 AM
F169624694: D57640.id179985.diff
Wed, Sep 2, 2:39 AM
Unknown Object (File)
Tue, Sep 1, 3:53 AM
Unknown Object (File)
Mon, Aug 31, 5:35 AM
Unknown Object (File)
Mon, Aug 31, 3:42 AM
Unknown Object (File)
Mon, Aug 31, 3:15 AM
Unknown Object (File)
Thu, Aug 27, 9:45 AM
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 73968
Build 70851: arc lint + arc unit