函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:39:55
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Enable one kprobe

函数原型:int enable_kprobe(struct kprobe *kp)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(p == NULL)则
2112  ret等于负EINVAL
2113  转到:out
2116  如果Has this kprobe gone ?
2118  ret等于负EINVAL
2119  转到:out
2122  如果p不等于kp* Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered.与等于probe is temporarily disabled 的反
2125  如果非NOTE: change this value only with kprobe_mutex held Is this kprobe disabled ?
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  如果ret* 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  返回:ret
调用者
名称描述
__enable_trace_kprobe
enable_kretprobe