mirror of
https://github.com/dynup/kpatch
synced 2025-01-05 12:39:26 +00:00
a8a037271d
Use this instead of calling printk to avoid unwanted compiler optimizations which cause kpatch-build errors. The printk function is annotated with the __cold attribute, which tells gcc that the function is unlikely to be called. A side effect of this is that code paths containing calls to printk might also be marked cold, leading to other functions called in those code paths getting moved into .text.unlikely or being uninlined. This macro places printk in its own code path so as not to make the surrounding code path cold. I have a related integration test to add, but right now it's broken because we don't yet properly support the __verbose special section. That'll be another PR. Fixes #296. |
||
---|---|---|
.. | ||
core | ||
patch | ||
Makefile |