mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
utils: Dump statistics counters in mqnic-dump
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
ede33bb23e
commit
6cfd808823
@ -471,6 +471,15 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (dev->stats_rb)
|
||||
{
|
||||
printf("Statistics counters\n");
|
||||
for (int k = 0; k < dev->stats_count; k++)
|
||||
{
|
||||
printf("Index %d: %lu\n", k, mqnic_stats_read(dev, k));
|
||||
}
|
||||
}
|
||||
|
||||
err:
|
||||
|
||||
mqnic_close(dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user