diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2026-09-16 11:43:09 -0700 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-09-21 11:02:54 +0200 |
| commit | 76e7630d90d0d5ff402e06607662b1f9e34eff6c (patch) | |
| tree | 47c95e168e29684759d5febb68c7ef4c5203e802 /tools/perf/scripts/python/bin | |
| parent | fbb79ff9a6638aeb5b7a5f7db25afd033e6edd96 (diff) | |
objtool/klp: Add test for cold function halves
The compiler splits unlikely code into a separate foo.cold symbol. Both
halves are the same function and both belong in the livepatch: carrying
only the hot part leaves the cold path branching into unpatched code.
GCC needs -freorder-blocks-and-partition to split reliably. The flag is
probed rather than assumed, and the test skips when the compiler declines
to split at all.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Assisted-by: Claude:claude-opus-5
Link: https://patch.msgid.link/20260916184351.2720310-17-song@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
