函数逻辑报告 |
Source Code:kernel\trace\trace_events_trigger.c |
Create Date:2022-07-27 13:34:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:vent_trigger_callback - Generic event_command @func implementation*@cmd_ops: The command ops, used for trigger registration*@file: The trace_event_file associated with the event*@glob: The raw string used to register the trigger*@cmd: The cmd portion of
函数原型:static int event_trigger_callback(struct event_command *cmd_ops, struct trace_event_file *file, char *glob, char *cmd, char *param)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct event_command * | cmd_ops | |
struct trace_event_file * | file | |
char * | glob | |
char * | cmd | |
char * | param |
628 | char * trigger = NULL |
636 | trigger_ops等于get_trigger_ops(cmd, trigger) |
639 | trigger_data等于分配内存并置零 |
640 | 如果非trigger_data则转到:out |
643 | count等于负1 |
644 | ops等于trigger_ops |
646 | private_data等于file |
647 | 初始化链表头 |
648 | 初始化链表头 |
650 | 如果glob[0]恒等于'!'则 |
657 | 如果trigger则 |
676 | 如果非set_filter则转到:out_reg |
679 | ret等于set_filter(param, trigger_data, file) |
683 | out_reg : |
686 | ret等于reg(glob, trigger_ops, trigger_data, file) |
692 | 如果非ret则 |
693 | unreg(glob, trigger_ops, trigger_data, file) |
700 | out : |
701 | 返回:ret |
703 | out_free : |
704 | 如果set_filter则set_filter(NULL, trigger_data, NULL) |
706 | kfree(trigger_data) |
707 | 转到:out |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |