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:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:append_trace_uprobe

Proto:static int append_trace_uprobe(struct trace_uprobe *tu, struct trace_uprobe *to)

Type:int

Parameter:

TypeParameterName
struct trace_uprobe *tu
struct trace_uprobe *to
442  ret = Return the smallest index of different type argument (start from 1).* If all argument types and name are same, return 0.
443  If ret Then
445  trace_probe_log_set_index(ret + 1)
446  trace_probe_log_err(0, DIFF_ARG_TYPE)
447  Return -EEXIST
449  If trace_uprobe_has_same_uprobe(to, tu) Then
450  trace_probe_log_set_index(0)
451  trace_probe_log_err(0, SAME_PROBE)
452  Return -EEXIST
456  ret = trace_probe_append( & tp, & tp)
457  If Not ret Then dyn_event_add( & devent)
460  Return ret
Caller
NameDescribe
register_trace_uprobeRegister a trace_uprobe and probe_event