函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Arm a kprobe with text_mutex

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

返回类型:int

参数:

类型参数名称
struct kprobe *kp
1085  如果此条件成立可能性小(为编译器优化)(Is this kprobe uses ftrace ? )则返回:arm_kprobe_ftrace(kp)
1088  cpus_read_lock()
1089  mutex_lock( & mutex protecting text section modification (dynamic code patching).* some users need to sleep (allocating memory...) while they hold this lock.* Note: Also protects SMP-alternatives modification on x86.)
1090  Put a breakpoint for a probe. Must be called with text_mutex locked
1091  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.
1092  cpus_read_unlock()
1094  返回:0
调用者
名称描述
register_aggr_kprobeThis is the second or subsequent kprobe at the address - handle* the intricacies
register_kprobe
enable_kprobeEnable one kprobe