diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-03-18 15:33:58 -0700 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-05-04 21:16:05 -0700 |
| commit | 6282e9f46b4fa3ac554852bb1aef17843fc47ee2 (patch) | |
| tree | 668f577933a330def78d237f6d31368b697dfd26 /tools/objtool/include | |
| parent | 8eebd573113362ef3a3c75f166a83ee060dae11b (diff) | |
objtool: Add is_cold_func() helper
Add an is_cold_func() helper. No functional changes intended.
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/include')
| -rw-r--r-- | tools/objtool/include/objtool/elf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/objtool/elf.h index ccc72a692d9a..e452784df702 100644 --- a/tools/objtool/include/objtool/elf.h +++ b/tools/objtool/include/objtool/elf.h @@ -308,6 +308,11 @@ static inline bool is_prefix_func(struct symbol *sym) return sym->prefix; } +static inline bool is_cold_func(struct symbol *sym) +{ + return sym->cold; +} + static inline bool is_reloc_sec(struct section *sec) { return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL; |
