From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id E77C2AC1012 for ; Thu, 11 Jan 2024 11:03:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7PUz/3h/AKrrwB8FlO4DyKDE/XDFmjonPjmGZ9C/lr8=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:Reply-To:References:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1704971028; v=1; b=oN+1LIthY1NW3h4Fpkua5foV8bgQPn+BRXy8gqeuPkc3v/FxRaZZsxzYv7TMt7tjUtpyw4C/ lhJgkoCNNs0Sq46JyTltA/E9pUcTuMrR7bNRTwnsof8rYLTAZdM3G6pituFdJYjWVPEKpckyKJl yQ5tzivkio5OlT1OvzqA1HVQ= X-Received: by 127.0.0.2 with SMTP id oEC8YY7687511xGudWetc0bM; Thu, 11 Jan 2024 03:03:48 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.9097.1704971027693323838 for ; Thu, 11 Jan 2024 03:03:47 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-520-fz4vr1OfP0KYSuMA91BSiw-1; Thu, 11 Jan 2024 06:03:43 -0500 X-MC-Unique: fz4vr1OfP0KYSuMA91BSiw-1 X-Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 47FC1811E9C; Thu, 11 Jan 2024 11:03:43 +0000 (UTC) X-Received: from [10.39.193.20] (unknown [10.39.193.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 755671121313; Thu, 11 Jan 2024 11:03:42 +0000 (UTC) Message-ID: <1814fe99-cd60-8293-1637-aefd68111101@redhat.com> Date: Thu, 11 Jan 2024 12:03:41 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] Memory Attribute for depex section From: "Laszlo Ersek" To: Pedro Falcato , devel@edk2.groups.io Cc: nhi@os.amperecomputing.com, "ardb+tianocore@kernel.org" , Andrew Fish Reply-To: devel@edk2.groups.io,lersek@redhat.com References: <44ca139f-4d78-4322-b5b6-8e9788bb7486@os.amperecomputing.com> <2ad16043-754e-3bb9-3a4a-702d9a50bf63@redhat.com> <45b95719-f1fc-dbc6-a4cc-a022d691844c@redhat.com> <30901646-905c-798c-d088-255498028fff@redhat.com> In-Reply-To: <30901646-905c-798c-d088-255498028fff@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: QXCb8pimPAr5UovNj7Runl7yx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=oN+1LIth; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On 1/11/24 09:46, Laszlo Ersek wrote: > On 1/10/24 22:50, Pedro Falcato wrote: >> For the protocol database, you'd replace the linked list with a simple >> hashtable, hashed by protocol. Something as simple as LIST_ENTRY >> mProtocolHashtable[64]; would probably be enough to fan out most of >> the problems (I think? How many different protocols are there?) >=20 > I can answer this question reasonably well, I think. I have a script > that collects symbolic names of GUIDs from the edk2 tree (plus hardcodes > a number of well-known but not edk2 GUIDs), and creates a "sed" script > out of them. Then another script uses this "sed" script for filtering > edk2 logs -- the idea being to replace the whole bunch of logged GUIDs > with their symbolic names. That makes logs much easier to read. >=20 > The generator script is written such a way that the generated "sed" > script only grows over time; put differently, this "dictionary" of > name<->GUID associations never forgets, it only picks up new GUIDs. The > "sed" script (=3D the dictionary file) consists of entries like >=20 > s:FFB19961-79CC-4684-84A8-C31B0A2BBE82:[EarlyFdt16550SerialPortHookLib]:i= g > s:FFB56F09-65E3-4462-A799-2F0D1930D38C:[DxeContextBufferModuleConfigLib]:= ig > s:FFE06BDD-6107-46A6-7BB2-5A9C7EC5275C:[EfiAcpiTableProtocol]:ig > s:FFF12B8D-7696-4C8B-A985-2747075B4F50:[EfiSystemNvDataFv]:ig >=20 > it's sorted uniquely by GUID. >=20 > Right now, it has 3074 entries. (People like generating GUIDs! :) In > PI/UEFI/edk2, *everything* is a GUID, not just protocols!) If I grep the dictionary for "Protocol", I get 515 hits. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113615): https://edk2.groups.io/g/devel/message/113615 Mute This Topic: https://groups.io/mt/103594587/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-