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 D56B242D59; Mon, 26 Jun 2023 13:08:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8DF241149; Mon, 26 Jun 2023 13:08:09 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2056.outbound.protection.outlook.com [40.107.102.56]) by mails.dpdk.org (Postfix) with ESMTP id EB74B4067B for ; Mon, 26 Jun 2023 13:08:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hjR7rps0R3WjUzAS8m4ZY1YUqnYb917up/FAfnS873ZXpF4chtUSzFQA43bqQf176k9rHLVHoGkXTt7zjnS6+iSF0LkWvHXU7wkE/PeosTkulA1fUaiVQ1RoHLLFw2tcCeyP16JJAfu+28WlY1q2zKZmX9ZH63molEzZOmaqiuQ4gBavdMyILv14egq/CLtkulsY8AWfn0V/KEn0XiQ5kBA2WTzQ4fIFzv7Ww2mt5fzJ4e5jbOxEBypNrZfEfGy8gKlPgNqfLrbJVQRIMc5fx4yQ2MgptrNR3FLa9g53y/nDFpzuBzvEgHP4AkRp7aOmRJEZsy0re6OOz1rXgfk42A== 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=WZNYfdUSkhTDsBRpbhCqqOrCcXPpV/+SFAR2cnYfXic=; b=TmS/R4zooN7cuhfMwmDIL+/ZT6RA4XLbsdYkcmXXAI0en2ww/67PlQmWN+XCBnZCbWaaKjFDXvHjvhrSUcwduUl7b6ReISAl4HJR4kClO5INp4SOaXOIx3NjIjzaNZrILcCu4sGevp4VDY6IyywzMiDpOgpiLX2ZEUVf8/z7V/d/tE1rPMt0DZtiWZMI2GFCBtfJjGvl5IQ2DEw19midz4x7dB9vK4FziOymjM6tedOGmQ83b69Okz8HkwFfr5wYzjDGpdVQomoes5Rr8uM84HaB9olHoCLw4SS+Njh/M7f4HaAWsOXUT7f6hTxvJdpso+rm+KRMVimWww9LuJVlPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=WZNYfdUSkhTDsBRpbhCqqOrCcXPpV/+SFAR2cnYfXic=; b=Pvex8qJqO8yN6LaGKXad5TSwCyJUlhyrVldaRqBfyTtIIhb0YM1Nj0c24TyKvgkTTIHIZEi1XLEiU+fnlvTDVSJd4BM+UiRJPcWmvnR0d7gHcnDuqTU1E1mS9qVxV3Wqevoe9raQ4Capn1XOYtvQ0EVA2FBAkikQQXIXSxR7okf5wC4lPEgSnMRhNiOvrnDF0R9pETNBFvj9ENf6ouxjeaxA4ifIiy5nqaf5QnP8kAYSUpBbNFMtCpwntEoFUigh9Bl/BvbG+f8vxtDo7/vPid/14I/aY0YWtsTVhkebD8izqQyYEP1rps/18f84+RFw4rn2aP5LPdLa9zAcKZddDg== Received: from BN0PR04CA0187.namprd04.prod.outlook.com (2603:10b6:408:e9::12) by SA3PR12MB8763.namprd12.prod.outlook.com (2603:10b6:806:312::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Mon, 26 Jun 2023 11:08:06 +0000 Received: from BN8NAM11FT072.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e9:cafe::e) by BN0PR04CA0187.outlook.office365.com (2603:10b6:408:e9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.33 via Frontend Transport; Mon, 26 Jun 2023 11:08:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT072.mail.protection.outlook.com (10.13.176.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.47 via Frontend Transport; Mon, 26 Jun 2023 11:08:05 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 26 Jun 2023 04:07:50 -0700 Received: from nvidia.com (10.126.230.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; Mon, 26 Jun 2023 04:07:49 -0700 From: Viacheslav Ovsiienko To: CC: , Subject: [PATCH v3] app/testpmd: add trace dump command Date: Mon, 26 Jun 2023 14:07:34 +0300 Message-ID: <20230626110734.14126-1-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.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT072:EE_|SA3PR12MB8763:EE_ X-MS-Office365-Filtering-Correlation-Id: fd99d494-276e-4a54-4de1-08db76359e2a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c2nBDgjSo0sAJExaoXPRdydLLBfaCQQqF/4xl89pen/IqZ6AF89sqzWGCy90CE6f2lJOMsGWw5gvlLENb7KWnYcB6g8unkIaVcghn90R6FtyIpyMWFPeL1T/WQmL5JnPHeLtsbL3ex7jpX7QYrHp4Icz4G4xBk9g7QvLl10N8ILbgPG4kZ49Ag8jhqsmeo0ppdWt3AAwS5AzD9gazNNms2TyKqQ3S/n5+6H3uxVcafPx0juXaUlNjfC+Y+a3Ew3Zz0LJFDyBv79cbFkEg5cf/4x43TLV/4X0KaRQFtmePQB/cszUVQUC46L6hac7Nn9ite9PnXF0AvOkYN74Rg+AChsEA9PrSxC62LaqJbeYeii/2C/NsYyBlF0ftMIQ+z19YuBuQ5aTeg6x2wLzzuPF8FGW2a134NIchdH+ZA/FptTgytz1e4wqghLgkKpgE7/EQhhim33equDF9ad5FggjAetlQJbe9pMWs3UVquMeODAmgU20JfAnoO0JcPjLrANkTlOLu4AGU8/uioJjKx5ra6kSOLiB3xE3IcECYMd/tpdHa86wFOfvTAVZGfvDFW1YlqrkKSJOTsHuBIZsXNMXGvDVBvcl8tlnsHDoGKDe/XTvDFYwxCufKaeNrbzExULpAa5FACaMVqZUxplP4SqXOmA0Zm0qncq+0/QUrMLpw6qV39/Jws50kNMA8D5JQAaRi1FAbctCiOl1km/tsPul65cuLWrZOklv+eRmGCH+Ib9nLqnc0S7cIMJDl1qWaLR+ X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(396003)(39860400002)(376002)(346002)(136003)(451199021)(46966006)(40470700004)(36840700001)(40460700003)(2906002)(7696005)(82310400005)(6666004)(7636003)(356005)(82740400003)(2616005)(83380400001)(336012)(426003)(26005)(47076005)(186003)(6286002)(16526019)(36860700001)(55016003)(41300700001)(40480700001)(86362001)(54906003)(1076003)(478600001)(316002)(6916009)(70206006)(4326008)(70586007)(8936002)(36756003)(8676002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2023 11:08:05.9942 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fd99d494-276e-4a54-4de1-08db76359e2a 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT072.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8763 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. The tracing data are saved according to the EAL configuration (explicit --trace-dir EAL command line parameter alters the target folder to save). The result dump folder gets the name like rte-YYYY-MM-DD-xx-HH-MM-SS format. This command is useful to get the trace date without exiting testpmd application and to get the multiple dumps to observe the situation in dynamics. Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c6690887d3..70b598c64e 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -8372,6 +8372,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 = @@ -8384,7 +8386,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