Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Ftrace callback handler for kprobes -- called under preepmt disabed

Proto:void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
unsigned longip
unsigned longparent_ip
struct ftrace_ops *ops
struct pt_regs *regs
23  p = Get the kprobe at this addr (if any) - called with preemption disabled
24  If Value for the false possibility is greater at compile time(!p) || Is this kprobe disabled ? Then Return
27  kcb = get_kprobe_ctlblk()
28  If kprobe_running() will just return the current_kprobe on this CPU Then
29  kprobes_inc_nmissed_count(p)
30  Else
31  orig_ip = ip
33  ip = ip + sizeof(kprobe_opcode_t)
35  __this_cpu_write(current_kprobe, p)
36  kprobe_status = kprobe_status settings
47  ip = orig_ip
53  __this_cpu_write(current_kprobe, NULL)