[RFC] Kernel livepatching support in GCC
Andi Kleen
ak@linux.intel.com
Thu Jun 4 15:17:00 GMT 2015
> Rather than just a sequence of NOP's, should the first NOP be a
> unconditional branch to the beginning of the real function? I don't
> know if this applies to AArch64 cpus, but I believe some cpus can handle
> such branches already in the decode unit, thus avoiding any extra cycles
> for skipping the NOPs.
nops are very cheap. Typically they are already discard in the frontend.
It's unlikely all of this is worth it.
-Andi
--
ak@linux.intel.com -- Speaking for myself only
More information about the Gcc
mailing list