Function report |
Source Code:kernel\trace\trace_probe.c |
Create Date:2022-07-28 12:43:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:trace_probe_init
Proto:int trace_probe_init(struct trace_probe *tp, const char *event, const char *group, bool alloc_filter)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_probe * | tp | |
const char * | event | |
const char * | group | |
bool | alloc_filter |
992 | size = sizeof(structtrace_probe_event) |
993 | ret = 0 |
998 | If alloc_filter Then size += sizeof(structtrace_uprobe_filter) |
1001 | event = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
1011 | call = trace_probe_event_call(tp) |
1013 | name = kstrdup(event, GFP_KERNEL) |
1014 | If Not name Then |
1019 | system = kstrdup(group, GFP_KERNEL) |
1020 | If Not system Then |
1025 | Return 0 |
1027 | error : |
1028 | trace_probe_cleanup(tp) |
1029 | Return ret |
Name | Describe |
---|---|
alloc_trace_uprobe | Allocate new trace_uprobe and initialize it (including uprobes). |
alloc_trace_kprobe | Allocate new trace_probe and initialize it (including kprobes). |
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 |