函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-27 15:05:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:verify_opcode

函数原型:static int verify_opcode(struct page *page, unsigned long vaddr, uprobe_opcode_t *new_opcode)

返回类型:int

参数:

类型参数名称
struct page *page
unsigned longvaddr
uprobe_opcode_t *new_opcode
278  copy_from_page(page, vaddr, & old_opcode, UPROBE_SWBP_INSN_SIZE)
279  is_swbp等于s_swbp_insn - check if instruction is breakpoint instruction.*@insn: instruction to be checked.* Default implementation of is_swbp_insn* Returns true if @insn is a breakpoint instruction.
281  如果s_swbp_insn - check if instruction is breakpoint instruction.*@insn: instruction to be checked.* Default implementation of is_swbp_insn* Returns true if @insn is a breakpoint instruction.
282  如果is_swbp则返回:0
284  否则
285  如果非is_swbp则返回:0
289  返回:1
调用者
名称描述
uprobe_write_opcodeNOTE:* Expect the breakpoint instruction to be the smallest size instruction for* the architecture