函数逻辑报告 |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-27 13:27:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:event_subsystem_dir
函数原型:static struct dentry *event_subsystem_dir(struct trace_array *tr, const char *name, struct trace_event_file *file, struct dentry *parent)
返回类型:struct dentry
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct trace_array * | tr | |
| const char * | name | |
| struct trace_event_file * | file | |
| struct dentry * | parent |
| 1911 | 如果字符串比较恒等于0则 |
| 1924 | 如果list恒等于event_subsystems则system = NULL |
| 1931 | 如果非system则 |
| 1932 | system等于create_new_subsystem(name) |
| 1935 | 否则__get_system(system) |
| 1938 | entry等于tracefs_create_dir(name, parent) |
| 1939 | 如果非entry则 |
| 1941 | __put_system(system) |
| 1942 | 转到:out_free |
| 1946 | ref_count等于1 |
| 1947 | nr_events等于1 |
| 1951 | entry等于tracefs_create_file("filter", 0644, entry, dir, & ftrace_subsystem_filter_fops) |
| 1953 | 如果非entry则 |
| 1955 | filter = NULL |
| 1959 | trace_create_file("enable", 0644, entry, dir, & ftrace_system_enable_fops) |
| 1962 | 添加链表项 |
| 1964 | 返回:entry |
| 1966 | out_free : |
| 1968 | out_fail : |
| 1972 | 返回:NULL |
| 名称 | 描述 |
|---|---|
| event_create_dir |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |