Page MenuHomeFreeBSD

bhnd(4): Use a stable sort key to produce deterministic output
ClosedPublic

Authored by landonf on Dec 19 2016, 11:13 PM.
Tags
None
Referenced Files
F168485516: D8859.id23117.diff
Fri, Aug 28, 3:27 PM
Unknown Object (File)
Wed, Aug 26, 2:26 PM
Unknown Object (File)
Wed, Aug 26, 3:52 AM
Unknown Object (File)
Tue, Aug 25, 5:13 AM
Unknown Object (File)
Mon, Aug 24, 2:37 PM
Unknown Object (File)
Mon, Aug 24, 4:13 AM
Unknown Object (File)
Mon, Aug 24, 12:10 AM
Unknown Object (File)
Sat, Aug 22, 4:08 PM
Subscribers

Details

Summary

Use a guaranteed unique sort key (var_id, rev_start, rev_end) when
ordering SROM layout entries; otherwise, we see non-deterministic output
for entries with overlapping var_ids.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6322
Build 6561: arc lint + arc unit

Event Timeline

landonf retitled this revision from to bhnd(4): Use a stable sort key to produce deterministic output.
landonf updated this object.
landonf edited the test plan for this revision. (Show Details)
landonf added reviewers: emaste, adrian.
landonf added subscribers: lidl, gjb.
adrian edited edge metadata.
This revision is now accepted and ready to land.Dec 19 2016, 11:14 PM

I tested this in my local WIP tree and confirm that I get the same output after each invocation.

This revision was automatically updated to reflect the committed changes.