app/testpmd: new command to dump log types
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 4 Apr 2017 16:40:39 +0000 (18:40 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Apr 2017 11:48:45 +0000 (13:48 +0200)
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
app/test-pmd/cmdline.c

index e650d18..57e48d0 100644 (file)
@@ -7702,6 +7702,8 @@ static void cmd_dump_parsed(void *parsed_result,
                rte_mempool_list_dump(stdout);
        else if (!strcmp(res->dump, "dump_devargs"))
                rte_eal_devargs_dump(stdout);
+       else if (!strcmp(res->dump, "dump_log_types"))
+               rte_log_dump(stdout);
 }
 
 cmdline_parse_token_string_t cmd_dump_dump =
@@ -7711,7 +7713,8 @@ cmdline_parse_token_string_t cmd_dump_dump =
                "dump_struct_sizes#"
                "dump_ring#"
                "dump_mempool#"
-               "dump_devargs");
+               "dump_devargs#"
+               "dump_log_types");
 
 cmdline_parse_inst_t cmd_dump = {
        .f = cmd_dump_parsed,  /* function to call */