Page MenuHomeFreeBSD

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

Authored by afscoelho_gmail.com on Thu, Sep 3, 9:33 PM.
Tags
None
Referenced Files
F172054193: D59368.diff
Tue, Sep 15, 7:04 PM
Unknown Object (File)
Sun, Sep 13, 1:31 PM
Unknown Object (File)
Sat, Sep 12, 11:48 PM
Unknown Object (File)
Sat, Sep 12, 7:15 AM
Unknown Object (File)
Sat, Sep 12, 5:24 AM
Unknown Object (File)
Sat, Sep 12, 3:52 AM
Unknown Object (File)
Fri, Sep 11, 3:12 PM
Unknown Object (File)
Thu, Sep 10, 10:24 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 76462
Build 73345: arc lint + arc unit