Add the dump_* tests cases 8< */
| 110 | |
| 111 | /* Add the dump_* tests cases 8< */ |
| 112 | static 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 | |
| 138 | cmdline_parse_token_string_t cmd_dump_dump = |
| 139 | TOKEN_STRING_INITIALIZER(struct cmd_dump_result, dump, |
nothing calls this directly
no test coverage detected