Page MenuHomeFreeBSD

sfxge(4): handle negative ticks difference correctly
ClosedPublic

Authored by arybchik on Jun 8 2016, 6:06 PM.
Tags
None
Referenced Files
F169598667: D6777.id17459.diff
Wed, Sep 2, 12:56 AM
F169573039: D6777.diff
Tue, Sep 1, 11:12 PM
Unknown Object (File)
Sat, Aug 29, 1:06 AM
Unknown Object (File)
Sat, Aug 29, 1:06 AM
Unknown Object (File)
Sat, Aug 29, 1:05 AM
Unknown Object (File)
Wed, Aug 12, 11:18 AM
Unknown Object (File)
Tue, Aug 11, 2:44 AM
Unknown Object (File)
Mon, Aug 10, 10:11 PM
Subscribers

Details

Summary

ticks are signed int and if statistics is not updated for a long time
(more than INT_MAX ticks, but less than UINT_MAX) difference becomes
negative and less than hz for a long time.

Other option to repeat is simply load driver (which initializes
timestamps to 0) when ticks are negative.

Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week

Test Plan

Module built, loaded, sysctl stats checked.
Stats tested on a lucky host with negative ticks.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

arybchik retitled this revision from to sfxge(4): handle negative ticks difference correctly.
arybchik updated this object.
arybchik edited the test plan for this revision. (Show Details)
arybchik added reviewers: gnn, philip, bz, np.
This revision was automatically updated to reflect the committed changes.