函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Register a trace_uprobe and probe_event

函数原型:static int register_trace_uprobe(struct trace_uprobe *tu)

返回类型:int

参数:

类型参数名称
struct trace_uprobe *tu
495  mutex_lock( & event_mutex)
497  ret等于Uprobe with multiple reference counter is not allowed
498  如果ret则转到:end
502  old_tu等于find_probe_event(trace_probe_name( & tp), trace_probe_group_name( & tp))
504  如果old_tu
505  如果is_ret_probe(tu)不等于is_ret_probe(old_tu)则
508  ret等于负EEXIST
509  否则
512  转到:end
515  ret等于register_uprobe_event(tu)
516  如果ret
517  打印警告信息("Failed to register probe event(%d)\n", ret)
518  转到:end
521  dyn_event_add( & devent)
523  end :
524  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.
526  返回:ret
调用者
名称描述
trace_uprobe_create