kpatch/kmod
Josh Poimboeuf a8a037271d macros: add KPATCH_PRINTK macro
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.
2014-07-31 23:11:20 -05:00
..
core kmod/core/Makefile: update the Makefile for Debian Like 2014-07-28 10:50:03 -04:00
patch macros: add KPATCH_PRINTK macro 2014-07-31 23:11:20 -05:00
Makefile kpatch: change core module path again 2014-07-28 20:30:20 -05:00