Function report |
Source Code:kernel\tracepoint.c |
Create Date:2022-07-28 11:50:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:func_add
Proto:static struct tracepoint_func *func_add(struct tracepoint_func **funcs, struct tracepoint_func *tp_func, int prio)
Type:struct tracepoint_func
Parameter:
Type | Parameter | Name |
---|---|---|
struct tracepoint_func ** | funcs | |
struct tracepoint_func * | tp_func | |
int | prio |
133 | nr_probes = 0 |
134 | pos = -1 |
139 | debug_print_probes( * funcs) |
141 | If old Then |
153 | new = allocate_probes(nr_probes + 2) |
156 | If old Then |
157 | If pos < 0 Then |
159 | No 3D Now!(new, old, nr_probes * sizeof(structtracepoint_func)) |
160 | Else |
162 | No 3D Now!(new, old, pos * sizeof(structtracepoint_func)) |
164 | No 3D Now!(new + pos + 1, old + pos, (nr_probes - pos) * sizeof(structtracepoint_func)) |
167 | Else pos = 0 |
170 | func = NULL |
172 | debug_print_probes( * funcs) |
173 | Return old |
Name | Describe |
---|---|
tracepoint_add_func | Add the probe function to a tracepoint. |
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 |