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 E946442D59; Mon, 26 Jun 2023 13:07:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80EE341149; Mon, 26 Jun 2023 13:07:16 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2049.outbound.protection.outlook.com [40.107.100.49]) by mails.dpdk.org (Postfix) with ESMTP id 0DED04067B for ; Mon, 26 Jun 2023 13:07:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EPS9q2WSBCvnZKpys1Pbq2eJunfFciBpfpilQ+suFLinvR5wRzm37FLUmwx0dwrZoMzIfnF6Wo67cPtjBu6gsflidhqMN1cxT5w8lCB4HLUVhHXt1cDmwJ9TAARFO7oSGUIi0a6qgsQfBkRBDeExXA7qckftinYEHcmQKWYRnLYoIfRPOlxnM322neMcwEnD4V+ww8MMgc3X1obI/Zq9X9qect3MQZQKUjJNl87Taz0IO1oJeiV2Hy8eMvhD2lc9paMvXmzyKb90DkS2XVcxmmGYiLeKcl8Mc7WpQM6IHiq1cKm2P5qz27r8mzm1/99YzWNUzGYotED5U4t3hI7kPg== 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=BkvEvMTc69QNfAuBJ316LPWmRHqaR37jEmpqE3Xi+apLk1wtLxP5Cja/ANR5trcSAxSYKDXtd3NjcOINW2i5Kc1CYfDmGpUQ4XLtjcaXUnBl/9DhxuFfAbGjNPL/BXesB09W7DmpwrTFZmlvttz4M56LOoIAiQ8rh9trx9bt6uQJegsPeAXSZdmrYBt93e+HRoNOfKg2v0m3Fc9uOozJtvBwsgev1EQoGyGIC0rm/Ua4gIVU68XhJ1fYBwUUAal9eaDdvQqh5lAVW4NW6NQYdG9n/hMJmGVIpfOvJN1pmKsrsKtHVnvGMdDyCIo4LzVyJhJ0DkQiJTiQOgQzdmXyvA== 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=aAy+PqF5SbcVuteILCS8hF7afNn4oD68ekHkhziuc23/eusM0QaO596qIN1aQs/s0U48fH4uV6PPDGE2SPuS/JG42SdhVUcpbsa9qfKstVPWt2/R1Wkc/eoKqEop8VjkZ+knFAUmg+8//Gh2VrqAQtjLoI0TLNntZk+GaP/sIlY/gfA8AtuOp9Lu6nuhs192JJDRzCJnJNlQJ2pygalWxTYV45I+0gNURr8AAqOyGZreslkSxlyN1vcPrkCd3TH2jbMGCSChuWkEKwUymhp08jdxlLkFi3qcLzxyQwbeByx4nlINUzapUsifwtSKL+2iACSesQvdnZjJRpwt0Q9y2Q== Received: from BN8PR15CA0002.namprd15.prod.outlook.com (2603:10b6:408:c0::15) by PH7PR12MB9068.namprd12.prod.outlook.com (2603:10b6:510:1f4::7) 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:07:13 +0000 Received: from BN8NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:408:c0:cafe::80) by BN8PR15CA0002.outlook.office365.com (2603:10b6:408:c0::15) 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:07:13 +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 BN8NAM11FT052.mail.protection.outlook.com (10.13.177.210) 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:07:12 +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:04 -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:02 -0700 From: Viacheslav Ovsiienko To: CC: , Subject: [PATCH] app/testpmd: add trace dump command Date: Mon, 26 Jun 2023 14:06:48 +0300 Message-ID: <20230626110648.13980-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: BN8NAM11FT052:EE_|PH7PR12MB9068:EE_ X-MS-Office365-Filtering-Correlation-Id: 8955258c-0e57-4d20-d840-08db76357e8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1o8KinVaJ/p7K+DtdexXs0tvGy9CLcDyjFiGvLpuKY4ja+mb6aJn74Xdc6OPj0iGjw080YoiUayhYR6dAf0EutaIe7iYkCjh2VHtxJXeGI6VRHyFwCA3uuOlcRFKzb1Nqpr1Gv6pLM+YPx19Tigirh6R/waLFqqsMp1zVfqHqgW59NwooSpZhkF8NXItQxFJY85MZx2Y2vD7Ms2pV2sXw1O5avqxk51WX2Ef8e8awLXLHziTno19m0UJKoa04g8fs6IjbI6e0VK2RYvF2D+D6fwCmhXlZ4zjtlW16TvorRSMmb7yb0ZOcKfBNgd1S3gnqPunnUvZSsUZayo3m/eadOPWlrUOrsxsyoIUvJNLfr9eSS14d8SVdrVCYoQ4BgotesqkmbQO+Z9XksID/M0Gj32gbyT9zoY+fXDvRCXZt4ezRaXfsSztMLSp724iOq62hQkzlZ4UHIhely8gLWWs22I6iONDyB5UfgnyyM42Shy8bAN/LA32nw1z/GeivzfT4Xy6JRjNxP4Ml+HYMLNSFSQXsdmTtMjsCO52VMSisObkFfSQ3I6O1/5RJHDJvdbd+I2/uQ9senElZScx/dL2LXZ9AqczR4XbtHyn1fOgr2rYQdCG8hfzse1BXgvzCG8DS1pdUPS/33egocLwT4oEA9p/aGkkoYm3ldfK5J+ZbK0XnBX1j8Yb6bXIoXh85/x07b1iACAf1iu4jfh3rhMFeIID+MYfMZ4ntMW28dNVFUw0WXLmwp39q96Qghkx70Bc 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)(136003)(376002)(39860400002)(346002)(451199021)(36840700001)(46966006)(40470700004)(26005)(36860700001)(82310400005)(47076005)(478600001)(426003)(6666004)(7696005)(54906003)(336012)(83380400001)(2616005)(16526019)(1076003)(6286002)(186003)(2906002)(5660300002)(356005)(40460700003)(36756003)(70206006)(40480700001)(70586007)(316002)(7636003)(82740400003)(55016003)(8936002)(8676002)(41300700001)(6916009)(86362001)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2023 11:07:12.9595 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8955258c-0e57-4d20-d840-08db76357e8d 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: BN8NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9068 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