diff options
author | ian <ian@FreeBSD.org> | 2013-01-19 00:50:12 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2013-01-19 00:50:12 +0000 |
commit | 87dd3ff9a4d64b9a26b151e08efe00bffebf9b88 (patch) | |
tree | 6cbe49297c729b138c137e3a77a8e8b5e2c36593 /lib/libc | |
parent | a1e34841434a947a5784c4c395e887c0faa16543 (diff) | |
download | FreeBSD-src-87dd3ff9a4d64b9a26b151e08efe00bffebf9b88.zip FreeBSD-src-87dd3ff9a4d64b9a26b151e08efe00bffebf9b88.tar.gz |
Eliminate the need for an intermediate array of indices into the arrays of
interrupt counts and names, by making the names into an array of fixed-length
strings that can be directly indexed. This eliminates extra memory accesses
on every interrupt to increment the counts.
As a side effect, it also fixes a bug that would corrupt the names data
if a name was longer than MAXCOMLEN, which led to incorrect vmstat -i output.
Approved by: cognet (mentor)
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions