From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.89]) by mx.groups.io with SMTP id smtpd.web08.8401.1620383907027145995 for ; Fri, 07 May 2021 03:38:27 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=uL6+iSbZ; spf=pass (domain: arm.com, ip: 40.107.8.89, mailfrom: joey.gouly@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=3q8LFMtbkmDdqBW05N3WTCgQk0u2V4fDP4ocEqyPE74=; b=uL6+iSbZhhz6vtY0SkQSU6+IZeYIDkzvAM026s0kw+SGls4PB+Gj8WotMd4++DH+WLhf0NGN0dXg1rjHjGuItOBiZeH094JYRS5S1HhI0chMYH+Bp0jL26UlwYFvgBnysNWYqZVnIP8H/6WgHWyJetc9HLWDob2m6tIvV2THh+E= Received: from MR2P264CA0127.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::19) by DB8PR08MB5210.eurprd08.prod.outlook.com (2603:10a6:10:e7::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Fri, 7 May 2021 10:38:23 +0000 Received: from VE1EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:30:cafe::8a) by MR2P264CA0127.outlook.office365.com (2603:10a6:500:30::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Fri, 7 May 2021 10:38:23 +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=pass 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 VE1EUR03FT028.mail.protection.outlook.com (10.152.18.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Fri, 7 May 2021 10:38:21 +0000 Received: ("Tessian outbound 6c4b4bc1cefb:v91"); Fri, 07 May 2021 10:38:21 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c56b55a10d1a69f3 X-CR-MTA-TID: 64aa7808 Received: from c4d5c08de282.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 23902FEA-580F-46BA-93C2-F0B4FF50E58F.1; Fri, 07 May 2021 10:38:13 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c4d5c08de282.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 07 May 2021 10:38:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vrtiq5GEnCBcrZURsm/xuIF0yDBFZcQdQXYPn8DpDEmjRpcqiQNFRuB3mHvSrMrQlMe/YjVXcgcXvJjNxosd6JZRWoF9uZbn0emPPb0KHT7xyvi+zUn57wwNyqveoOzgKYTITnTyDcID2ugRqLyU2AM8Y7CZjxUFBRETKDn+5CHZJf+Eq/efZD/olLzPBetRQ2Zqw7Ns/TMiKD4bj8mBJauYNdU16vJIMxpMiwxav2SitmdYrcBqxZK2PV28dreDVfloPOp1Zk2VZEGZZkGzx1ud/stMmVxv+G6nMSmahqkJjQjacv9pEszNYpx5xbjoYkKQ3cXF60SZ186Qxt3K8Q== 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=3q8LFMtbkmDdqBW05N3WTCgQk0u2V4fDP4ocEqyPE74=; b=Qf3MBvQAogzLP6J70ctDuf9Uck92BlPNERTul180qWO/1YZ7aVFnCh0eZ8whxUAXxr71UyFiTGkZYlAYcx5CSnx/K/0OV+2ohLcAaaUErlLEEPGwzoRu7gvc0uB39FFDCtNlmutQndhrC+5PqMZov/7KbF/BsEpKK7DsHo+b3WacPupUi9zvxAJFmGk5ARQY3dsOcrO7BQAyr/3G4SP41f6sCDyNfJD41ARlNzs8o6siVcN2JpL6hKGLi8XCztd31tddd4KZsYQxffYjSNlnqMtK3XskmV4X11zWvvcO/yyroaVa2uKUfI6EnY65dIswwoKV3AcbiLCyiwNTAt6Dbw== 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=pass (p=none sp=none pct=100) 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=3q8LFMtbkmDdqBW05N3WTCgQk0u2V4fDP4ocEqyPE74=; b=uL6+iSbZhhz6vtY0SkQSU6+IZeYIDkzvAM026s0kw+SGls4PB+Gj8WotMd4++DH+WLhf0NGN0dXg1rjHjGuItOBiZeH094JYRS5S1HhI0chMYH+Bp0jL26UlwYFvgBnysNWYqZVnIP8H/6WgHWyJetc9HLWDob2m6tIvV2THh+E= Received: from AM6PR0202CA0067.eurprd02.prod.outlook.com (2603:10a6:20b:3a::44) by AM0PR08MB5060.eurprd08.prod.outlook.com (2603:10a6:208:15e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Fri, 7 May 2021 10:38:11 +0000 Received: from AM5EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:3a:cafe::3e) by AM6PR0202CA0067.outlook.office365.com (2603:10a6:20b:3a::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Fri, 7 May 2021 10:38:11 +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=pass 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 AM5EUR03FT033.mail.protection.outlook.com (10.152.16.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4108.25 via Frontend Transport; Fri, 7 May 2021 10:38:11 +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.2176.2; Fri, 7 May 2021 10:38:04 +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.2176.2; Fri, 7 May 2021 10:38:04 +0000 Received: from e124191.cambridge.arm.com (10.11.7.12) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 7 May 2021 10:38:04 +0000 From: "Joey Gouly" To: CC: , , , , Subject: [PATCH v1 0/5] Dot graph generator for PPTT Date: Fri, 7 May 2021 11:37:59 +0100 Message-ID: <20210507103804.8131-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 47d9ee8b-eaa8-4b13-9b54-08d911443c47 X-MS-TrafficTypeDiagnostic: AM0PR08MB5060:|DB8PR08MB5210: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UTgEVThl3WFR3ZnLbEgV7wcylIovF820ovbavJXYdED2BnUfb7QnpYEjQfukSL8BYhfPI1qv0T0sq6tY6XbMYTFLeCSd9MJ8uAvRKEj3y5CMrz9fvmsCTzTOmCHe6pUvwt6J5hjDC90AqOlraeyhiZjMdiahGFAn6X7nnUR3tC7LoW+4YHp/u2g7s252yjpRV2OHrBtMW84wizz6Mej+BgDlh0L9qSpEBlTWATjiheRBtdXW7JvamBBy89ZNMU1QREvxuJqXvWJ9q5pgXX0zNCIqT/e9A+F2H3O89KgXbQxD0XX0n7vOpzi8jtFkf+Go1PJAXfQQMy+L0cgidgQ21h/ocq10iuxj6po8vmWpYjSIHOrcHtaWTNhFgivUYmHAEqSVGqSR169pewJal7lkcypNtIs6j0SqZ5gcTfTg2xsfzuXmWQC28Cuwf57WgMLxCG0noAXvKpc35jLsxRCtjg+QwBXgROUC1wmZJpmNPeD6zZ4/VRp/+BMxF+3nknEyoLx55RY/xslhJQCm0ja1AE7ioVq3E54bJR1wxb0hTAxatqq7YRoPw+tJLSJpW/6zYR1028CBRnT4RlI5/dDhZKMBYUB2mR1WocFU76zIjVNRD7GqkU5syhfrbPLd7vk+4bbXNMvz+0UAG7/jd+k547wS0LJpe9u4Ns+xOWxUDCMV3L+CTmCexf+qyuJywWpi5753eJwLN1tiCzkP6qQTc6KnNM5Cntis7hiqEioK1oT+6L7z/A1sUQzEOVyiEHlpk3X3JjaWC80ea9hC1fjFUQ== 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;SFS:(4636009)(346002)(136003)(376002)(39850400004)(396003)(46966006)(36840700001)(426003)(6916009)(44832011)(70206006)(336012)(86362001)(1076003)(36756003)(82310400003)(316002)(8936002)(7696005)(4326008)(6666004)(2616005)(54906003)(83380400001)(70586007)(36860700001)(966005)(47076005)(5660300002)(82740400003)(186003)(2906002)(356005)(478600001)(26005)(19627235002)(8676002)(81166007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5060 Return-Path: Joey.Gouly@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5a084739-3017-483b-eb2f-08d911443605 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iaWt/G4SrUksqw5dz/wTXdc44W8g3rGaUWSbLrcm14xx9mwxB3D61HRdkwY/Xe3weg0Tj2vtDADeNd5SkIEWasAR4DmaeBENO4bmBVcRXI5uqIpjDt+C93kzac4R7VTRpvBdmoS6W3EQrGNJoTp85Z/yORSHRJeFHDjrWAU4Q6+Rj0dIIqgJ06kRV107Q/Q04oJJqRqpP03Trp8p+J/P0YLw96opMOSBDzb8uihGmqC27ecBYaEeQLUuDm3z6u6VH59DIt7tsJHmgR6UA2GXfc1RM3kYxNbfzOxP6LwJW4jdbVZSdUeYXofDC0EObFyQePezD+hJBdFSDFavDngEkEvkWNGQDxBaXkRqhIUR0cpiv0BufRUgcjB7pDCYp84lGSNEg8P3pF7aZ6px+leRO5AIfBRdw7KRFI2qBz4SbdUrhDTJtNbf3+SouFaTrbC8PU3XJFugj7MHX6f/WX45OnNxq00FMOuQfpZ/7aOqLG9DbBWG8QOiKFoWIvv28Q4CEIRWCY9ieJc1O00HBINRgkIZB6Cfc/b3rDrFa/XHhcbOqacU6IF2Yv7P2JnzjYJVE5EgRNwwIPBUyd69TUluaq3s9VATdq/5BN5mribCeGcr+xQIrm2FXebZLqfo2WfG2N8urKPRa9Z8Cbs3NyLMvXQJ/2T3tDoG62FCe39fvfUSiulWSbwe2etw/GgTuw5DaFYxzfNhLTcG/jtY5ZzMtvqkZ2zxmQSDNvy40ZHSoF0= 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;SFS:(4636009)(346002)(376002)(39850400004)(136003)(396003)(46966006)(36840700001)(83380400001)(81166007)(44832011)(54906003)(2616005)(70586007)(5660300002)(36756003)(316002)(6666004)(82740400003)(70206006)(19627235002)(478600001)(36860700001)(1076003)(6916009)(2906002)(26005)(86362001)(966005)(186003)(4326008)(7696005)(426003)(8936002)(336012)(82310400003)(8676002)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2021 10:38:21.5100 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47d9ee8b-eaa8-4b13-9b54-08d911443c47 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-AuthSource: VE1EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5210 Content-Type: text/plain This series adds functionality to print a dot graph of a PPTT table. This helps with understanding and debugging PPTT tables. The dot graph generator functionality is generic and could be used by other tables that would benefit from graph output. Bugzilla: 3378 (https://bugzilla.tianocore.org/show_bug.cgi?id=3378) The changes can be seen at https://github.com/jgouly/edk2/tree/1484_pptt_dot_graph_v1 Marc Moisson-Franckhauser (5): ShellPkg: Replace 'Trace' parameter with 'ParseFlags' ShellPkg: add a helper function for getting a new file name ShellPkg: add a Graph option to the Parser Flags ShellPkg: add dot file generator functions ShellPkg: add PPTT dot file genration .../UefiShellAcpiViewCommandLib.inf | 4 +- .../UefiShellAcpiViewCommandLib/AcpiParser.h | 79 +++-- .../AcpiTableParser.h | 6 +- .../UefiShellAcpiViewCommandLib/AcpiView.h | 25 +- .../AcpiViewConfig.h | 3 +- .../DotGenerator.h | 97 ++++++ .../AcpiTableParser.c | 20 +- .../UefiShellAcpiViewCommandLib/AcpiView.c | 117 +++++-- .../DotGenerator.c | 276 +++++++++++++++++ .../Parsers/Bgrt/BgrtParser.c | 10 +- .../Parsers/Dbg2/Dbg2Parser.c | 8 +- .../Parsers/Dsdt/DsdtParser.c | 8 +- .../Parsers/Facs/FacsParser.c | 10 +- .../Parsers/Fadt/FadtParser.c | 27 +- .../Parsers/Gtdt/GtdtParser.c | 8 +- .../Parsers/Iort/IortParser.c | 8 +- .../Parsers/Madt/MadtParser.c | 8 +- .../Parsers/Mcfg/McfgParser.c | 8 +- .../Parsers/Pptt/PpttParser.c | 285 +++++++++++++++--- .../Parsers/Rsdp/RsdpParser.c | 10 +- .../Parsers/Slit/SlitParser.c | 8 +- .../Parsers/Spcr/SpcrParser.c | 8 +- .../Parsers/Srat/SratParser.c | 8 +- .../Parsers/Ssdt/SsdtParser.c | 8 +- .../Parsers/Xsdt/XsdtParser.c | 10 +- .../UefiShellAcpiViewCommandLib.c | 24 +- .../UefiShellAcpiViewCommandLib.uni | 9 +- 27 files changed, 903 insertions(+), 189 deletions(-) create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/DotGenerator.h create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/DotGenerator.c -- Guid("CE165669-3EF3-493F-B85D-6190EE5B9759")