Page MenuHomeFreeBSD

sfxge(4): handle negative ticks difference correctly
ClosedPublic

Authored by arybchik on Jun 8 2016, 6:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 9, 7:45 PM
Unknown Object (File)
Sun, Mar 8, 9:45 PM
Unknown Object (File)
Tue, Mar 3, 1:00 AM
Unknown Object (File)
Sat, Feb 28, 3:34 AM
Unknown Object (File)
Feb 8 2026, 1:33 PM
Unknown Object (File)
Feb 8 2026, 1:03 PM
Unknown Object (File)
Jan 31 2026, 9:42 AM
Unknown Object (File)
Nov 27 2025, 1:42 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.