Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Arm a kprobe with text_mutex

Proto:static int arm_kprobe(struct kprobe *kp)

Type:int

Parameter:

TypeParameterName
struct kprobe *kp
1085  If Value for the false possibility is greater at compile time(Is this kprobe uses ftrace ? ) Then Return 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  Return 0
Caller
NameDescribe
register_aggr_kprobeThis is the second or subsequent kprobe at the address - handle* the intricacies
register_kprobe
enable_kprobeEnable one kprobe