diff options
| author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2026-08-20 20:50:06 +0800 |
|---|---|---|
| committer | Petr Pavlu <petr.pavlu@suse.com> | 2026-09-09 12:15:36 +0200 |
| commit | 67059a02f5e26e4c5c890792d720bbff235bb1d5 (patch) | |
| tree | 90e500d979cfe6a7b4f2256d058dcce2558c47ff /tools/perf/scripts/python/bin | |
| parent | db91da8f05185706f492841d96864ad78893dd62 (diff) | |
module/kallsyms: Refactor current symbol filtering into is_core_symbol()
Currently, the loops in layout_symtab() and add_kallsyms() duplicate the
exact same checks (i == 0 || is_livepatch_module() || is_core_symbol())
to determine whether a symbol should be preserved in the module's core
symbol table.
Move the entire checking logic inside is_core_symbol(), including the
special handlers for the first symbol and livepatch modules.
No functional changes.
Suggested-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
