diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2022-05-30 10:30:34 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2022-05-30 10:30:34 +0000 |
commit | 7d830300134e73ef694262756713b7cdbf5155ca (patch) | |
tree | e3f779192863a994ed525022839fc089f695ff9c /lib | |
parent | 7fe444770dbdf0721705a1c03dbad425b2d99467 (diff) |
make a first pass at providing kstats from the hardware counters.
mvneta counters are read to clear, so we accumulate them over time.
they are also mostly 32bit, except for 2 of them, so this handles
all the 32bit counters in a loop and deals with the 64bit ones as
exceptions.
i can see rx drops now, but not the rx rx counters yet. i'll figure
it out.
this is mostly inspired by em(4).
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions