函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_kprobe.c Create Date:2022-07-27 13:50:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Module notifier call back, checking event on the module

函数原型:static int trace_kprobe_module_callback(struct notifier_block *nb, unsigned long val, void *data)

返回类型:int

参数:

类型参数名称
struct notifier_block *nb
unsigned longval
void *data
674  mod等于data
679  如果val不等于 Full formed, running module_init. 则返回:Don't care
683  mutex_lock( & event_mutex)
684  r_each_trace_kprobe - iterate over the trace_kprobe list*@pos: the struct trace_kprobe * for each entry*@dpos: the struct dyn_event * to use as a loop cursor(tk, pos)
685  如果trace_kprobe_within_module(tk, mod)则
689  如果ret打印警告信息("Failed to re-register probe %s on %s: %d\n", trace_probe_name( & tp), Unique handle for this module , ret)
695  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.
697  返回:Don't care