Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:36:08
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Enable one kprobe

Proto:int enable_kprobe(struct kprobe *kp)

Type:int

Parameter:

TypeParameterName
struct kprobe *kp
2104  ret = 0
2107  mutex_lock( & This protects kprobe_table and optimizing_list )
2110  p = Check passed kprobe is valid and return kprobe in kprobe_table.
2111  If Value for the false possibility is greater at compile time(p == NULL) Then
2112  ret = -EINVAL
2113  Go to out
2116  If Has this kprobe gone ? Then
2118  ret = -EINVAL
2119  Go to out
2122  If p != kp Then * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered. &= ~probe is temporarily disabled
2125  If Not NOTE: change this value only with kprobe_mutex held && Is this kprobe disabled ? Then
2126  * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered. &= ~probe is temporarily disabled
2127  ret = Arm a kprobe with text_mutex
2128  If ret Then * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered. |= probe is temporarily disabled
2131  out :
2132  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2133  Return ret
Caller
NameDescribe
__enable_trace_kprobe
enable_kretprobe