Page MenuHomeFreeBSD

tools/regression/pmc: test pmcstat grouping end to end
DraftPublic

Authored by afscoelho_gmail.com on Thu, Sep 3, 9:33 PM.
Tags
None
Referenced Files
F170503270: D59368.id.diff
Sat, Sep 5, 3:25 AM
Unknown Object (File)
Fri, Sep 4, 11:22 AM
Unknown Object (File)
Fri, Sep 4, 10:17 AM
Unknown Object (File)
Fri, Sep 4, 6:25 AM
Unknown Object (File)
Fri, Sep 4, 5:59 AM
Unknown Object (File)
Fri, Sep 4, 12:28 AM
Unknown Object (File)
Thu, Sep 3, 11:53 PM
Subscribers
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
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

Diff Detail

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