Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Register a trace_uprobe and probe_event

Proto:static int register_trace_uprobe(struct trace_uprobe *tu)

Type:int

Parameter:

TypeParameterName
struct trace_uprobe *tu
495  mutex_lock( & event_mutex)
497  ret = Uprobe with multiple reference counter is not allowed
498  If ret Then Go to end
502  old_tu = find_probe_event(trace_probe_name( & tp), trace_probe_group_name( & tp))
504  If old_tu Then
505  If is_ret_probe(tu) != is_ret_probe(old_tu) Then
508  ret = -EEXIST
509  Else
512  Go to end
515  ret = register_uprobe_event(tu)
516  If ret Then
517  pr_warn("Failed to register probe event(%d)\n", ret)
518  Go to 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  Return ret
Caller
NameDescribe
trace_uprobe_create