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

Function cmd_dump_one_parsed

dpdk/app/test-pmd/cmdline.c:8471–8493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8469};
8470
8471static void cmd_dump_one_parsed(void *parsed_result, struct cmdline *cl,
8472 __rte_unused void *data)
8473{
8474 struct cmd_dump_one_result *res = parsed_result;
8475
8476 if (!strcmp(res->dump, "dump_ring")) {
8477 struct rte_ring *r;
8478 r = rte_ring_lookup(res->name);
8479 if (r == NULL) {
8480 cmdline_printf(cl, "Cannot find ring\n");
8481 return;
8482 }
8483 rte_ring_dump(stdout, r);
8484 } else if (!strcmp(res->dump, "dump_mempool")) {
8485 struct rte_mempool *mp;
8486 mp = rte_mempool_lookup(res->name);
8487 if (mp == NULL) {
8488 cmdline_printf(cl, "Cannot find mempool\n");
8489 return;
8490 }
8491 rte_mempool_dump(stdout, mp);
8492 }
8493}
8494
8495static cmdline_parse_token_string_t cmd_dump_one_dump =
8496 TOKEN_STRING_INITIALIZER(struct cmd_dump_one_result, dump,

Callers

nothing calls this directly

Calls 6

strcmpFunction · 0.85
rte_ring_lookupFunction · 0.85
cmdline_printfFunction · 0.85
rte_ring_dumpFunction · 0.85
rte_mempool_lookupFunction · 0.85
rte_mempool_dumpFunction · 0.85

Tested by

no test coverage detected