From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11C2442D73; Tue, 27 Jun 2023 16:44:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8C0A40F18; Tue, 27 Jun 2023 16:44:57 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2088.outbound.protection.outlook.com [40.107.244.88]) by mails.dpdk.org (Postfix) with ESMTP id 90E1240EE1 for ; Tue, 27 Jun 2023 16:44:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dFEN4zoSM0Y/7ABQ0z1ijrjqPgW0t6531crAcnZcAL2ffmKVoc/IsvSG5piuMqUAcQKvvVf0ZP70SobSKsYmPrvfUYKl2h8jmyr6TVwwPXTK80aTPCNRizPkF3QHCRcKxZ8EB+Ix3jq4ij5lJ0DXN8FHzQDNorO4tM8/gt2jEYmJrSdE706k3zVI19xfJ1hTp+HPaCV3nd7aMfLZ0F8C1q36KLn8j6z2CP9/MgM4Jcoha9Puz/WEb6O4AOitIH9qAt0svoTxUmLpETwPn+3ERyUaCl8ZSCh/+QIE8VZbtYSGCvTJwrR8KKHxIqVIQqbqLHTgf5QZOMJgSPkVMqJJtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Qduc+5spZPcBdomxNCeJ76yLjYe2eb5nXvHcJ+CpvNg=; b=CuZDfTUnfD69gEXxm9kp/q9CfmrsnmlXThUtlCyoKoQT5f1jnmYfucBmEqAPm9sZ4fMCgvM5MN3C8LXx2hz5z24diOvirzaQ2qeHtAoC0MxoEky5pkWJz+VtEPUtWAp3MVkBWIYhNETBO0fuEJWI9ualPrH1KMK4UnjAQwSzzkoHKydl4FkLbism7Q4nQkShd6FmdWlp/sU+C+lXnk6gYmrp5I+lYWaDvDS8cO/mWDQhCv+XEcRsfwzLWMu1dHiGYjyhRCACikHlmmWPar+7A47sVqb8MyFLQ/3lEDnS3VR7YHBtsnY8s49Qzx6/N/UDzkV0XtPHNLOnnybtxh5fNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qduc+5spZPcBdomxNCeJ76yLjYe2eb5nXvHcJ+CpvNg=; b=JIMOYUh2zFSf6JDkgMMW/xeA9VWbwV6d3KEkagWdBKC43uo5bzKtwYYtYiAnwFjb4zbprRe5quW144jY36C+TfWoJSCR3KA9Qmi101XN5TatHQoKC49VpOtBCt05VI4P1L0mb+necS3lXL2V3UFXFck0OTQIAaaYhb8vfWs23r88U9fS7nLujx8K4dieDjJsHahKH2ZE76GNdJDGjMuPCIKFDOFryYQjF0JL4KYuVbWcIhXRlhL4DcWquh3lmh8WKQFusbNP5Un0sYmRHvCyBDq+i/wIZ0UpcDsy+JMD7aNfwoUksir65fzw0cmLcywzkSV86Q5nDGDMZvmevcnK7Q== Received: from BN9P223CA0010.NAMP223.PROD.OUTLOOK.COM (2603:10b6:408:10b::15) by PH7PR12MB6539.namprd12.prod.outlook.com (2603:10b6:510:1f0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Tue, 27 Jun 2023 14:44:54 +0000 Received: from BN8NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10b:cafe::89) by BN9P223CA0010.outlook.office365.com (2603:10b6:408:10b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.34 via Frontend Transport; Tue, 27 Jun 2023 14:44:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT020.mail.protection.outlook.com (10.13.176.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.47 via Frontend Transport; Tue, 27 Jun 2023 14:44:53 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 27 Jun 2023 07:44:43 -0700 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 27 Jun 2023 07:44:42 -0700 From: Viacheslav Ovsiienko To: CC: Subject: [PATCH] app/testpmd: add dump command help message Date: Tue, 27 Jun 2023 17:44:26 +0300 Message-ID: <20230627144426.23144-1-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT020:EE_|PH7PR12MB6539:EE_ X-MS-Office365-Filtering-Correlation-Id: 9afc32bc-7958-4826-8492-08db771d11e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 13xQp8fhnSjcoVTSvrOLK+gtD+BNaGY6fe/w1fv8iRCU722ImEearCp6iu/9H8uKWkXcizBjmgBGYpgxJRgFn3EqSNNVAp8NWngYbkvX538o06EtWyFwfw+6/FroHNXGj1jHzNeEzRCj23QzJcKaUXQlj6Oe5ld6kqwsz5qJ+7LxjyhkIYTh4mooiptf7Hx2Z3FwEDdA3CT9fv0I8n7lFLXML4PUT++ArLSuI2WmgbVAG/WTAZNbCmxRN+/SP+/ECrZXNTumF0lZywV7Fho6M9UAz0EXuUxXemRe2q/7nHQ/o9kEDrKrcxbHSXrfgy8uayDWwudHYkClW1QnyDp9so9bzrYyZgDXy/a+pDctAc2PkF1thsfxQjyjRlBMq1yCI3VQFJSY5H/PA5/t2Q41gTaP3CbSNJ5UsrxY94I+KO3ygZU/0ZMeoommFRzKFM0vyfZOQ3Pi9l5vfsKEM+12pBmJE0uc5smyNt40UweKCfwBlnDbrFxGgKqyoXksOIUaF8jDbyYVzCef0UfdpMWHQ6FId/D3BjiIUDV/yyO8dMCaabgdLo13Kpb33uEo3IVt/GbgNPOw50vXEK43lh+fzfZ24abBFXPw5RauEj/6WtlV9vxg5P3ANNRBTUZLrj1TjiOdMQ04RGzxvB1Y+R/GRhv4hmIuxWcCVDHu08HF9kFPuZN46z8epnaCmfRUleMT0SN1CtFVmh6fHVKgOAl/nw8kF44PHU1chDxrIcSx3ECiagybLUoNki0uUqwzDH0o X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(376002)(39860400002)(396003)(136003)(346002)(451199021)(40470700004)(46966006)(36840700001)(1076003)(40460700003)(82310400005)(7696005)(26005)(83380400001)(82740400003)(2616005)(7636003)(186003)(47076005)(6286002)(6666004)(336012)(426003)(356005)(16526019)(36860700001)(55016003)(41300700001)(2906002)(86362001)(40480700001)(478600001)(4326008)(316002)(70586007)(6916009)(70206006)(8936002)(36756003)(8676002)(5660300002)(15650500001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2023 14:44:53.8709 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9afc32bc-7958-4826-8492-08db771d11e0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6539 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org There was missing "dump_xxxxx" commands help message. Patch adds support for "help dump" command to see one. Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 43 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 18e6e19497..9edbb7d04f 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -92,6 +92,7 @@ static void cmd_help_brief_parsed(__rte_unused void *parsed_result, " help ports : Configuring ports.\n" " help filters : Filters configuration help.\n" " help traffic_management : Traffic Management commands.\n" + " help dump : Dumps related commands.\n" " help devices : Device related commands.\n" " help drivers : Driver specific commands.\n" " help all : All of the above sections.\n\n" @@ -982,6 +983,44 @@ static void cmd_help_long_parsed(void *parsed_result, ); } + if (show_all || !strcmp(res->section, "dump")) { + cmdline_printf( + cl, + "\n" + "Dump Commands:\n" + "--------------\n" + "dump_physmem\n" + " Dumps all physical memory segment layouts\n\n" + + "dump_socket_mem\n" + " Dumps the memory usage of all sockets\n\n" + + "dump_memzone\n" + " Dumps the layout of all memory zones\n\n" + + "dump_struct_sizes\n" + " Dumps the size of all memory structures\n\n" + + "dump_ring\n" + " Dumps the status of all or specific element in DPDK rings\n\n" + + "dump_mempool\n" + " Dumps the statistics of all or specific memory pool\n\n" + + "dump_devargs\n" + " Dumps the user device list\n\n" + + "dump_lcores\n" + " Dumps the logical cores list\n\n" + + "dump_trace\n" + " Dumps the tracing data to the folder according to the current EAL settings\n\n" + + "dump_log_types\n" + " Dumps the log level for all the dpdk modules\n\n" + ); + } + if (show_all || !strcmp(res->section, "devices")) { cmdline_printf( cl, @@ -1016,13 +1055,13 @@ static cmdline_parse_token_string_t cmd_help_long_help = static cmdline_parse_token_string_t cmd_help_long_section = TOKEN_STRING_INITIALIZER(struct cmd_help_long_result, section, "all#control#display#config#ports#" - "filters#traffic_management#devices#drivers"); + "filters#traffic_management#dump#devices#drivers"); static cmdline_parse_inst_t cmd_help_long = { .f = cmd_help_long_parsed, .data = NULL, .help_str = "help all|control|display|config|ports|" - "filters|traffic_management|devices|drivers: " + "filters|traffic_management|dump|devices|drivers: " "Show help", .tokens = { (void *)&cmd_help_long_help, -- 2.18.1