dump the status of the ring on the console */
| 359 | |
| 360 | /* dump the status of the ring on the console */ |
| 361 | void |
| 362 | rte_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 */ |
| 377 | void |