Page MenuHomeFreeBSD

tools/regression/pmc: test pmcstat grouping end to end
Needs ReviewPublic

Authored by afscoelho_gmail.com on Sep 3 2026, 9:33 PM.
Tags
None
Referenced Files
F176537753: D59368.id189832.diff
Mon, Oct 19, 4:00 PM
F176480253: D59368.id189832.diff
Mon, Oct 19, 5:07 AM
Unknown Object (File)
Sun, Oct 18, 12:15 PM
Unknown Object (File)
Sun, Oct 18, 12:15 PM
Unknown Object (File)
Sun, Oct 18, 12:15 PM
Unknown Object (File)
Sun, Oct 18, 12:14 PM
Unknown Object (File)
Sun, Oct 18, 12:13 PM
Unknown Object (File)
Wed, Oct 14, 3:54 PM
Subscribers

Details

Summary

Add shell tests that run pmcstat(8) itself.

pmcstat_test.sh checks the brace-list syntax end to end: it runs
pmcstat with grouped events and checks the output columns, including
the residency column and the "<not counted>" marker. check-root runs
it when it is present.

pmcstat_mux_warning_test.sh checks the warning policy for a long
grouped sampling period. The warning depends on what the driver
reports, so the test preloads a shim that returns controlled values.
This lets it check that the warning appears only when multiplexing was
observed, not merely because the brace syntax set PMC_F_GROUP_MUX.

Sponsored by: AMD

Signed-off-by: Andre Silva <andasilv@amd.com>

Diff Detail

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

Event Timeline

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