| 8407 | } |
| 8408 | |
| 8409 | static void cmd_dump_parsed(void *parsed_result, |
| 8410 | __rte_unused struct cmdline *cl, |
| 8411 | __rte_unused void *data) |
| 8412 | { |
| 8413 | struct cmd_dump_result *res = parsed_result; |
| 8414 | |
| 8415 | if (!strcmp(res->dump, "dump_physmem")) |
| 8416 | rte_dump_physmem_layout(stdout); |
| 8417 | else if (!strcmp(res->dump, "dump_socket_mem")) |
| 8418 | dump_socket_mem(stdout); |
| 8419 | else if (!strcmp(res->dump, "dump_memzone")) |
| 8420 | rte_memzone_dump(stdout); |
| 8421 | else if (!strcmp(res->dump, "dump_struct_sizes")) |
| 8422 | dump_struct_sizes(); |
| 8423 | else if (!strcmp(res->dump, "dump_ring")) |
| 8424 | rte_ring_list_dump(stdout); |
| 8425 | else if (!strcmp(res->dump, "dump_mempool")) |
| 8426 | rte_mempool_list_dump(stdout); |
| 8427 | else if (!strcmp(res->dump, "dump_devargs")) |
| 8428 | rte_devargs_dump(stdout); |
| 8429 | else if (!strcmp(res->dump, "dump_lcores")) |
| 8430 | rte_lcore_dump(stdout); |
| 8431 | #ifndef RTE_EXEC_ENV_WINDOWS |
| 8432 | else if (!strcmp(res->dump, "dump_trace")) |
| 8433 | rte_trace_save(); |
| 8434 | #endif |
| 8435 | else if (!strcmp(res->dump, "dump_log_types")) |
| 8436 | rte_log_dump(stdout); |
| 8437 | } |
| 8438 | |
| 8439 | static cmdline_parse_token_string_t cmd_dump_dump = |
| 8440 | TOKEN_STRING_INITIALIZER(struct cmd_dump_result, dump, |
nothing calls this directly
no test coverage detected