Function report | 
Source Code:kernel\trace\trace_probe.c | 
Create Date:2022-07-28 12:42:34 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:@buf must has MAX_EVENT_NAME_LEN size
Proto:int traceprobe_parse_event_name(const char **pevent, const char **pgroup, char *buf, int offset)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char ** | pevent | |
| const char ** | pgroup | |
| char * | buf | |
| int | offset | 
| 235 | slash = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 236 | If slash Then | 
| 239 | Return -EINVAL | 
| 241 | If slash - event + 1 > MAX_EVENT_NAME_LEN Then | 
| 243 | Return -EINVAL | 
| 246 | If Not Check the name is good for event/group/fields Then | 
| 248 | Return -EINVAL | 
| 256 | If len == 0 Then | 
| 258 | Return -EINVAL | 
| 259 | Else if len > MAX_EVENT_NAME_LEN Then | 
| 261 | Return -EINVAL | 
| 263 | If Not Check the name is good for event/group/fields Then | 
| 265 | Return -EINVAL | 
| 267 | Return 0 | 
| Name | Describe | 
|---|---|
| trace_uprobe_create | |
| trace_kprobe_create | 
| 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  |