Function report |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-28 12:20:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_subsystem_dir
Proto:static struct dentry *event_subsystem_dir(struct trace_array *tr, const char *name, struct trace_event_file *file, struct dentry *parent)
Type:struct dentry
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct trace_array * | tr | |
| const char * | name | |
| struct trace_event_file * | file | |
| struct dentry * | parent |
| 1924 | If list == event_subsystems Then system = NULL |
| 1927 | dir = Allocation memory |
| 1931 | If Not system Then |
| 1932 | system = create_new_subsystem(name) |
| 1935 | Else __get_system(system) |
| 1938 | entry = tracefs_create_dir(name, parent) |
| 1939 | If Not entry Then |
| 1941 | __put_system(system) |
| 1942 | Go to out_free |
| 1946 | ref_count = 1 |
| 1947 | nr_events = 1 |
| 1951 | entry = tracefs_create_file("filter", 0644, entry, dir, & ftrace_subsystem_filter_fops) |
| 1953 | If Not entry Then |
| 1955 | filter = NULL |
| 1959 | trace_create_file("enable", 0644, entry, dir, & ftrace_system_enable_fops) |
| 1964 | Return entry |
| 1966 | out_free : |
| 1968 | out_fail : |
| 1972 | Return NULL |
| Name | Describe |
|---|---|
| event_create_dir |
| 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 |