Function report |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-28 12:20:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_create_dir
Proto:static int event_create_dir(struct dentry *parent, struct trace_event_file *file)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | parent | |
struct trace_event_file * | file |
1978 | call = event_call |
1989 | If strcmp(system, TRACE_SYSTEM) != 0 Then |
1996 | name = trace_event_name(call) |
1997 | dir = tracefs_create_dir(name, d_events) |
1998 | If Not dir Then |
2003 | If reg && Not ( static flags of different events & TRACE_EVENT_FL_IGNORE_ENABLE) Then trace_create_file("enable", 0644, dir, file, & ftrace_enable_fops) |
2018 | head = trace_get_fields(call) |
2020 | ret = define_fields(call) |
2021 | If ret < 0 Then |
2032 | If Not ( static flags of different events & TRACE_EVENT_FL_IGNORE_ENABLE) Then |
2033 | trace_create_file("filter", 0644, dir, file, & ftrace_event_filter_fops) |
2036 | trace_create_file("trigger", 0644, dir, file, & event_trigger_fops) |
2044 | trace_create_file("format", 0444, dir, call, & ftrace_event_format_fops) |
2053 | Return 0 |
Name | Describe |
---|---|
__trace_add_new_event | Add an event to a trace directory |
__trace_early_add_event_dirs | The top level array has already had its trace_event_file* descriptors created in order to allow for early events to* be recorded. This function is called after the tracefs has been* initialized, and we now have to create the files associated |
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 |