Function report |
Source Code:kernel\trace\trace_events_inject.c |
Create Date:2022-07-28 12:27:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:parse_field
Proto:static int parse_field(char *str, struct trace_event_call *call, struct ftrace_event_field **pf, u64 *pv)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | str | |
struct trace_event_call * | call | |
struct ftrace_event_field ** | pf | |
u64 * | pv |
41 | i = 0 |
49 | i++ |
52 | i++ |
57 | field_name = kmemdup_nul(str + s, len, GFP_KERNEL) |
58 | If Not field_name Then Return -ENOMEM |
61 | kfree(field_name) |
67 | i++ |
70 | i++ |
72 | i++ |
79 | If is_string_field(field) Then Return -EINVAL |
87 | i++ |
90 | If c != '\0' && Not Note: isspace() must return false for %NUL-terminator (c) Then Return -EINVAL |
103 | Return i |
108 | If Not is_string_field(field) Then Return -EINVAL |
123 | s++ |
125 | If len >= Should handle KSYM_SYMBOL_LEN Then Return -EINVAL |
131 | i++ |
132 | Return i |
135 | Return -EINVAL |
Name | Describe |
---|---|
parse_entry | Caller is responsible to free the *pentry. |
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 |