Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\alternative.c Create Date:2022-07-28 07:44:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Use this to add nops to a buffer, then text_poke the whole buffer.

Proto:static void __init_or_module add_nops(void *insns, unsigned int len)

Type:void

Parameter:

TypeParameterName
void *insns
unsigned intlen
259  When len > 0 cycle
260  noplen = len
261  If noplen > ASM_NOP_MAX Then noplen = ASM_NOP_MAX
263  memcpy(insns, Initialize these to a safe default [noplen], noplen)
264  insns += noplen
265  len -= noplen
Caller
NameDescribe
recompute_jump
optimize_nops"noinline" to cause control flow change and thus invalidate I$ and* cause refetch after modification.
apply_alternativesReplace instructions with better alternatives for this CPU type. This runs* before SMP is initialized to avoid SMP problems with self modifying code.* This implies that asymmetric systems where APs have less capabilities than