Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct trace_event_call * | call | |
struct trace_event_file * | file | |
filter_func_t | filter |
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) |
1097 | Else |
1098 | If trace_probe_test_flag(tp, Flags for trace_probe ) Then Return -EINTR |
1105 | WARN_ON(!uprobe_filter_is_empty(filter)) |
1107 | If enabled Then Return 0 |
1110 | ret = uprobe_buffer_enable() |
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 |
Name | Describe |
---|---|
trace_uprobe_register |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |