MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stats_display

Function stats_display

dpdk/app/test/test_pmd_perf.c:300–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299#ifndef RTE_EXEC_ENV_WINDOWS
300static void
301stats_display(uint16_t port_id)
302{
303 struct rte_eth_stats stats;
304 rte_eth_stats_get(port_id, &stats);
305
306 printf(" RX-packets: %-10"PRIu64" RX-missed: %-10"PRIu64" RX-bytes: "
307 "%-"PRIu64"\n",
308 stats.ipackets, stats.imissed, stats.ibytes);
309 printf(" RX-errors: %-10"PRIu64" RX-nombuf: %-10"PRIu64"\n",
310 stats.ierrors, stats.rx_nombuf);
311 printf(" TX-packets: %-10"PRIu64" TX-errors: %-10"PRIu64" TX-bytes: "
312 "%-"PRIu64"\n",
313 stats.opackets, stats.oerrors, stats.obytes);
314}
315
316static void
317signal_handler(int signum)

Callers 1

signal_handlerFunction · 0.85

Calls 2

rte_eth_stats_getFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected