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

Function cmd_dump_parsed

dpdk/app/test/commands.c:112–136  ·  view source on GitHub ↗

Add the dump_* tests cases 8< */

Source from the content-addressed store, hash-verified

110
111/* Add the dump_* tests cases 8< */
112static void cmd_dump_parsed(void *parsed_result,
113 __rte_unused struct cmdline *cl,
114 __rte_unused void *data)
115{
116 struct cmd_dump_result *res = parsed_result;
117
118 if (!strcmp(res->dump, "dump_physmem"))
119 rte_dump_physmem_layout(stdout);
120 else if (!strcmp(res->dump, "dump_memzone"))
121 rte_memzone_dump(stdout);
122 else if (!strcmp(res->dump, "dump_struct_sizes"))
123 dump_struct_sizes();
124 else if (!strcmp(res->dump, "dump_ring"))
125 rte_ring_list_dump(stdout);
126 else if (!strcmp(res->dump, "dump_mempool"))
127 rte_mempool_list_dump(stdout);
128 else if (!strcmp(res->dump, "dump_devargs"))
129 rte_devargs_dump(stdout);
130 else if (!strcmp(res->dump, "dump_log_types"))
131 rte_log_dump(stdout);
132 else if (!strcmp(res->dump, "dump_malloc_stats"))
133 rte_malloc_dump_stats(stdout, NULL);
134 else if (!strcmp(res->dump, "dump_malloc_heaps"))
135 rte_malloc_dump_heaps(stdout);
136}
137
138cmdline_parse_token_string_t cmd_dump_dump =
139 TOKEN_STRING_INITIALIZER(struct cmd_dump_result, dump,

Callers

nothing calls this directly

Calls 10

strcmpFunction · 0.85
rte_dump_physmem_layoutFunction · 0.85
rte_memzone_dumpFunction · 0.85
rte_ring_list_dumpFunction · 0.85
rte_mempool_list_dumpFunction · 0.85
rte_devargs_dumpFunction · 0.85
rte_log_dumpFunction · 0.85
rte_malloc_dump_statsFunction · 0.85
rte_malloc_dump_heapsFunction · 0.85
dump_struct_sizesFunction · 0.70

Tested by

no test coverage detected