Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:28:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:register_synth_event
Proto:static int register_synth_event(struct synth_event *event)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct synth_event * | event |
1163 | ret = 0 |
1166 | system = kstrdup(SYNTH_SYSTEM, GFP_KERNEL) |
1167 | If Not system Then |
1172 | tp = alloc_synth_tracepoint(name) |
1180 | funcs = synth_event_funcs |
1183 | ret = gister_trace_event - register output for an event type*@event: the event type to register* Event types are stored in a hash and this hash is used to* find a way to print an event |
1184 | If Not ret Then |
1189 | reg = trace_event_reg |
1190 | probe = trace_event_raw_event_synth |
1195 | If ret Then |
1196 | pr_warn("Failed to register synthetic event: %s\n", trace_event_name(call)) |
1198 | Go to err |
1201 | ret = set_synth_event_print_fmt(call) |
1202 | If ret < 0 Then |
1203 | Remove an event_call |
1204 | Go to err |
1206 | out : |
1207 | Return ret |
1208 | err : |
1210 | Go to out |
Name | Describe |
---|---|
__create_synth_event |
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 |