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

Function print_total_stats

dpdk/examples/dma/dmafwd.c:156–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static void
157print_total_stats(struct total_statistics *ts)
158{
159 printf("\nAggregate statistics ==============================="
160 "\nTotal packets Tx: %22"PRIu64" [pkt/s]"
161 "\nTotal packets Rx: %22"PRIu64" [pkt/s]"
162 "\nTotal packets dropped: %17"PRIu64" [pkt/s]",
163 ts->total_packets_tx / stats_interval,
164 ts->total_packets_rx / stats_interval,
165 ts->total_packets_dropped / stats_interval);
166
167 if (copy_mode == COPY_MODE_DMA_NUM) {
168 printf("\nTotal submitted ops: %19"PRIu64" [ops/s]"
169 "\nTotal completed ops: %19"PRIu64" [ops/s]"
170 "\nTotal failed ops: %22"PRIu64" [ops/s]",
171 ts->total_submitted / stats_interval,
172 ts->total_completed / stats_interval,
173 ts->total_failed / stats_interval);
174 }
175
176 printf("\n====================================================\n");
177}
178
179/* Print out statistics on packets dropped. */
180static void

Callers 1

print_statsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected