Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_current_kprobe

Proto:static inline __attribute__((__always_inline__)) void set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb)

Type:void

Parameter:

TypeParameterName
struct kprobe *p
struct pt_regs *regs
struct kprobe_ctlblk *kcb
542  __this_cpu_write(current_kprobe, p)
543  kprobe_saved_flags = kprobe_old_flags = flags & (X86_EFLAGS_TF | X86_EFLAGS_IF)
545  If if_modifier Then kprobe_saved_flags &= ~X86_EFLAGS_IF
Caller
NameDescribe
setup_singlestep
kprobe_int3_handlerInterrupts are disabled on entry as trap3 is an interrupt gate and they* remain disabled throughout this function.