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?) > > 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. > > 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 (= the dictionary file) consists of entries like > > s:FFB19961-79CC-4684-84A8-C31B0A2BBE82:[EarlyFdt16550SerialPortHookLib]:ig > s:FFB56F09-65E3-4462-A799-2F0D1930D38C:[DxeContextBufferModuleConfigLib]:ig > s:FFE06BDD-6107-46A6-7BB2-5A9C7EC5275C:[EfiAcpiTableProtocol]:ig > s:FFF12B8D-7696-4C8B-A985-2747075B4F50:[EfiSystemNvDataFv]:ig > > it's sorted uniquely by GUID. > > 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. -=-=-=-=-=-=-=-=-=-=-=- 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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-