Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_kprobe.c Create Date:2022-07-28 12:38:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_kprobe_module_exist

Proto:static inline __attribute__((__always_inline__)) bool trace_kprobe_module_exist(struct trace_kprobe *tk)

Type:bool

Parameter:

TypeParameterName
struct trace_kprobe *tk
120  If Not symbol name Then Return false
122  p = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
123  If Not p Then Return true
125  p = '\0'
126  mutex_lock( & Mutex protects:* 1) List of modules (also safely readable with preempt_disable),* 2) module_use links,* 3) module_addr_min/module_addr_max.* (delete and add uses RCU list operations). )
127  ret = Not Not find_module(symbol name )
128  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.
129  p = ':'
131  Return ret
Caller
NameDescribe
append_trace_kprobe
register_trace_kprobeRegister a trace_probe and probe_event