Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:03:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:allocate_trace_buffer
Proto:static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_array * | tr | |
struct trace_buffer * | buf | |
int | size |
8371 | rb_flags = If trace_flags & TRACE_ITER_OVERWRITE Then RB_FL_OVERWRITE Else 0 |
8379 | data = alloc_percpu(structtrace_array_cpu) |
8380 | If Not data Then |
8387 | set_buffer_entries( & trace_buffer, g_buffer_size - return the size of the ring buffer (in bytes)*@buffer: The ring buffer.) |
8390 | Return 0 |
Name | Describe |
---|---|
allocate_trace_buffers |
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 |