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

Function rte_ring_dump

dpdk/lib/ring/rte_ring.c:361–374  ·  view source on GitHub ↗

dump the status of the ring on the console */

Source from the content-addressed store, hash-verified

359
360/* dump the status of the ring on the console */
361void
362rte_ring_dump(FILE *f, const struct rte_ring *r)
363{
364 fprintf(f, "ring <%s>@%p\n", r->name, r);
365 fprintf(f, " flags=%x\n", r->flags);
366 fprintf(f, " size=%"PRIu32"\n", r->size);
367 fprintf(f, " capacity=%"PRIu32"\n", r->capacity);
368 fprintf(f, " ct=%"PRIu32"\n", r->cons.tail);
369 fprintf(f, " ch=%"PRIu32"\n", r->cons.head);
370 fprintf(f, " pt=%"PRIu32"\n", r->prod.tail);
371 fprintf(f, " ph=%"PRIu32"\n", r->prod.head);
372 fprintf(f, " used=%u\n", rte_ring_count(r));
373 fprintf(f, " avail=%u\n", rte_ring_free_count(r));
374}
375
376/* dump the status of all rings on the console */
377void

Callers 4

rte_ring_list_dumpFunction · 0.85
cmd_dump_one_parsedFunction · 0.85
test_refcnt_mbufFunction · 0.85
cmd_dump_one_parsedFunction · 0.85

Calls 2

rte_ring_countFunction · 0.85
rte_ring_free_countFunction · 0.85

Tested by 2

cmd_dump_one_parsedFunction · 0.68
test_refcnt_mbufFunction · 0.68