函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\alternative.c Create Date:2022-07-27 08:44:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:"noinline" to cause control flow change and thus invalidate I$ and* cause refetch after modification.

函数原型:static void __init_or_module noinline optimize_nops(struct alt_instr *a, u8 *instr)

返回类型:void

参数:

类型参数名称
struct alt_instr *a
u8 *instr
347 i小于 length of build-time padding 循环
348  如果instr[i]不等于0x90则返回
352  local_irq_save(flags)
353  Use this to add nops to a buffer, then text_poke the whole buffer.
354  local_irq_restore(flags)
356  DUMP_BYTES(instr, length of original instruction , "%px: [%d:%d) optimized NOPs: ", instr, length of original instruction - length of build-time padding , length of build-time padding )
调用者
名称描述
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