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

Name:probe_event_enable

Proto:static int probe_event_enable(struct trace_event_call *call, struct trace_event_file *file, filter_func_t filter)

Type:int

Parameter:

TypeParameterName
struct trace_event_call *call
struct trace_event_file *file
filter_func_tfilter
1084  tp = trace_probe_primary_from_call(call)
1085  If WARN_ON_ONCE(!tp) Then Return -ENODEV
1087  enabled = trace_probe_is_enabled(tp)
1090  If file Then
1091  If trace_probe_test_flag(tp, TP_FLAG_PROFILE) Then Return -EINTR
1094  ret = trace_probe_add_file(tp, file)
1095  If ret < 0 Then Return ret
1097  Else
1098  If trace_probe_test_flag(tp, Flags for trace_probe ) Then Return -EINTR
1101  trace_probe_set_flag(tp, TP_FLAG_PROFILE)
1104  tu = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(tp, structtrace_uprobe, tp)
1105  WARN_ON(!uprobe_filter_is_empty(filter))
1107  If enabled Then Return 0
1110  ret = uprobe_buffer_enable()
1111  If ret Then Go to err_flags
1115  tu = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(pos, structtrace_uprobe, tp)
1116  ret = trace_uprobe_enable(tu, filter)
1117  If ret Then
1118  __probe_event_disable(tp)
1119  Go to err_buffer
1123  Return 0
1125  err_buffer :
1126  uprobe_buffer_disable()
1128  err_flags :
1129  If file Then trace_probe_remove_file(tp, file)
1131  Else trace_probe_clear_flag(tp, TP_FLAG_PROFILE)
1134  Return ret
Caller
NameDescribe
trace_uprobe_register