On Sun, 4 Oct 2026 10:00:30 +0100, David Laight wrote: > Surely it would be better to add the sorted index as part of module load > so that all symbol lookups could make use of it?
A sorted index used by every lookup is roughly what [1] tried, and its review showed what that involves: aliases, livepatch's references into the symbol table, and the lookups by name. I'd rather leave that to the module maintainers. For this problem, Steve's reply suggests something smaller. The weak locations can be dropped once at module load, so ftrace no longer looks up symbols per record, and no index is needed. I'm prototyping that now.
