Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Disarm a kprobe with text_mutex

Proto:static int disarm_kprobe(struct kprobe *kp, bool reopt)

Type:int

Parameter:

TypeParameterName
struct kprobe *kp
boolreopt
1100  If Value for the false possibility is greater at compile time(Is this kprobe uses ftrace ? ) Then Return disarm_kprobe_ftrace(kp)
1103  cpus_read_lock()
1104  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.)
1105  Remove the breakpoint of a probe. Must be called with text_mutex locked
1106  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.
1107  cpus_read_unlock()
1109  Return 0
Caller
NameDescribe
__disable_kprobeDisable one kprobe: Make sure called under kprobe_mutex is locked