函数逻辑报告 |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-27 13:37:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:register_synth_event
函数原型:static int register_synth_event(struct synth_event *event)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct synth_event * | event |
| 1163 | ret等于0 |
| 1166 | system等于kstrdup(SYNTH_SYSTEM, GFP_KERNEL) |
| 1167 | 如果非system则 |
| 1172 | tp等于alloc_synth_tracepoint(name) |
| 1173 | 如果是错误则 |
| 1179 | 初始化链表头 |
| 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 | 如果非ret则 |
| 1189 | reg等于trace_event_reg |
| 1195 | 如果ret则 |
| 1196 | 打印警告信息("Failed to register synthetic event: %s\n", trace_event_name(call)) |
| 1198 | 转到:err |
| 1201 | ret等于set_synth_event_print_fmt(call) |
| 1202 | 如果ret小于0则 |
| 1203 | Remove an event_call |
| 1204 | 转到:err |
| 1206 | out : |
| 1207 | 返回:ret |
| 1208 | err : |
| 1210 | 转到:out |
| 名称 | 描述 |
|---|---|
| __create_synth_event |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |