Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\opt.c Create Date:2022-07-28 08:39:25
Last Modify:2022-05-22 07:44:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_detour_execution

Proto:int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
struct pt_regs *regs
intreenter
483  If * 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. Then
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  If Not reenter Then reset_current_kprobe()
490  Return 1
492  Return 0