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 C69B142996; Thu, 20 Apr 2023 12:08:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93D6F41156; Thu, 20 Apr 2023 12:08:43 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2052.outbound.protection.outlook.com [40.107.220.52]) by mails.dpdk.org (Postfix) with ESMTP id B647E40687 for ; Thu, 20 Apr 2023 12:08:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YiuMwh70zSqGNmjXrsbfAU4HDoBzoCDqPYkOqTtSoxfNw+ZLZE4c3t5ycOAmTDRGUHtf7dFYi9kS5BOqc7PjA+MCoM054TmIUrG/AYVw1fLaVe6H23+eBWpzsW99W/YZgbW2vZXyzGKl3ZuJYgd2eBe9mvYrw+QkbgfJB5D0bQe7lJaEIZwoum0NU56Nu0k1OiK+g5ojEiMptz3LrMX80IrdophYjqz1ZobnptQN8eE/0mZqqacQywbiKwaikOclxOW8hxOvX/xiq+mPnTWfvi7zWUNht/TJMt3qSrenXvm9B9imPckIIrY0rtqoYJ1ZaSWNQewPa/zZMHzC5G8xog== 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=/VTtSNpxNHnhfoGbJbqzG8tId7O/7MsL9IN1QZUjPaE=; b=TIdoEHk8KZ/ZsCDp/lfugt5fQqm1kCBX753lJaZ/INbjw7HkXvlng0nP2mUnRXs1+IKkfcN79zCFAHUQ2ytGr1ZwbanIzZMxgzi358guhs5lebiGr9cTKmEKcGoTGCi1aBJBtTtHsuPkLxdhivzSM5pzYJE5N78e/Kx7KtRmNLgUjW1P7R7YPcLJ6YQyx/KSwwl5YX9t8wL5j5WEtDCpZnj10NEnlwzritevR/4Cy7MvmCGHMzWmeQYasQB8Z0G1O+uVCgpkuxNAkJO5WKKUYRDfw9zJDmGnhDt82yScsIZ6BltZoHkdsdv0O/X6LKNW3zW7qY0FFuuzxHOei08Pww== 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=/VTtSNpxNHnhfoGbJbqzG8tId7O/7MsL9IN1QZUjPaE=; b=oHPiMtONcmzycwxvtVUkIYwoF0VqTUOr9wCWiS7LJrkJVU1IVsRHTJdwyopMLdd2F+b8Lq70cQDDxUn0smxvxUBUd+iF01qxxiEyhlBAZhT4j63q4dXaknp3kcmCLsWgnfKdXpm95jUGcYiZTpjPwFhU4DIo7j7BFEXfSzNNn4WMxjWND3AEt9/3vxgTut8hrgyrFT9hAUIY7nXr2R7q9bU/WpIU2eEYEzemapQzFA5W7eFLeyo/AA+na1DLQNnGVvwXlat8uxPva8AkHb8GQOa6UxBx0tStnSbvUdgsHlypfXAtiMjEICwoJeD0dd941iefO2NXruQG1Yb+3P4klQ== Received: from BN9PR03CA0421.namprd03.prod.outlook.com (2603:10b6:408:113::6) by SJ2PR12MB8159.namprd12.prod.outlook.com (2603:10b6:a03:4f9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20; Thu, 20 Apr 2023 10:08:39 +0000 Received: from BN8NAM11FT063.eop-nam11.prod.protection.outlook.com (2603:10b6:408:113:cafe::1f) by BN9PR03CA0421.outlook.office365.com (2603:10b6:408:113::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.24 via Frontend Transport; Thu, 20 Apr 2023 10:08:39 +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 BN8NAM11FT063.mail.protection.outlook.com (10.13.177.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.25 via Frontend Transport; Thu, 20 Apr 2023 10:08:38 +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; Thu, 20 Apr 2023 03:08:27 -0700 Received: from nvidia.com (10.126.230.37) 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; Thu, 20 Apr 2023 03:08:26 -0700 From: Viacheslav Ovsiienko To: Subject: [RFC 1/5] app/testpmd: add trace dump command Date: Thu, 20 Apr 2023 13:07:59 +0300 Message-ID: <20230420100803.494-2-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20230420100803.494-1-viacheslavo@nvidia.com> References: <20230420100803.494-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT063:EE_|SJ2PR12MB8159:EE_ X-MS-Office365-Filtering-Correlation-Id: a9d86777-b151-402d-6eb4-08db41873656 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kqclbUu5jpUmDvUlr1qdgGxDo2QdY5YmquNnXViDfVwosgXZCj+XpcvZvv7V+1TpISI4Wl04MK7zt4qcMRL81RlN1ft4m1kv9tS+7s0fEg8hbA042R/uMXm/5j4HosdLzNRddaCAX+hBf1/Wo58ftkCzGR3aNNVHUa4cKgE9jS48IxkTW7g07VmB+nqEfqOhMsoCHyCthq6Wbzbl/t/+P3NUq9ZclowZybWk3yYnUyCOyqlOnWzBy4a9ErnJS5lsxJOmPXgnupSWh/8nXMSFSQK4AlL9NTBqf8h4H4YmBaTwIpIGE6SOUuqtaInxGvBCQZrNfXO8KJlttotRZlMRoRtWa+TYlb8KGiaXqeOnnRdxkc0KK2hobgxFmNC8CWWVTDuf5kYoGfdbE3hlb4kLaFD3fsl6z2l99YyiHpaYjR/+GABbRcpAmwUBEYdEg/yEgTApr7fNkh1ZtIB0Z1S6R/5oQfGEnb4ydpGRpWFuZOHPKROKjCMT2JKJL6eGo1O7OVBWl2aM+feJs7ZPRyT249gKY9U75oJ0NoEUE1lFmxTafynGx5TbQc+g7DPgAbGtAj0TGqrAxtsAyVaPj2dcM6QVwINxeefyxNRyzGaOEm/DSQe3KWOI8CZVrVlSfrPjGuruCD+g+I19woaCrNks3EGQE5uV2I6ibRFP3zjmci0xe7USufPiw6kOudPGf6OmPwMT9LR/50QATSkytrVIYuZuZB4zuM6MXajT0N0d/vSXJpe5nqkEBxzOtaJP6XMc9v8keh7wBiLmUZY26PpV5GdyaDCgsXRxST58iIykxgA= 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)(396003)(39860400002)(346002)(376002)(136003)(451199021)(36840700001)(46966006)(40470700004)(36756003)(186003)(70586007)(6916009)(316002)(70206006)(55016003)(478600001)(7696005)(6666004)(8936002)(82310400005)(8676002)(5660300002)(41300700001)(82740400003)(356005)(34020700004)(86362001)(40480700001)(2906002)(336012)(7636003)(426003)(2616005)(6286002)(26005)(1076003)(16526019)(40460700003)(47076005)(36860700001)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 10:08:38.9050 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9d86777-b151-402d-6eb4-08db41873656 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: BN8NAM11FT063.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8159 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 The "dump_trace" CLI command is added to trigger saving the trace dumps to the trace directory. Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 7b20bef4e9..be9e3a9ed6 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -39,6 +39,7 @@ #include #endif #include +#include #include #include @@ -8367,6 +8368,8 @@ static void cmd_dump_parsed(void *parsed_result, rte_lcore_dump(stdout); else if (!strcmp(res->dump, "dump_log_types")) rte_log_dump(stdout); + else if (!strcmp(res->dump, "dump_trace")) + rte_trace_save(); } static cmdline_parse_token_string_t cmd_dump_dump = @@ -8379,7 +8382,8 @@ static cmdline_parse_token_string_t cmd_dump_dump = "dump_mempool#" "dump_devargs#" "dump_lcores#" - "dump_log_types"); + "dump_log_types#" + "dump_trace"); static cmdline_parse_inst_t cmd_dump = { .f = cmd_dump_parsed, /* function to call */ -- 2.18.1