函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:probe_event_enable

函数原型:static int probe_event_enable(struct trace_event_call *call, struct trace_event_file *file, filter_func_t filter)

返回类型:int

参数:

类型参数名称
struct trace_event_call *call
struct trace_event_file *file
filter_func_tfilter
1084  tp等于trace_probe_primary_from_call(call)
1085  如果WARN_ON_ONCE(!tp)则返回:负ENODEV
1087  enabled等于trace_probe_is_enabled(tp)
1090  如果file
1091  如果trace_probe_test_flag(tp, TP_FLAG_PROFILE)则返回:负EINTR
1094  ret等于trace_probe_add_file(tp, file)
1095  如果ret小于0则返回:ret
1097  否则
1098  如果trace_probe_test_flag(tp, Flags for trace_probe )则返回:负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  如果enabled则返回:0
1110  ret等于uprobe_buffer_enable()
1111  如果ret则转到: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  如果ret
1118  __probe_event_disable(tp)
1119  转到:err_buffer
1123  返回:0
1125  err_buffer :
1126  uprobe_buffer_disable()
1128  err_flags :
1129  如果filetrace_probe_remove_file(tp, file)
1131  否则trace_probe_clear_flag(tp, TP_FLAG_PROFILE)
1134  返回:ret
调用者
名称描述
trace_uprobe_register