1
0
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:
Alex Forencich 2022-11-23 17:38:28 -08:00
parent ede33bb23e
commit 6cfd808823

View File

@ -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);