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

Function show_ring

dpdk/app/proc-info/main.c:1580–1614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1578}
1579
1580static void
1581show_ring(char *name)
1582{
1583 snprintf(bdr_str, MAX_STRING_LEN, " show - RING ");
1584 STATS_BDR_STR(10, bdr_str);
1585
1586 if (name != NULL) {
1587 struct rte_ring *ptr = rte_ring_lookup(name);
1588 if (ptr != NULL) {
1589 printf(" - Name (%s) on socket (%d)\n"
1590 " - flags:\n"
1591 "\t -- Single Producer Enqueue (%u)\n"
1592 "\t -- Single Consumer Dequeue (%u)\n",
1593 ptr->name,
1594 ptr->memzone->socket_id,
1595 ptr->flags & RING_F_SP_ENQ,
1596 ptr->flags & RING_F_SC_DEQ);
1597 printf(" - size (%u) mask (0x%x) capacity (%u)\n",
1598 ptr->size,
1599 ptr->mask,
1600 ptr->capacity);
1601 printf(" - count (%u) free count (%u)\n",
1602 rte_ring_count(ptr),
1603 rte_ring_free_count(ptr));
1604 printf(" - full (%d) empty (%d)\n",
1605 rte_ring_full(ptr),
1606 rte_ring_empty(ptr));
1607
1608 STATS_BDR_STR(50, "");
1609 return;
1610 }
1611 }
1612
1613 rte_ring_list_dump(stdout);
1614}
1615
1616static void
1617show_mempool(char *name)

Callers 1

mainFunction · 0.85

Calls 8

snprintfFunction · 0.85
rte_ring_lookupFunction · 0.85
rte_ring_countFunction · 0.85
rte_ring_free_countFunction · 0.85
rte_ring_fullFunction · 0.85
rte_ring_emptyFunction · 0.85
rte_ring_list_dumpFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected