Function report |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-28 12:21:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Expects to have event_mutex held when called
Proto:static int create_event_toplevel_files(struct dentry *parent, struct trace_array *tr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | parent | |
struct trace_array * | tr |
2947 | entry = tracefs_create_file("set_event", 0644, parent, tr, & ftrace_set_event_fops) |
2949 | If Not entry Then |
2954 | d_events = tracefs_create_dir("events", parent) |
2955 | If Not d_events Then |
2960 | entry = trace_create_file("enable", 0644, d_events, tr, & ftrace_tr_enable_fops) |
2962 | If Not entry Then |
2969 | entry = tracefs_create_file("set_event_pid", 0644, parent, tr, & ftrace_set_event_pid_fops) |
2975 | entry = trace_create_file("header_page", 0444, d_events, ring_buffer_print_page_header, & ftrace_show_header_fops) |
2981 | entry = trace_create_file("header_event", 0444, d_events, The ring buffer header is special. We must manually up keep it., & ftrace_show_header_fops) |
2989 | Return 0 |
Name | Describe |
---|---|
event_trace_add_tracer | vent_trace_add_tracer - add a instance of a trace_array to events*@parent: The parent dentry to place the files/directories for events in*@tr: The trace array associated with these events* When a new instance is created, it needs to set up its events |
early_event_add_tracer | The top trace array already had its file descriptors created.* Now the files themselves need to be created. |
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 |