函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\opt.c Create Date:2022-07-27 09:38:39
Last Modify:2022-05-22 07:44:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:setup_detour_execution

函数原型:int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter)

返回类型:int

参数:

类型参数名称
struct kprobe *p
struct pt_regs *regs
intreenter
483  如果* Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered.按位与probe is really optimized.* NOTE:* this flag is only for optimized_kprobe.
485  op等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(p, structoptimized_kprobe, kp)
487  ip等于 detour code buffer TMPL_END_IDX
488  如果非reenterreset_current_kprobe()
490  返回:1
492  返回:0
调用者
名称描述
setup_singlestep