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 A9A2442C6F; Fri, 9 Jun 2023 17:29:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63C4E43031; Fri, 9 Jun 2023 17:29:22 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2076.outbound.protection.outlook.com [40.107.223.76]) by mails.dpdk.org (Postfix) with ESMTP id 2690E4302C for ; Fri, 9 Jun 2023 17:29:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gcnas3DFdKeQazTzk5EH97ZfLmr49xf49LG4+tsZi72MPiZ1H6IiEHELWj2/N1f9/HVRb/n954Tc2+84xUH8rOKJDNW76wCZIvB7KobbbxAr3r7JMgixj3CzXb6EHJsrVbGItz6Mj7Oq1JoKjV693Ja72P1BMeASLnfPxs+lmwaw9uRuOAw5d5GKMkNw+MN4EcA7H+xWrCP81buPaWuauJaBJYOlUnezr5+2330ecUyG9ZoBqtdf6z+14A9/PtO6iVbVdSzF+5JF3WOSa3W+DsJqxm9lx4ND01wL4WPKqvImGl2MDFM59hemgN1l+TxiVcnmyMyUNVyLyJB8Gx/GoQ== 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=NXaTAjGFHYyeM/NemE649YkJh40EeGJQNwOkyZhK28l0pgrRgpcF1fNlwiZqdOAtsp7m/KxJn9m/aa4QiZzk4HUaV4x5A16OYXLSYvaYWw1VrIJpdt237aIF7E7mMh5EIISZ/Vmb0VopHsxKY59VdjbL6G/Scsn+t2qF6jAKalUkmNuW8L7VlyvgoYy68BDaUZ/KDH+R8cxu7j85HdyOWJmkzHmwFk0abKo5Cql4tjY78EUdI6uuBpKlA/BPKq2e21TxJd1BbYdxOS+EqKiE3RCktqIXdOj9ZfXwe1JU3+JcNYhMnuSSUOKymlUypAi2Aj8gWjs/GiG+nFfUmhUB+g== 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=/VTtSNpxNHnhfoGbJbqzG8tId7O/7MsL9IN1QZUjPaE=; b=cUylR8VLwo3kxzU2NFlfXAwp7won2DUtxWh8Et5QE5PGXbyL+J08a8TLT31Nlq2rk49R9LONR/JojJ1weAP7opTZcMsTeBkZwT6I/pSo/PsLbPIqpNnepQOb4VW/ViiwZSt2vBoYGruzeTJsDIKe2RfdTMAkTU6ucKlrzxBIdE2uFiU9wNaz7Bng6h0mSUp9quaZSjxsYkw+fn4mUUTEMJQGHReWV/Ct0ISfPRoLH/ATVrDymxDGlvSoVBgR7XKZQnruiaCLXGasH8F+qzwI7JVd938iUuR7/Hw7MURFf1RMo9MYYilGlEzWzmfYuUTo+cCnNbpKQpYSvqnqix5Bng== Received: from DS7PR06CA0023.namprd06.prod.outlook.com (2603:10b6:8:2a::14) by BY5PR12MB4872.namprd12.prod.outlook.com (2603:10b6:a03:1c4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Fri, 9 Jun 2023 15:29:15 +0000 Received: from DM6NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2a:cafe::2c) by DS7PR06CA0023.outlook.office365.com (2603:10b6:8:2a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.26 via Frontend Transport; Fri, 9 Jun 2023 15:29:15 +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 DM6NAM11FT014.mail.protection.outlook.com (10.13.173.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29 via Frontend Transport; Fri, 9 Jun 2023 15:29:14 +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; Fri, 9 Jun 2023 08:29:06 -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; Fri, 9 Jun 2023 08:29:05 -0700 From: Viacheslav Ovsiienko To: Subject: [PATCH 1/5] app/testpmd: add trace dump command Date: Fri, 9 Jun 2023 18:28:43 +0300 Message-ID: <20230609152847.32496-2-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20230609152847.32496-1-viacheslavo@nvidia.com> References: <20230420100803.494-1-viacheslavo@nvidia.com> <20230609152847.32496-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.35] 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: DM6NAM11FT014:EE_|BY5PR12MB4872:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c11b210-2f33-4dfa-df69-08db68fe486b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xgC7vfXww09OMirxq6+vZxY2a2s8zR40X/Whs0QkdxPYAzK5kfttpWASto9SfxlAZgy8DGQyrlmki1tE959tiJSG5o9xwEnQSE5Y0R5AhPtWLhsTGxGfqjwvpW4m7xJU9BEL7+U2Tn4tBV5bkiVsnUxiARhOI99KGPFePBQrN8utcoBiLT80j+Chxdez3cH9cyPbKVmSPzHtjINsLSGKDIjzprF3nqJZnW/uQI5O90dbfrcuJr63WhVWPajmmCkuTuTfcnq8elsdXqiCNhU6sgNkEwQxVntrhwzlW5NR8opohd2mShCVYMNQrZgm1GOSdBUxEMaaV4N1dbkggT/wozODSp6jQIDJB377820hOgTgjCH+wuCIjKfGi0QcFH4J64w1Tk8cHgaoGRdN+A62my4lbRqrsD5aOuN9Q62zH/QeKINNAYGFzW7tAZ20Euspj/6o0xKJ6S5vTXG2He+FzaK7Wqqa2x7PYrTbaJD5ZQwJFDrkEEMV9RhuMR6aXl5t5+uyW8N4FhzLw7uCT4xcP9bzmSWl+uCUpwsEgJJdiGj5y/QwXViMe6hFbt0V2sc7nX+HsaDJSzcFFjp44uWVjYRvUKCjiagR0pMKTGoiOntp+ORLWYijXvt1tfuypPaY4KvKrSM1OKLBrubDBav6cuIXwzYFeinbyiaQAJz6aqriabngYYahL/Wynz+w9mswKyJ0WbvAymHLr3vqjoBuOJQ+IZizzaViqeEJbjkjK/8mk3+hXZgiNfmrUGwW3ng7 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)(346002)(376002)(39860400002)(136003)(396003)(451199021)(40470700004)(46966006)(36840700001)(478600001)(7696005)(6666004)(82310400005)(36860700001)(2616005)(47076005)(336012)(426003)(86362001)(36756003)(83380400001)(7636003)(55016003)(356005)(40480700001)(186003)(82740400003)(16526019)(1076003)(40460700003)(26005)(6286002)(8936002)(8676002)(5660300002)(41300700001)(2906002)(6916009)(316002)(70206006)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2023 15:29:14.7505 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c11b210-2f33-4dfa-df69-08db68fe486b 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: DM6NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4872 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