Skip to content

Comments

collection: drop unnecessary kallsyms module lookup#1821

Merged
lmb merged 2 commits intocilium:mainfrom
lmb:kallsyms-no-modules
Jul 14, 2025
Merged

collection: drop unnecessary kallsyms module lookup#1821
lmb merged 2 commits intocilium:mainfrom
lmb:kallsyms-no-modules

Conversation

@lmb
Copy link
Contributor

@lmb lmb commented Jul 10, 2025

collection: drop unnecessary kallsyms module lookup

The library doesn't rely on knowing symbol module names anymore. Drop some
dead code which was missed during that refactoring.

Signed-off-by: Lorenz Bauer <[email protected]>

internal/kallsyms: drop Module, AssignModules

The library doesn't use these routines anymore. Splitting module lookup from
address lookup also doesn't really make sense because the really expensive
part is parsing /proc/kallsyms, not storing a bit of extra metadata.

Signed-off-by: Lorenz Bauer <[email protected]>

lmb added 2 commits July 10, 2025 15:42
The library doesn't rely on knowing symbol module names anymore.
Drop some dead code which was missed during that refactoring.

Signed-off-by: Lorenz Bauer <[email protected]>
The library doesn't use these routines anymore. Splitting module lookup
from address lookup also doesn't really make sense because the really
expensive part is parsing /proc/kallsyms, not storing a bit of extra
metadata.

Signed-off-by: Lorenz Bauer <[email protected]>
@lmb lmb marked this pull request as ready for review July 14, 2025 09:44
@lmb lmb requested a review from a team as a code owner July 14, 2025 09:44
@lmb
Copy link
Contributor Author

lmb commented Jul 14, 2025

@ti-mo not sure how attached you are to the modules code, I think it's easy to bring back if we do end up needing it.

@lmb lmb merged commit cfddc9e into cilium:main Jul 14, 2025
30 of 33 checks passed
@lmb lmb deleted the kallsyms-no-modules branch July 14, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant