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

Function print_dmadev_stats

dpdk/examples/dma/dmafwd.c:147–154  ·  view source on GitHub ↗

Print out statistics for one dmadev device. */

Source from the content-addressed store, hash-verified

145
146/* Print out statistics for one dmadev device. */
147static void
148print_dmadev_stats(uint32_t dev_id, struct rte_dma_stats stats)
149{
150 printf("\nDMA channel %u", dev_id);
151 printf("\n\t Total submitted ops: %"PRIu64"", stats.submitted);
152 printf("\n\t Total completed ops: %"PRIu64"", stats.completed);
153 printf("\n\t Total failed ops: %"PRIu64"", stats.errors);
154}
155
156static void
157print_total_stats(struct total_statistics *ts)

Callers 1

print_statsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected