From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.89]) by mx.groups.io with SMTP id smtpd.web12.1402.1590085016501916708 for ; Thu, 21 May 2020 11:16:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=jQLCxF8q; spf=pass (domain: arm.com, ip: 40.107.20.89, 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=mBSFvDM+7RM5Fl6/BZfSmaG8O/zFaCLvrOB50kk5dMw=; b=jQLCxF8qq4dRCqBgXzYddH9HEv1clbHgae8Msk58ufztNbZV6mb6r1PsDix9BYq8u7CbIFUwTGJWYd23jzz1U+99CRjTjSfQo9bTqueTEvAOmLX5VyGqmGcLEX7WxprT2AlvTxZW+/tR0kupd9KTzXtMAlYjzWXCJJnog1lOz0Y= Received: from DB6PR0201CA0033.eurprd02.prod.outlook.com (2603:10a6:4:3f::43) by AM6PR08MB4692.eurprd08.prod.outlook.com (2603:10a6:20b:d2::13) 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:16:54 +0000 Received: from DB5EUR03FT010.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:3f:cafe::ea) by DB6PR0201CA0033.outlook.office365.com (2603:10a6:4:3f::43) 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:16:54 +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 DB5EUR03FT010.mail.protection.outlook.com (10.152.20.96) 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:16:54 +0000 Received: ("Tessian outbound 444e8e881ac1:v57"); Thu, 21 May 2020 18:16:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5ce112131190fd39 X-CR-MTA-TID: 64aa7808 Received: from 7177b3549b7b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6BE21794-3AEE-4240-8A9F-03FD1E6E6152.1; Thu, 21 May 2020 18:16:48 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7177b3549b7b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 May 2020 18:16:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TOwFktK39UPzWnVXuiVfoc0PJF0j5T4C320+Pc1wfKw3iS/e9V8ZKGd8BzlykLjUNSv7kNuNp8PmfpLRXMDv2fRt2cw5eiLjsdKJoXuVNI7QbxUaArAyzTP122LC1jKjNp3to5Myra/Wfkfzh2SNlhFzaBcXKLysgrbJxZBwnbHCdvyoQ+PWD9Rxdio9D8hf841puiXMq8pcSGFW0uYm/ts7kJz2UEdyXbxaYtyialyQJ+lHUmcMQTVBj31vfhBktYkisLmC4j2FWlAPR5grTi7cbpB9AD1CxvypgALKSb8OBQ97ilt/ivqzTzDXr4y0UCL040xHwTCI6z5sOk2AEw== 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=mBSFvDM+7RM5Fl6/BZfSmaG8O/zFaCLvrOB50kk5dMw=; b=MJBoJiw6jxV9W5YkqivaN2mJdff9CeKAgNUVvseKMBDfZOtl+IUuFozVA3HA5gz1wuzCsXye/PlgxgW7/DL5Hl+dW7vJWTtQ17UYEQ0hUn8yYHKdg9rFY1B5FE+XAnVO8itBZBZ32u11/3FnGRC1msrr4Tv+A0BU07OfLj+6QhXl+B6v3dLR36gPJoX/4VbBKeKHVyc+9ZT7wbW+H43Ohu5jOoFopj8RHtGEd1d0xD/y+wQAN2qX5971NWsQnCX+REbyv/QsTcQ6XpH6t9n3cZ48XQR2ySkmNS0J69WotkP7NRGCcm2XW5IsMVQmYQ56a1/OgL4jffW0VIofwFW4rA== 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=mBSFvDM+7RM5Fl6/BZfSmaG8O/zFaCLvrOB50kk5dMw=; b=jQLCxF8qq4dRCqBgXzYddH9HEv1clbHgae8Msk58ufztNbZV6mb6r1PsDix9BYq8u7CbIFUwTGJWYd23jzz1U+99CRjTjSfQo9bTqueTEvAOmLX5VyGqmGcLEX7WxprT2AlvTxZW+/tR0kupd9KTzXtMAlYjzWXCJJnog1lOz0Y= Received: from AM6P193CA0085.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::26) by VE1PR08MB4797.eurprd08.prod.outlook.com (2603:10a6:802:a1::23) 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:16:46 +0000 Received: from AM5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::4) by AM6P193CA0085.outlook.office365.com (2603:10a6:209:88::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.24 via Frontend Transport; Thu, 21 May 2020 18:16:46 +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 AM5EUR03FT025.mail.protection.outlook.com (10.152.16.157) 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:16:46 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) 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:16:46 +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:16:45 +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:16:45 +0000 From: "Tomas Pilar (tpilar)" To: CC: Ray Ni , Zhichao Gao Subject: [PATCH v1 0/6] Standalone AcpiView Application Date: Thu, 21 May 2020 19:16:23 +0100 Message-ID: <20200521181629.79-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)(346002)(396003)(39860400002)(136003)(376002)(46966005)(82740400003)(356005)(47076004)(8676002)(4326008)(426003)(2906002)(2616005)(70206006)(336012)(8936002)(6916009)(82310400002)(86362001)(81166007)(70586007)(478600001)(6666004)(54906003)(36756003)(186003)(26005)(5660300002)(316002)(1076003);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5b35e97e-4e58-437c-5326-08d7fdb3240b X-MS-TrafficTypeDiagnostic: VE1PR08MB4797:|AM6PR08MB4692: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6430;OLM:8882; X-Forefront-PRVS: 041032FF37 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: YOgtdfyiXMpX0ldDe/dfRGb3KtATWHdNvsVKhYjQVPl/qEzNer6Ekr65r3Kndj3NmsCQ1HakXGRdGkHNcItz/5UgxqrUcG+ZrgogS4Izy8c8kYTEx0pOKCw4JsaKz6a3zlyc+f2X4TI1Oa1rQrmJAqhgXCIJnggszHaDK9b74z87C80osv636/96fmWPf7GR/sV+jC1H3cekwngqh48YprD0AxBTlFd7ZapR/7Svr27vvazV3vl9LUFvPUfdbI3R1oUwm7xonps5FqiJzPNXvns66UwWwh1D89Flo8dLgt5r1v91mv0Rtoa7bKpvA1cyTyWVTyXRx6J6VAc74i0kGQHhmZNC7qI9NwH+dWuXfdqlPtmhPidndkfPka3hZzlBrxBSCdWj/bQjYsL7v1RfGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4797 Return-Path: Tomas.Pilar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT010.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)(346002)(396003)(376002)(46966005)(107886003)(426003)(5660300002)(81166007)(6916009)(6666004)(186003)(1076003)(82310400002)(336012)(478600001)(86362001)(26005)(2616005)(4326008)(47076004)(82740400003)(54906003)(8936002)(70206006)(70586007)(36756003)(8676002)(2906002)(316002);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 25e426a1-44c4-4fd5-9381-08d7fdb31f8d X-Forefront-PRVS: 041032FF37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 25PLsGHgGV25vITqgt6ktz+QpzupVDX+Lv+ewDW/BIy9Rbv/n1oDu38mJ0vo+zx0eX8IxzWm8gK1W6xrjAO/xRGtJDxeDEg7qoddeVgk7Mm+KhaL7SEDVQMhDtXRLaEgGUfZrVvrBT0slItLKfRGdNyvgKIcYTUKk6iHScPrT4rSctIv4xJhmCubuZ1tm5jIaegRL3Z27uGf2oh7hAFL8kU+MuH7rd8Bf9Qjkd9JCgWWMtDDR5y6WbzaB8OFxUb6526/uZGM36tuiDqccfzvW7YRnCgGn26QZQBPR/wRnC82kQINtql5XlFt9vNvAOuZwiGmqp7amhvaBSs+Q3HBlIz/KWryaZ7hYGqoix3bm6THuvBLx7Avy98bHh2nj5UrSbCa26280eh5Tx1aQcrLlg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2020 18:16:54.1839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b35e97e-4e58-437c-5326-08d7fdb3240b 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: AM6PR08MB4692 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This patchset adds a new application module to the 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 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. --- 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 -- 2.24.1.windows.2 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.