From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (EUR03-AM5-obe.outbound.protection.outlook.com [40.107.3.79]) by mx.groups.io with SMTP id smtpd.web12.1954.1590086688512262782 for ; Thu, 21 May 2020 11:44:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=t3dudlLu; spf=pass (domain: arm.com, ip: 40.107.3.79, mailfrom: tomas.pilar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ejOu+fUlIjoqUYoJAoKeeGAQcKygMHKWXmUzwPl2pcM=; b=t3dudlLuf8UmvcpPXqV5a6sBu0TOTRnsx+ypOirM0q7dt+w/WgExHdPiZOCyX8IWeiZsh2zOrlwsTb7YIuVW1L2bp/9Lgj726H3db82Hr6SY9GNOAkFTlp3zdVVwb7gj462fCmCGjX6RYH8fgC3hENEQew6hnt8+zyMkrqylVPQ= Received: from DB6PR0802CA0027.eurprd08.prod.outlook.com (2603:10a6:4:a3::13) by HE1PR0802MB2377.eurprd08.prod.outlook.com (2603:10a6:3:c9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.27; Thu, 21 May 2020 18:44:45 +0000 Received: from DB5EUR03FT020.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a3:cafe::e) by DB6PR0802CA0027.outlook.office365.com (2603:10a6:4:a3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT020.mail.protection.outlook.com (10.152.20.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:45 +0000 Received: ("Tessian outbound d078647f4174:v57"); Thu, 21 May 2020 18:44:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e7bd86fc52e27f97 X-CR-MTA-TID: 64aa7808 Received: from b975a9ce3b30.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2999B356-5B70-4D5A-A6FD-A77A87FB80EB.1; Thu, 21 May 2020 18:44:40 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b975a9ce3b30.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 May 2020 18:44:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Meh7le102gIjBkpdaiMrXuNKl8Ywd63VfSBCiyFHE871dTCI6U9JODCa5xJ222paPCn89F91cv1aewAJkd6TFRn50DN8JvNQ9viL4c/j2a6FoaKi8ICe12+g44e89bKDLtNzFP4cyAEDR/6Rqu9bCiT4gejv74UmviQI2ErM221MxtU+5IiayqfDx+RSABbvijmd5aUARNqgph3g4fY9be288A5v6i7GuRI4nj13aAitrS5Mg4+0jFsmHj0moskTLpERPSE+fqK3bZ8kLFU+hHVEK1jGuv5MTjJ+e8UyM0WjExGQnG2Acgud7cdXcrNic7rT6ZUKyKy/Q23DtdNFOg== 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-SenderADCheck; bh=ejOu+fUlIjoqUYoJAoKeeGAQcKygMHKWXmUzwPl2pcM=; b=T4L5Ea05Ll7RlLYbCUcuwWacAphP+nETHli5xdraN8dHqMjBvgORM6+e1k0a/horSvFvW7d3mfxRDgD6C38QyGLDz/SDpshmohU7G0SQd6JiiSlVoL96c5xRuHB4wjDGMrPnTRP2riIAnvVabia55SriVxLC1sjbOOSEn3F5W1J/yKwsHhLAvyxfbdxTPSl/HzqUOHssAow9BSaMopEO48Jo7xwBQv8Y6q3bvvl1WuDVAvtUgn/VUmmOIB6HDpM8QksqHcTJXFrnNlh3mcYpECIpGC0TmiIRAuJmq5ZBkDJ4uYgZFjkJk162YzRP/5XvYucKmcP1iYOGdlwsHlgZtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=bestguesspass action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ejOu+fUlIjoqUYoJAoKeeGAQcKygMHKWXmUzwPl2pcM=; b=t3dudlLuf8UmvcpPXqV5a6sBu0TOTRnsx+ypOirM0q7dt+w/WgExHdPiZOCyX8IWeiZsh2zOrlwsTb7YIuVW1L2bp/9Lgj726H3db82Hr6SY9GNOAkFTlp3zdVVwb7gj462fCmCGjX6RYH8fgC3hENEQew6hnt8+zyMkrqylVPQ= Received: from MR2P264CA0094.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::34) by AM6PR08MB3560.eurprd08.prod.outlook.com (2603:10a6:20b:4c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Thu, 21 May 2020 18:44:39 +0000 Received: from VE1EUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:32:cafe::a5) by MR2P264CA0094.outlook.office365.com (2603:10a6:500:32::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT051.mail.protection.outlook.com (10.152.19.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:38 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1415.2; Thu, 21 May 2020 18:44:38 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Thu, 21 May 2020 18:44:37 +0000 Received: from localhost.localdomain (10.57.25.130) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Thu, 21 May 2020 18:44:37 +0000 From: "Tomas Pilar (tpilar)" To: CC: , Ray Ni , Zhichao Gao Subject: [PATCH v2 0/6] Standalone AcpiView Application Date: Thu, 21 May 2020 19:44:15 +0100 Message-ID: <20200521184421.2222-1-Tomas.Pilar@arm.com> X-Mailer: git-send-email 2.24.1.windows.2 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(4636009)(376002)(346002)(396003)(136003)(39860400002)(46966005)(82740400003)(47076004)(82310400002)(8936002)(336012)(86362001)(426003)(8676002)(186003)(54906003)(81166007)(356005)(316002)(26005)(1076003)(5660300002)(6916009)(36756003)(2616005)(6666004)(70206006)(70586007)(478600001)(4326008)(2906002);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91884e08-c09d-4a65-d65e-08d7fdb70821 X-MS-TrafficTypeDiagnostic: AM6PR08MB3560:|HE1PR0802MB2377: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6430;OLM:6430; X-Forefront-PRVS: 041032FF37 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: syD9uroSw3BnVCO1pXA4b7uv/pj61O0s/0cnwB9O3QWo56kyxtb6tYfDGXbEpiLgqCZ1fORz/AQmuyR1H+gdKVlDZxG+iI8SVHYWw74fwo9bmIuQRYeVid6COcNKOpZuwZwp/dgS77Ii4uRIPV3BEga2UKZcZkINrcbWy3tfNN1FI7pl6CPUtMJO09/fWPCLYv2ISE2V/l0hOUWGqqoEODIF019KUR3/S/I4LY8Eg3gt2TsHTMOAhFffIpkUIAXHPt2sZ+9DpExY5kfl0H81ic1Rx8cEq3EQNaFPka/754voXTuPxRSDzXMyQXPwtCtP/+8KiBCUVIjAH/k5gLy8GhJGUVo6yRAqEgu0azM8iRnK98oD3mPyZ9hUaIB+C06kbSP/4jiLddV9EY9mRjao2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3560 Return-Path: Tomas.Pilar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT020.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(136003)(396003)(346002)(376002)(46966005)(36756003)(107886003)(336012)(186003)(2906002)(54906003)(8936002)(2616005)(316002)(8676002)(81166007)(82310400002)(426003)(70206006)(1076003)(70586007)(26005)(4326008)(5660300002)(6666004)(478600001)(47076004)(6916009)(82740400003)(86362001);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 1b5fe200-39de-4bb0-1df0-08d7fdb70425 X-Forefront-PRVS: 041032FF37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hl1fFGgtHQH0bHMg7FyEMJ0fDBIMzY43fOim4udXz9er1dhmZGKsyUu5jMByPZXGY28e0ExSvGuWfqlpN7R+tMM4ag0w4211mInLHE7YvXyde8D35yn0/mWkBAMFpTZYtGTYFjYtE4Ww7YbXuwYHa7jy8fVuaeTPPfeshmhX/+rGf6Fr4lSGR/HQ2Wq3BcFioxKTBTITJrjPNGhtYImQIiQPfcLU/hvj+GXTLJySSiBNb0ZdKpIW94xzrKkG9fEMH0h4OsglCeOAJAAyHx5b8uWr4CnVhpQ2SjN7DbiC7LX0zoOzvlho5wFOnsCep/fEGdRASonlbTpcjSZ3r510PV1N8ZBBkarYY+U95zPddJcuTHKltt5PVrN/hojqmrV+C1F8ZV9731VWlxx9sNNLxMl81apYiLBa+WxdTQJ3x0BsrpOnaLjwyP9qLr3r6Ps7ti/eUBtLbNLGhWKn41GL9OdvAxoIpzQaqE7N/0vSa/Otc/O6xJWTUUdz0KijJnFyvp89Vvvl37dMwt5y84ArNg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2020 18:44:45.3422 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91884e08-c09d-4a65-d65e-08d7fdb70821 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2377 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This patchset adds a new application module to the=20 ShellPkg with the functionality of the 'acpiview' command. The existing code is tidied and a clean boundary between the UEFI shell command wrapper and the acpiview functionality is created. Then, a new application wrapper is added. The motivation for a standalone AcpiView application lies in the desire to test implementation of the Acpi tables on=20 a wide selection of platforms, particularly platforms still in development, platforms that might have an older implementation of the UEFI shell or platforms that might not include the 'acpiview' command in the internal build of the UEFI shell. Furthermore, this application can then be integrated in larger firmware testing frameworks. --- v2: Patch formatting Cc: Ray Ni Cc: Zhichao Gao Tomas Pilar (6): ShellPkg/AcpiView: Move log reset to main method ShellPkg/AcpiView: Refactor configuration ShellPkg/AcpiView: Move table count reset ShellPkg/AcpiView: Move parameter parsing ShellPkg/AcpiView: Refactor DumpAcpiTableToFile ShellPkg/AcpiView: Add application wrapper ShellPkg/Application/AcpiViewApp/AcpiViewApp.c = | 189 ++++++++++++++++++++++++++++ ShellPkg/Application/AcpiViewApp/AcpiViewApp.inf = | 31 +++++ ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiTableParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c = | 469 +++++-------------------------------------------------------------= ---- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h = | 113 +++-------------- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewConfig.c = | 246 +++++++++++++++++++++++++++++++++++++ ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewConfig.h = | 177 +++++++++++++++++++++++++++ ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Gtdt/GtdtParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c = | 1 + ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c= | 276 ++++++++++++++++++++++++++++++++++++++++- ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.h= | 27 +++- ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.i= nf | 32 ++--- ShellPkg/ShellPkg.dsc = | 6 +- 17 files changed, 1017 insertions(+), 556 deletions(-) create mode 100644 ShellPkg/Application/AcpiViewApp/AcpiViewApp.c create mode 100644 ShellPkg/Application/AcpiViewApp/AcpiViewApp.inf create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewCo= nfig.c create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewCo= nfig.h --=20 2.24.1.windows.2